Right after you are closing your grid you can do something like that:

<cfformitem type="html"  bind="<p><a href='somefile.cfm?FileId={
myGrid.selectedItem.id}'>Edit</a></p>"></cfformitem>
On Thu, Feb 4, 2010 at 1:18 PM, Paul Ihrig <pih...@gmail.com> wrote:

>
> "if" i was using an html cfgrid i would just use the href attribute
> inside cfgridcolumn
> but i am not. am using cffrom type flash
>
> any how..
> appreciate it.
>
>
> On Thu, Feb 4, 2010 at 8:34 AM, Martin Franklin <ma...@assetresearch.com>
> wrote:
> >
> > You might consider getting the underlying ext using
> > ColdFusion.Grid.getGridObject("myGrid") and attaching to appropriate
> logic
> > to do this. Of course you would have to use an html grid in lieu of
> flash.
> >
> > Maybe something like this....?
> >   <cfform name="rwsGrid" format="html" action="##">
> >        <cfgrid name="rwsGrid"
> > attributeCollection="#Application.Settings.GRIDFORMAT#" pageSize="12"
> >
> bind="cfc:CoreComponents.searchService.RWSgetData({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{rwsfindForm:l...@none
> },{rwsfindForm:date_fl...@none},{rwsfindForm:date_ceil...@none
> },{rwsfindForm:opera...@none},{rwsfindForm:st...@none
> },{rwsfindForm:status_va...@none},{rwsfindForm:sva...@none})"
> > selectonload="true">
> >            <cfgridcolumn name="CLIENT_NUM" header="Loc##" width="40">
> >            <cfgridcolumn name="NUMBER" header="Rws##" width="50">
> >            <cfgridcolumn name="DOC_NUM" header="Doc##" width="55">
> >            <cfgridcolumn name="DOCTYPE" header="Type" width="80">
> >            <cfgridcolumn name="RELATED_CT" header="Related" width="54">
> >            <cfgridcolumn name="EST_COST" header="Est$" width="85">
> >            <cfgridcolumn name="JOB_NUM" header="Job##" width="66">
> >            <cfgridcolumn name="PROJECT_NUM" header="Proj##" width="66">
> >            <cfgridcolumn name="STREET" header="Proj Street" width="149">
> >            <cfgridcolumn name="PROJECT_NAME" header="Proj Name"
> > width="149">
> >            <cfgridcolumn name="PTR_CLI_CUST_NUM" header="Cust##"
> > width="55">
> >            <cfgridcolumn name="PTR_NAME" header="Cust Name" width="149">
> >            <cfgridcolumn name="STATUS" display="no">
> >            <cfgridcolumn name="ENTERED_DATE" display="no">
> >            <cfgridcolumn name="ARS_COMPLETE_DATE" display="no">
> >            <cfgridcolumn name="NOTE" display="no">
> >        </cfgrid>
> >      </cfform>
> >
> >      <cfset ajaxOnLoad("initrwsGrid")/>
> >
> > JS...
> > /*initalize grid*/
> >  initrwsGrid = function(){
> >  var gridObj = ColdFusion.Grid.getGridObject("rwsGrid");
> >  var cm = gridObj.getColumnModel();
> >      cm.setRenderer(2,render); /*Format date in column 2 to look like a
> > hyperlink*/
> >  gridObj.reconfigure(gridObj.getDataSource(),cm);
> >  gridObj.addListener("cellclick",gridfunc);
> >  }
> >
> >  /*Render data as link*/
> >  render = function(data,cellmd,record,row,col,store) {
> >   if(data != null ){
> >   return '<span class="colfontblueunderline">' + data + '</span>';
> >   } else {
> >   return data;
> >  }
> >  }
> >
> > /*called by init for grid render on cellclick*/
> >  gridfunc = function(grid,rowIndex,columnIndex,e){
> >   var record = grid.getDataSource().getAt(rowIndex);
> >      var fieldName = grid.getColumnModel().getDataIndex(columnIndex);
> > /*On Cell Click logic*/
> >    if(record.get(fieldName) != null){
> >        /* Build hyperlink */
> >        window.location.href =
> "somepage.cfm?urlval="+record.get('NUMBER');;
> >        }
> > }
> >
> > ----- Original Message -----
> > From: "Svetlin Roussev" <svetlin.rous...@fuelinteractive.com>
> > To: "cf-talk" <cf-talk@houseoffusion.com>
> > Sent: Wednesday, February 03, 2010 6:25 PM
> > Subject: ***SPAM*** Re: cfgrid flash href
> >
> >
> >>
> >> You can do optionitem and bind it with the href.
> >>
> >> On Wed, Feb 3, 2010 at 7:10 AM, morchella
> >> <morchella.delici...@gmail.com>wrote:
> >>
> >>>
> >>> hey guys.
> >>> i know cfgrid flash doesn't support href in cfgridcolumn
> >>> but there has to be a way?
> >>>
> >>> <cfgrid name="hoverArea" query="gHa" selectmode="edit" format="flash"
> >>> height="210" width="800" rowheaders="no"
> >>> onchange="getUrl('_edit_hoverArea.cfm?ha_1Id=' +
> >>> hoverArea.dataProvider[hoverArea.selectedIndex]['ha_Id']);" >
> >>>
> >>> make the entire row a link.
> >>> but i only want a link in the id column, since the other columns are
> >>> for editing data.
> >>>
> >>> has any one done this.
> >>> i have googled till i can google no more..
> >>> so i come here =]
> >>>
> >>> cf8
> >>>
> >>> thanks!
> >>> -m
> >>>
> >>>
> >>
> >>
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330404
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to