Dynamic href property in cfgrid?

is there a way to make this work? i'm trying to use different href values inside a cfgrid, based on the value returned by the query. for some reason, it always navigates to the second url, "someOtherURL". grid format is html
<cfgrid>
<cfif myQry.myColumn eq 'something'>
    <cfgridcolumn href="someURL">
<cfelse>
    <cfgridcolumn href="someOtherURL">
</cfif>
</cfgrid>
thanks a lot!

Take your if/else logic outside of the cfgrid tag so you can see what you are doing.  I solve these sorts of problems like this:
<cfif WhatIHave is WhatIExpect>
output yes
<cfelse>
output no and WhatIExpect and WhatIHave.
If WhatIExpect looks like WhatIHave, check for whitespace.

Similar Messages

  • Passing dynamic System property to applicaiton

    Is it possible to pass dynamic system property from the command line to the application in javawebstart. So that my application can get it using System.getProperty() method.
    Thanks in Advance,
    Sarangan

    Hi,
    Thanks. But its not possible for us to move to SE 6. Right now we are in JRE 1.5. Is there any other way to pass mulitple/dynamic arguments to the Applicaiton. We will be using only the javaws command line only to invoke the remote application by passing the url(jnlp_url). So we need to pass mulitiple command line arguments to the application through javaws.
    Sarangan

  • Dynamic class & property

    Hi there!
    I would like to know, if it is possible to mimic the behavior of XML dynamic class:
    var xm:XML =
        <question idAttr="atribute xml">
        </question>;
    trace(xm.attributes());
    trace("Attributes: "+xm["attributes"]);
    xm["attributes"] = {a:"atr1", b:"atr2"}; (in my dynamic class with attributes function, I get ReferenceError: Error #1037)
    trace("Attributes: "+xm["attributes"]);
    trace(xm.attributes());
    So I can call:
         xm.attributes() method which gives me XML attributes
    and use
         xm["attributes"] = {a:"atr1", b:"atr2"};
    which writes to the "attributes" property and not references the XML class function.
    My question:
    How can I do the same in my custom dynamic class ?
    Gregory

    As you might noticed some syntaxes of XML class' properties and methods are not conventional to AS3. This, perhaps, hints to the fact that XML class is not an AS3 class in its purest sense. In other words it is probably written in a different language (C? C++?...).
    In AS3, unlike in other languages, you cannot name property and method the same. So, there is no way to have both "attributes" property and "attributes()" method.
    Nevertheless, if you want to emulate XML functionality to some extend and enumerate/return dynamically set properties, you can definitely do that. This is an excellent case for using accessors (setters and getters):
    package 
         public dynamic class DynamicClass
              public function DynamicClass()
              public function get attributes():Object {
                   var obj:Object = { };
                   for (var prop:String in this) {
                        obj[prop] = this[prop];
                   return obj;
              public function set attributes(obj:Object):void {
                   for (var prop:String in obj) {
                        this[prop] = obj[prop];
    Usage:
    var dc:DynamicClass = new DynamicClass();
    dc.prop2 = "BLAH";
    dc.attributes = { propA: "bbb", anotherProp: 456 };
    trace(dc["attributes"]);
    for (var prop:String in dc.attributes) {
         trace(prop, "=", dc.attributes[prop]);
    Message was edited by: Andrei1

  • Set a dynamic default property when a page is created?

    Is there a way to set a default property that is dynamic for a page when it is created? For example, i want to capture a user id from our system and store it in an "author" property when the page is first created. This value can be changed to a different user by the author but in case they don't set it i want to have it default on page creation.
    I guess a better question would be, is there somewhere i can put code so that it will be executed when a page is created?
    I considered writing a custom widget and putting this in page properties, but that won't actually run unless page properties has been opened.
    Thanks

    For anyone in the future, here is how i implemented the event handler -
    @Component
    public class PageCreationObservation implements EventListener {
        Logger log = LoggerFactory.getLogger(this.getClass());
        private Session adminSession;
        @Reference
        SlingRepository repository;
        @Activate
        public void activate(ComponentContext context) throws Exception {
            log.info("Activating PageCreationObservation");
            try {
                String[] nodetypes = {"cq:Page"};
                adminSession = repository.loginAdministrative(null);
                adminSession.getWorkspace().getObservationManager().addEventListener(
                    this, //handler
                    Event.NODE_ADDED, //binary combination of event types
                    "/content/appname", //path
                    true, //is Deep?
                    null, //uuids filter
                    nodetypes, //nodetypes filter
                    false
            } catch (RepositoryException e) {
                log.error("Unable to register session",e);
                throw new Exception(e);
        @Deactivate
        public void deactivate(){
            if (adminSession != null) {
                adminSession.logout();
        public void onEvent(EventIterator eventIterator) {
            try {
                while (eventIterator.hasNext()) {
                    Event newEvent = eventIterator.nextEvent();
                    log.info("something has been added : {}", newEvent.getPath());
                    //Check if node exists and it is a content node of the newly created page
                    if (adminSession.nodeExists(newEvent.getPath())
                            && adminSession.getNode(newEvent.getPath()).getProperty("jcr:primaryType").getString().equals("cq:PageContent")) {
                        Node contentNode = adminSession.getNode(newEvent.getPath());
                        if (contentNode.getProperty("jcr:createdBy") != null) {
                            contentNode.setProperty("author", contentNode.getProperty("jcr:createdBy").getString());
                adminSession.save();
            } catch(Exception e){
                log.error("Error while treating page creation events",e);

  • How do I create dynamic HREF anchors??

    Is there any way where I can get a value rendered from a Bean into JavaScript??
    how do I write a javaScript function that can read in the commandLink
    Can I do like this??? Let me know; this is kind a vague :-(
    Eg:
    <h:dataTable var="test" value="#{TestBean.list}">
    <t:column>
    <t:commandLink value="#{test.name}" id="pathway"  onClick="dosomething(#{test.name})" />
    <t:column>
    </h:dataTable>
    <script>
    doSomething(test)
    document.location.href="#test";
    </script>
    //Essentialy the goal is to create dynamic Hrefs

    use h:outputLink

  • Dynamic Parent Property

    Hi Gurus,
    Requirement - Need to populate Immediate Parent Member details for ACCOUNT DIM.
    In ACCOUNT DIM, we have three different Hierarchies - H1, H2 & H3.
    As part of the Input Schedule, User needs to select an Account Group for which the plan data will be maintained. I am using EPMSelectMember function for the purpose and a DIMOverride function for populating relevant Account Member values in ROWs.
    I have taken Account into ROW Axis and I am able to get the PARENTH1 Values. But User wants PARENT PROPERTY to change based on the Hierarchy selected.
    Please advise on how we can get this based on Selection.
    Thanks,
    Subbu.

    Hi Shrikant & Vadim,
    I am really sorry for not being able to understand what kind of Screen shot you're expecting....
    I am trying it out with simply report - Time DIM on the Col. Axis, Account DIM on the Row Axis and with one Selection for Account Group.
    Here I am using EPMSelectMember to an Account Group while the Account DIM is taken in ROW Axis. I have an additional Col. where I am deriving Immediate Parent using EPMMemberProperty for ParentH1.
    As I mentioned in my Original post, While H1 is a Main hierarchy, we have alternate hierarchies - H2 & H3. User can select an Account Group from any Hierarchy.
    If the user selects an Account group from H2 or H3, I am looking for a possibility of deriving H2 or H3 parent values based on Account Group Selected dynamically without changing the EPM function (EPMMemberProperty for PARENT).
    My serious apology for not being able to come up with any screen shot. I do understand that you guys are not sitting with me or discussing with me... I do understand that I need to be as clear as possible to be able to make you guys understand my issue to be able to help me....
    Hope you understand.
    Thanks,
    Subbu.

  • 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.

  • Namespace and dynamic custom property access

    Hi,
    I am trying to dynamically set Custom Property of KM Folder(Repository Framework) using the sample code which I found in one of the SAP site. I have modified the code for my requirement and this is how it looks. What I am not able to understand is the "namespace" part. Can anyone tell me what is this namespace field and how should I modify the code for it to get working.
    RID rid = RID.getRID("/documents/TestFolder");
    IResource resource = ResourceFactory.getInstance().getResource(rid, resourceContext);
    String namespace = "http://com.sap.netweaver.bc.rf.sample/xmlns/sample";
    String name = "PublishedOn";
    IPropertyName propertyName = new PropertyName(namespace, name);
    IProperty property = resource.getProperty(propertyName);
    IMutableProperty mutableProperty = property.getMutable();
    mutableProperty.setStringValue("10/12/2005");

    They play the same role as namespaces in XML, RDF or WebDAV. You may want to read http://www.rpbourret.com/xml/NamespacesFAQ.htm.

  • Adding Href Property To PublishingWebControls:RichImageField

    Hi All,
    I have created a page layout inheriting from   artical page content type.I have included page image content field (ie PublishingWebControls:RichImageField when added ) .We need make this field as clickable so that click on this it will open new window
    with vidoe(Requirment:Need to provide thumb nail url for image  to open vidoe when users click on the image).
    Problem:As of now this field is not clickbale.I am trying to add href as custom property to this filed by inheriting class form richimagefield but not getting anyresult.
    I tried we can provide anchor tag link for label as <a href='{0}'>{1}</a>", "url", "Click Me"/> its working.
    I want the same way for richimage field .Please help me in this .
    SharePoint Deginer 2013 ,SP2013 for this task.
    Thanks ,
    veeresh G

    Thanks Patrick for your reply and time .I tried what ever you have mentioned its working.But i read some where we can
    provide hyperlink while uploading image .So that it will open in new window.some links it was mentioned there is some issue with PublishingWebControls:RichImageField with
     which will render <img> tag instead of redering <image> tag becuse ot this it is not clickable even though we give hperlink url which we get option while inserting image fisrt time.i have followed those link but didnt work.Bleow is the link
    that i followed but i didnt get.
    http://vivek-soni.blogspot.in/2009/05/oob-publishing-image-field-with.html
    http://blogs.technet.com/b/stefan_gossner/archive/2007/03/29/how-to-overcome-glitches-with-the-standard-field-controls-shipped-with-moss-2007.aspx

  • Dynamic text property

    i have a dynamic text box with the name 'prodName'
    in the actions layer I have set prodName.text = "something";
    prodName.textColor = 0x000000
    When I test it, the color code works fine, but the dynamic
    text doesnt. I have tried htmlText on and off. Tried embedding and
    not embedding. Cant figure out why this wont work. I have done this
    before, what am I missing this time?
    chers
    mm66

    Well it turns out it was the embedding after all. Turning off
    ALL embeded fonts fixes it. So what happens with end users who do
    not have the fonts? I recall seeing some posts about that now
    cheers for the replys
    mm66

  • Dynamic vi property

    hello,
    i would like to change vi appearence in runtime mode
    does anyone know where is the horizontal/ vertical property of vi
    same for the stop vi button
    Regards
    tinnitus
    CLAD / Labview 2011, Win Xp
    Mission d'une semaine- à plusieurs mois laissez moi un MP...
    RP et Midi-pyrénées .Km+++ si possibilité de télétravail
    Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
    Don't forget to valid a good answer / pensez à valider une réponse correcte
    Solved!
    Go to Solution.

    ok i got it
    it was
    ref vi -> FP  ->   array of ref of pane  ->   scroll bar visiblity
    CLAD / Labview 2011, Win Xp
    Mission d'une semaine- à plusieurs mois laissez moi un MP...
    RP et Midi-pyrénées .Km+++ si possibilité de télétravail
    Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
    Don't forget to valid a good answer / pensez à valider une réponse correcte

  • Dynamically set Property (Read-Only,Changeable...) of an attribute

    Hi,
    I have a requirement to change an attributes display to 'READ-ONLY' on a specific condition during CREATE or EDIT operation.
    I have written the following lines of code to achiveve the same, but i get an error :-
    data : lr_prop    TYPE REF TO if_genil_obj_attr_properties.
    if cond1 =  true.
    lr_prop->set_property_by_name( iv_name = 'PROBABILITY' iv_value = if_genil_obj_attr_properties=>read_only ). --> error-line
    endif.
    Can you please suggest what's gone wrong?
    Thanks
    Dedeepya

    But GET_I* is called before DO_PREPARE_OUTPUT, and the variables in GET_I* are not recognized in DO_PREPARE_**...
    Current Code :-
    GET_I_PROBABILITY
    *CALL METHOD SUPER->GET_I_PROBABILITY
    **  EXPORTING
    **    iterator    =
    *  RECEIVING
    *    RV_DISABLED =.
      DATA :   lr_btopporth TYPE REF TO cl_crm_bol_entity,
               lv_read      TYPE crmt_genil_attr_property,
               lv_phase     TYPE string, lv_process TYPE string,
               current      TYPE REF TO if_bol_bo_property_access,
               property     TYPE REF TO cl_crm_bol_entity.
    IF iterator IS BOUND.
        current = iterator->get_current( ).
      ELSE.
        current = collection_wrapper->get_current( ).
      ENDIF.
         IF current->is_property_readonly( 'PROBABILITY' ) = abap_false. "#EC NOTEXT
            CALL METHOD current->get_property_as_value
              EXPORTING
                iv_attr_name = 'CURR_PHASE'
              IMPORTING
                ev_result    = lv_phase.
            CALL METHOD property->get_property_modifier
              EXPORTING
                iv_attr_name = 'PROBABILITY'
              RECEIVING
                rv_result    = lv_read.
          ENDIF.
    DO_PREPARE_OUTPUT
    *CALL METHOD SUPER->DO_PREPARE_OUTPUT
    **  EXPORTING
    **    iv_first_time = ABAP_FALSE
      DATA : lr_btadminh  TYPE REF TO cl_crm_bol_entity,
             lv_process TYPE string.
      CALL METHOD lr_btadminh->get_property_as_value
        EXPORTING
          iv_attr_name = 'PROCESS_TYPE'
        IMPORTING
          ev_result    = lv_process.
    IF ( lv_process EQ 'ZPPT' AND lv_phase = 'ZA' ) OR ( lv_process EQ 'ZPT2' ).
    *    lv_read = lr_btopporth->get_property_modifier( 'PROBABILITY' ).
        IF lr_prop->get_property_by_name( 'PROBABILITY' ) EQ if_genil_obj_attr_properties=>changeable.
          "-- <ZPPT-> Business/Affaire> "-- <ZPT2-> Prospection>  "-- <ZA-> Finale>
          lr_prop->set_property_by_name( iv_name = 'PROBABILITY' iv_value = if_genil_obj_attr_properties=>read_only ).
        ENDIF.
      ENDIF.

  • Dynamic UI Property Manipulation

    Hello,
    In DOTNET I used to code in just one line if I had to change the property of some element in the form.
    eg. textview.visible = false.
    Here in WD, I have still not been able to find out a one line code to change the property of the UI element that I have used in my view.
    I do not want to bind it to some attribute in the context. Just simple as DOTNET. Is it possible then please let me know. It would be of great help as I have put a lot of time into it but still have not been able to get through this.
    Thanks,
    Happy Coding,
    Rahul

    Lets say you have a button and an event handler for that button.  Inside the event handler, you directly manipulate the visibility of part of the UI using coding. 
    Now you perform the same logic using binding to a context attribute.
    Time passes.
    Now the requirements have changed and you need to hide a different part of the UI under the same conditions.  If you used context binding, you need only to reassign the bindings. You don't care where in the coding the context attribute was set.  In the other case you have to find the code and you have to change which UI element IDs you are access.
    Another example based upon the above.  A developer comes in and renames the UI elements (maybe becuase he/she cut and pasted a section of the UI to rearrange it).  This changes the UI element IDs and breaks the coding logic for changing the visibilty of the fields.  However it doesn't harm the same requirement that is based upon context bindings because the bindings are independent of the UI element ID.

  • Web service dynamic client property for Call

    Hi, Hope this is the right forum for web service questions. The oracle document (6 Developing JAX-RPC Web Service Clients) on web service client only shows the stub and properties can be set in stub. I would like to use dynamic client. Can Call object have some properties? what are they?
    Thanks

    Can any one please help :-(

  • How will read the property file on dynamically?

    hi,
    I developed 2 java files...in both the files i am reading the some content from .property file(Notes.properties)....
    I created the jar file call Aix.jar using the following command.
    jar -cvf Aix.jar *.class(without specifying the notes.properties file)...
    then i executed the java file using the folowing command
    java -cp Notes.jar;Aix.jar NotesToolTest
    now i am getting following exception:
    Exception in thread "main" java.lang.ExceptionInInitializerError
    Caused by: java.util.MissingResourceException: Can't find bundle for base name Notes, locale en_US
    at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
    at java.util.ResourceBundle.getBundleImpl(Unknown Source)
    at java.util.ResourceBundle.getBundle(Unknown Source)
    at NotesToolTest.<clinit>(NotesToolTest.java:28)
    I got the problem why this happening...because notes.properties is not included in jar file...that's why the above exception is coming.
    But my problem is can i run the java file that will take .prooperties file dynamically(if .property is available on the current directory)...
    Thanks in advance,,,,
    Regards,
    Sankar

    because notes.properties is not included in jar file..Wrong. It is simply not available in the classpath.
    The solution is either putting the properties file in the classpath of JVM used, or adding the system path to the propertiesfile to the classpath of the JAR.

Maybe you are looking for

  • HP LaserJet 2100 to Windows 7

    I love my old HP LaserJet 2100tn. I now have a new W7 computer. I have downloaded the recommended drivers, and I am connect with a DB25 to USB converter cable. When the printer is plugged in, it is found as an unknown device. I have a HP Universal PC

  • "Save As" not responding when downloading a PDF

    I routinely download PDFs which has never been a problem.  As of today I am receiving a message stating "Save As" is not responding.  I have attempted to repair the program but it is still not responding. I am running Windows 8.1

  • How to specify URL in server.xml of Tomcat

    Hi Everybody, I need help.How to specify url in the server.xml. I developed one application in the Tomcat 3.3.I want to access the by entering uri(like:http:test.com). What are tags to enter in the server.xml. Right now i am accessing like:http://loc

  • Why does status bar say that all items are not loaded?

    When I have the status bar displayed at the bottom of my page, and I load a page, it usually says 4 of 5 item complete, or 6 of 7, or even one time, 92 of 93. What does this mean exactly? And why does it never say all items are completed? Is anything

  • Rerieve Duplicate Rows from a SELECT statement

    Hi, I want to see all the duplicate rows from my SELECT statement. Looks like Oracle by default suppresses the duplicate rows. Here is my SQL statement. I like to see all the 5 rows. Please help. select a.partid, a.pdesc from product a where a.partid