Cfgrid and href attribute issue

HI Gang-
I'm building a relatively simple query driven cfgrid, read-only for the most part but I need one of the columns to be a href value that will serve as a drilldown. Everything working fine except that the name/value pair I need appended to the url is being persnickety.
The url I'd like to build and have effected in the cfgrid is something like "index.cfm?action=drilldown&orderid=#dynamicValue#"
I finally got it to work, but not as I would like. Turns out both cfgrid and cfgridcolumn tags each have the "href" and the "hrefkey" attributes, which made for a confusing 45 minutes of trial and error.  The closest I could eventually come to my target url of:
index.cfm?action=drilldown&orderid=#dynamicValue#
is actually
index.cfm?action=drilldown&CFGRIDKEY=#dynamicValue#
Not what I wanted but I can deal for now.
Has anyone gotten a hold of building out hrefs in cfgrid using custom name/value pairs dynamically? Would love to know how you did it. Code postings would be even better!
Many thanks,
Rich

Quite a challenge, that one. You can run the following example directly. Have a look at my use of the lastName column. You could also have a look at the ext library.
<html> 
<head> 
     <title>Grid URL Demo</title> 
     <script type="text/javascript"> 
     function init(){ 
         var grid = ColdFusion.Grid.getGridObject("ArtistGrid"); 
         grid.addListener("rowclick",onRowClick); 
     function onRowClick(g,rowIndex,e){
       var lastName = ColdFusion.getElementValue("ArtistGrid", "artistGridForm", "lastName");
       var url = "index.cfm?action=drilldown&lastName="+lastName;
       ColdFusion.navigate(url);    
     </script>     
</head> 
<body> 
     <cfquery name="getArtists" datasource="cfartgallery"> 
     SELECT artistId, firstname, lastname, address, city, state, postalcode, email 
     FROM Artists 
     </cfquery> 
     <cfset args = structNew()> 
     <cfset args.name = "ArtistGrid"> 
     <cfset args.format = "html"> 
     <cfset args.query = "getArtists"> 
     <cfset args.stripeRows = true> 
     <cfset args.selectColor = "##D9E8FB"> 
     <cfset args.width = 600> 
     <h1>Artists Grid</h1>       
     <cfform name="artistGridForm" id="artistGridForm"> 
        <cfgrid attributeCollection="#args#"> 
           <cfgridcolumn name="artistid" display="false"> 
           <cfgridcolumn name="firstname" header="First Name"> 
           <cfgridcolumn name="lastname" header="Last Name"> 
           <cfgridcolumn name="email" header="Email Address"> 
           <cfgridcolumn name="address" header="Address"> 
           <cfgridcolumn name="city" header="City"> 
           <cfgridcolumn name="state" header="State"> 
           <cfgridcolumn name="postalcode" header="Zip"> 
        </cfgrid> 
     </cfform>  
     <cfset ajaxOnLoad("init")>      
</body> 
</html>

Similar Messages

  • How to Apply a Graphic Element's "href" Attribute Value on a Graphic Frame

    I have a graphic frame, which I wish to fill with a graphic image. The graphic frame appears as an element in the Structure, as it has a tag attached, and that element has a legitimate "href" as a full path to a graphic file. In UI mode, I have to drag that element onto the graphic frame in order for the graphic frame to be filled with the graphic file. How do I perform the same action in JavaScript?
    TIA
    mlavie

    I thought I should provide an explanation for what I meant:
    I am aware, of course, of how to use "Place". The issue here is that I have a Page that is a template, which includes a Graphic Frame. I want to open the page, and then update the Graphic Frame element's "href" tag with the path of a graphic file, and have that file then appear in the Graphics Frame. By default, InDesign does not redraw the Graphics Frame when you change the value for the "href" attribute - you need to drag the parent element onto the Graphics Frame.
    TIA
    mlavie

  • [BPEL 10.1.3.3] href attribute in SOAP body

    Hi,
    An interesting issue appeared for one of my clients.
    Whenever there is a "href" attribute in the xml contents of the soap call to the BPEL process, following error occurs:
    <faultstring>ORABPEL-04110Cannot insert attachment.The process domain was unable to insert attachent into the datastore. The exception reported is: 0Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.sql statement: BEGIN INSERT INTO attachment( key, bin ) VALUES ( ?, '0' ) RETURNING bin INTO ?; END; </faultstring>
    The thing is - href has a special meaning in SOAP and is related to binary attachments, but here it's just a plain attribute which happens to be named "href".
    My Questions:
    1) is there a way to disable this special treatment of "href" in xmlparser or bpel engine/process?
    2) is this an error on the part of the caller to use "href" and expect it to not be treated in any special way?
    Thanks and regards,
    Bartek

    Hi
    I saw this behaviour in 10.1.3.1 as well. We have just patched up 10.1.3.3.1 and was hoping this will be addressed. It was not. :-(
    You should be able to work-around the not-found error by just correcting the URL in your browser. You will notice that all that went wrong is that it now has the domain name in all lower-case and since this is case sensitive it fails.
    We have stopped using mixed-case/uppercase domain names for now.
    It seems like a console only issue as the deployed BPEL process was working fine and callable on the mixed-case URL.
    Hope this helps.

  • Dynamic ALV with Static and Dynamic attributes

    Hi All,
    In my requirement we have some 5 static attributes and rest attributes needs needs to be dynamically created based upon the input selections. for eg my input for start date and end date is between 201023 to 201152 then weeks between this range should apear as dynamic columns.
    i am able to create a dummy alv table display with out populating data into it but unable to set the data to it . Kindly help me in solving this issue.
    Regards,
    Sana.

    You might have created a dynamic node, bind the data to this node and after that use the SET_DATA method of ALV interface controller to set the data by passing the dynamically created node.

  • Use XML Node Value as Node name and as attribute name

    im quite new to XML and XLST. I got an Open Office XML file that I transformed with XLST.
    <?xml version="1.0" encoding="UTF-8"?>
    <ooo_calc_export scriptVersion="2.2.0" scriptUpdate="2010-12-19" scriptURL="http://www.digitalimprint.com/misc/oooexport/" scriptAuthor="vjl">
       <ooo_sheet num="1" name="Blatt1">
          <ooo_row><Artikelnummer>C12-34567</Artikelnummer><ArttikelnummerAlt/><Details>AAA AAA AAA AAA</Details><Abmessungen/><Bildpfad>file:///cmyk/C12-34567.PSD</Bildpfad><EK>1234,-</EK><VK>3456,-</VK>
            </ooo_row>
          <ooo_row><Artikelnummer>C23-45678</Artikelnummer><ArttikelnummerAlt/><Details>BaB BaB BBB BBB</Details><Abmessungen/><Bildpfad>file:///cmyk/cmyk/C23-45678.PSD</Bildpfad><EK>2345,-</EK><VK>4567,-</VK>
            </ooo_row>
          <ooo_row><Artikelnummer>C34-56789</Artikelnummer><ArttikelnummerAlt/><Details>CaC CaC CaC CaC uli</Details><Abmessungen/><Bildpfad>file:///cmyk/cmyk/C34-56789.PSD</Bildpfad><EK>3456,-</EK><VK>5678,-</VK>
            </ooo_row>
       </ooo_sheet>
    </ooo_calc_export>
    I transformed the XML with the following XLST:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
      <xsl:output method = "xml" version="1.0" encoding="UTF-8" indent="yes"/>
      <xsl:strip-space elements="*"/>
      <xsl:template match="ooo_sheet">
    <xsl:element name="Import">
    <xsl:for-each select="ooo_row">
    <xsl:element name="Artikel">
      <xsl:element name="Text">
            <xsl:copy-of select="Artikelnummer"/>
            <xsl:copy-of select="Details"/>
            <xsl:copy-of select="Abmessungen"/>
            <xsl:copy-of select="EK"/>
      </xsl:element>
    </xsl:element>
    </xsl:for-each>
    </xsl:element>
    </xsl:template>
    The result is:
    <?xml version="1.0" encoding="UTF-8"?>
    <Import>
        <Artikel>
            <Text>
                <Artikelnummer>C12-34567</Artikelnummer>
                <Details>AAA AAA AAA AAA</Details>
                <Abmessungen/>
                <EK>1234,-</EK>
            </Text>
        </Artikel>
        <Artikel>
            <Text>
                <Artikelnummer>C23-45678</Artikelnummer>
                <Details>BaB BaB BBB BBB</Details>
                <Abmessungen/>
                <EK>2345,-</EK>
            </Text>
        </Artikel>
        <Artikel>
            <Text>
                <Artikelnummer>C34-56789</Artikelnummer>
                <Details>CaC CaC CaC CaC uli</Details>
                <Abmessungen/>
                <EK>3456,-</EK>
            </Text>
        </Artikel>
    </Import>
    I need another child within the node "Artikel" named "Bild". It should have an "href" attribute. The value of the attribute should be the value in the node "Bildpfad".
    The result of this transformation should be
    <Artikel>
      <Text>
        <Artikelnummer>C34-56789</Artikelnummer>
        <Details>CaC CaC CaC CaC uli</Details>
        <Abmessungen/>
        <EK>3456,-</EK>
      </Text>
      <Bild href="file:///cmyk/C12-34567.PSD"></Bild>
    </Artikel>
    I want to import this XML into Indesign. It seems that the images path needs to be in a href attribute so Indesign accepts the node as an image object.
    Another problem is that Indesign won't import the original xml with selection of the listed xsl to tranform the xml. So I used another xml editor instead to perform the transformation.
    Thank you all for your help!

    Hi Dorian_fs,
    I think we're still missing details here on what exactly it
    is you're trying to do? Are you loading this XML via a data set? In
    which case, Don's samples would apply? Or are you trying to load
    XML independent of data sets and regions, in which case, you are
    looking for something that simplifies the access of data from the
    resulting XML document? If the latter than perhaps you want to use
    XMLDocToObject:
    http://labs.adobe.com/technologies/spry/samples/utils/XMLDocToObject.html
    --== Kin ==--

  • How to set the View instance and view  attribute to lov field ?

    Hi
    I created lov and textfield programatically.
    I want to set the viewattribute and view instance to that items(lovbean, texfieldbean).
    How to set programatically?
    Thanks in Advance
    Awadesh

    Hi
    Thanks. Its working fine. But now i got some another issue.
    after setting, i put simple system.out.println(Pagecontext.getparameter("idoflov"));
    But it returns null value.
    why. Actully i want to pass this value (according to my requirement).
    The view instance and view attribute are setting correctly. But after that i checked means it returns null value .
    plz let me know.
    Thanks

  • Line Item Dimension and Navigational attribute

    Hi Gurus,
    Can somebody tell me how line item Dimensions and navigational attributes works technically?
    What are the pros and cons for them?
    Regards
    Alex

    Hi Alex,
                You will use navigational attributes based on how you want to track and report history. Let me explain with an example.
    Customer Bubba is assigned Sales Group XYZ in Jan 2007. In July the Sales Group on the Customer Master record is changed to  ABC. Your are looking at the sales report.
    1). If you want to see all the sales made to Customer Bubba at the time of reporting (current) then you will use navigational attributes You will create 0SALESGRP as the navigational attribute of 0CUSTOMER .  Then all sales to the customer will show up under Sales Group ABC.
    2). If you want to see  all the sales made to the customer at the time the actual transaction occured then you will add Sales Group as a characteristic of the InfoCube. Then sales from Jan - June 2007 will show under Sales Group XYZ and from July - Present will show under Sales Group ABC.
    Performance issue occurs because navigational attribute is stored outside of the dimension table of the cube and is stored in separate master data tables. So query has to perform additional table read. So essentially there are advantages and disadvantages of usng navigational attributes. It is business requirement that will drive the use of navigational attribute.
    Hope this helps!!!. Please assign points.

  • HTML a href Attribute in Safari

    I have set up my personal homepage using a number of HTML a href attributes inside a table, so that when I click on one of these, it will take me down to the appropriate anchor defined by HTML a name. This works fine in Firefox, but does not seem to work in Safari 3.2.1. In Safari, it simply stays put and does not take me down to the appropriate anchor.
    Example of my HTML:
    <tr>
    <td>Favourites</td>
    <td>Airlines</td>
    <td>Architecture</td>
    <td>Art, Images, Pictures, Photography & Posters</td>
    <td>Books, Book Stores, Literature, Literary Societies</td>
    <td>Cars</td>
    <td>CCCV</td>
    </tr>
    Airlines
    Cathay Pacific
    Qantas
    Frequent Flyer
    Singapore Airlines
    Virgin Blue Australia
    <hr>
    Architecture
    Monument Environments
    <hr>

    Hi Alex,
    Have you tried dropping the <base> tag in the header? That should make the named anchors load quicker as well as the browser won't attempt to re-download the page all over again.
    Also, your DOCTYPE declaration seems a bit out of date. I don't think it's affecting anything as such but you might want to update it. I only mention it as the W3C validator check [marks it as being problematic|http://validator.w3.org/check?uri=http%3A%2F%2Fmembers.optusnet.com .au%2Falexcywong%2F&charset=(detect+automatically)&doctype=Inline&group=0].
    I should note that I can't actually test that recommended change above in Safari as I'm not on a Mac at the moment, but it does help with a browser that uses WebKit on my current machine.
    Hope that helps.

  • Serial attribute and org attribute problems with item master

    IF i want to unassign an item from an org, how would i do tht
    The check is not updateable in the organization assignment tab
    Secondly:
    When i try to make an existing item serial controlled, i go to inventory tab on item master and when i change the serial control attribute GENERATION then "For some items it says APP-INV-05525: Either On Hand quantity or pending transactions exist for item, cannot change this value"
    But for same item if i choose GENERATION sales order issue than it works fine.
    Thirdly:
    How would i Use generated serial numbers..how to assign them or use them for issuing and recieving

    Regarding the 1st part of your query: Unassigning item from an Org
    You cannot unassign an item that way (by unchecking the Assigned checkbox).
    You have 2 options:
    1) Delete the item from the respective Org if it is not yet transacted in that org.
    Navigation : Items-> Delete Items
    Once selecetd this will open deletion Group screen, please enter a new group name and description and for type select Item from LOV and then in details Tab enter your item that you want to be taken out.
    Save the transaction and then click on Delete group button at the bottom of the screen --> this will raise a concurrent request.
    If it is already transacted in the respective org from where you want to delete it then system will not allow to delete the item for audit trail purpose.
    2) You can make the item 'Inactive' to prevent transactions or ordering (purchasing/sales) you can uncheck the appropriate attributes on that item in the org (assuming your attributes controls allow it at org level rather than master level).
    Regarding Serial number generation options a) At Receipt and b) At Sales Order Issue:
    a) At Receipt >> Create and assign serial numbers when you receive the item. As you move the material within inventory and until you issue it out you have to use the serial number for those transactions.
    b) At Sales Order Issue >> Create and assign serial numbers when you issue (ship) the item against a sales order. For this option serial numbers are required at ship confirm.
    Now as per the definitions given above, if there on-hand already exists in your organization(s) then you cannot set the serial generation control "At Receipt". Because in that case all existing on-hands should have serial number assigned which is not the case. On-hand should be zero to set the control "At Receipt". Hence system will prevent you from setting it to "At Receipt" when on-hamd exists. Also in your post you mentioned that you tried to change the control in Item Master, that means serial control generation attribute is set at Master level for you. In this case it will consider on-hands for that item in all the child orgs.
    On the other side if you are setting serial control generation "At Sales Order Issue" then seral number is not required for existing on-hands because it will be created and assigned during ship confirm. So system will not prevent even if on-hand exists.
    Considering the options available in the system your third question (How would i Use generated serial numbers..how to assign them or use them for issuing and recieving) not very clear. The "generated serial numbers" part is creating little confusion in mind as to what you are actually looking for.
    As explained above, if control is set "At Receipt" >> Create and assign serial numbers when you receive the item. Use the Lot/ Serial button on the right hand corner of the material transaction screen and enter the serial number.
    If control is At Sales Order Issue >> Create and assign serial numbers when you issue (ship) the item against a sales order. In the Shipping Transaction screen use Tools >> Serial Numbers option before ship confirm and enter the serial number.
    But if you have set the control as "Predefined" then, assign predefined serial numbers (by generating before hand) when you receive the item. Thereafter, for any material transaction, you must provide a serial number for each unit.
    Hope this helps.

  • Xsl:include, dynamic href attribute

    Is it possible to use a xsl parameter or variable for the href attribute of xsl:include ?
    I tried
    <xsl:param name="xxx" />
    and then <xsl:include href="{$xxx}"/>
    or even
    <xsl:include>
    <xsl:attribute name="href">
    <xsl:value-of select="$xxx" />
    </xsl:attribute>
    </xsl:include>
    None of this works (I haven't tried with other xslt processors than Oracle).
    Any suggestions ?
    null

    I have attempted the same thing before as well. The only way I was able to dynamically build the xsl:include was to declare a new namespace e.g xmlns:out="output.xsl" in my XSL file and do something like the following:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:out="output.xsl">
    <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
    <xsl:varible name="xxx" select=" 'myFile.xsl' "/>
    <xsl:template match="/">
    <out:stylesheet version="1.0">
    <out:template match="/">
    <out:include>
    <xsl:attribute name="href">
    <xsl:value-of select="$xxx" />
    </xsl:attribute>
    </out:include>
    </out:template>
    </out:stylesheet>
    </xsl:template>
    </xsl:stylesheet>
    When applied to any valid XML document this produces the XSL file you are after as the output.
    To use this output against your intended XML source consider the following: A Java program can very quickly apply the above stylesheet to any XML source to get the output you want... then apply that XSL result to the actual XML document you are wanting to transform. From here you can do what you want with the transformed result.

  • Firefox removes href attribute from anchor tag on copy paste

    Hi Support,
    I have a text along with the image used as a hyperlink as follows.
    "Sample Text.<a href="javascript:myfunction()"><img title="sample image" src="sample.gif" /></a>"
    When i copy the above text and paste it inside a HTML Control (for e.g. iframe), the control removes the href attribute of 'anchor' tag. It happens only with firefox and safari. It is working correctly in internet explorer.
    "Sample Text.<a ><img title="sample image" src="sample.gif" /></a>"
    Is there any solution for this.? Awaiting for sooner response
    Try clicking on the below link
    http://screencast.com/t/sXq6BcZvJB

    I tested this in Gmail compose, and what I see is: regular links (href="url") are preserved during copy/paste, but javascript links (href="javascript:") are dropped/cleared.
    I don't know whether this is by design. One place to research that would be [https://bugzilla.mozilla.org/].

  • ActionListener and actionExpression attribute of button in popup dialog

    Hi,
    I want to programmatically raise a popup dialog with a button bar facet.
    Before popup is shown I programmatically set the actionListener and actionExpression attribute of the
    button in the buttonBar facet of the dialog. This works fine if I just have one button in the buttonBar facet.
    Ie. the actionListener fires and the page navigation occurs after popup closes as a result of user clicking button.
    When I add one additional button to the button bar facet the navigation stops working.
    Anyone familiar with this issue and has an idea to fix it.
    Thanks,
    Kenneth

    No, as mentioned with one button it works fine. So the mechanism used for setting actionListener and action is fine.
    In addition the popup is on a pageTemplate. Just the strange thing is, with one it works with two it doesnt even if I don't
    do anything with it other than drag and drop an extra button in the the buttonBar facet of the dialog.

  • Set-ADUser based on .csv file - empty attributes issue

    Hi, after a few months without working with PowerShell my knowledge is slowly fading away but fortunately every time this happened before, I was able to rebuild my knowledge again and now it is the same story. However I want to optimize my simple
    code which populates three AD user object attributes: manager, officephone and fax with values stored in .csv file. Everything works well, but my code looks not so good in my opinion. Is there any more elegant solution?
    $AddressBook = Import-CSV -Path D:\AddressBookFinal.csv
    foreach($Employee in $AddressBook)
         if([string]::IsNullOrEmpty($Employee.ManagerUserName)) {
                  Set-ADUser -Identity $Employee.EmployeeUserName -Manager $null
        } else {
                  Set-ADUser -Identity $Employee.EmployeeUserName -Manager $Employee.ManagerUserName
        <#similar code here for checking value of OfficePhone and Fax attributes and populating             AD attributes depending on if attribute value in .csv file is empty or not#> 

    Hi BoxiKG,
    If there is any other question regarding this issue, please feel free to reply this post directly so we will be notified to follow it up.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Pick and Pack / Goods Issue with Multi Batch Pickup

    Dear Friends,
    Can anyone explain me the process of Pick and Pack / Goods Issue with Multi Batch Pickup.
    Harsh

    Hi Mathur,
    Please refer these links on working with batch splits in deliveries :
    <a href="http://help.sap.com/saphelp_47x200/helpdata/en/38/c1853488601e33e10000009b38f83b/frameset.htm">Batch split</a>
    <a href="http://help.sap.com/saphelp_47x200/helpdata/en/38/c1853488601e33e10000009b38f83b/frameset.htm">Executing Multi batch</a>
    <a href="http://help.sap.com/saphelp_47x200/helpdata/en/38/c1853488601e33e10000009b38f83b/frameset.htm">Transferring Batch Data from Deliveries into Warehouse Management</a>
    Hope it helps. Please reward if useful.
    Thanks & Regards
    Sadhu Kishore

  • Parsing XML Node with href attribute

    Hi,
    I have the following XML that has to be parsed using JSP DOM. All fine except for one. The only problem that i have is when to parsing the Node with href attribute.
    I am using the following method, and it returned with weird result
    currNode.getAttributes() ====> the result is com.sun.org.apache.xerces.internal.dom.AttributeMap@111ae04
    currNode.getNodeValue() ====> the result is null
    currNode.TextNode ===> it returned *2*
    Can anyone please let me know what did I miss here? What should I do to parse the href attribute into the jsp page?
    The below is the xml.
    <MovieList>
    <Movie href="DarkKnight.xml">
       <head>
             <Title>Batman Dark Knight</Title>
             <Genres>
                   <Genre>Action</Genre>
                   <Genre>Sci-Fi</Genre>
             </Genres>
             <Description>Movie Details here</Description>
       </head>
    </Movie>
    </MovieList>Thanks

    I am not sure what "JSP DOM" is exactly. In the W3C DOM supported since SUN Java 1.4 if you have an element node and want to access an attribute value you can simply use String href = movieElement.getAttribute("href"); You might need to cast your Node to Element first e.g.Element movieElement = (Element)currNode;

Maybe you are looking for