Setting an attribute value of a tag equal to a String variable in scope

Hi,
I don't think this is possible because I get an "expression not allowed" error when trying it. But long story short I'm trying dynamically set attribute values on a taglib. For example:
<%
String value="attributevalue";
// set the attribute of the tag below equal to this variable value
%>
<tag:mytaglib name="<%=value%>"/>
I looked at the generated jsp page and seems like the variable "value" is not in scope of the method that processes the tag. Does anyone have any ideas or can confirm that there is no way to do this. Thanks!

You can do it.
In your tag library (*.tld) file, have an entry as:
    <attribute>
        <name>name</name>
        <required>true</required>
        <rtexprvalue>true</rtexprvalue>
    </attribute>This should do the trick.
Let us know if it worked for you.
Thanks and regards,
Pazhanikanthan. P

Similar Messages

  • Is it possible to regroup data based on attribute value of a tag?

    is it possible to regroup data based on attribute value of a tag?

    Hi Rajeev,
    You can filter records during import if one of the Matching field is of type Lookup.
    In your case if you create City as flat lookup table in MDM & maintain lookup values in DM(Just as an example), then you can import only records where city is HYD.
    Map Name & City, Then in Match Records tab select both the fields (Combination)
    then right click on it & select Filter.. option.
    Now new pop up will open where you be able to see ur Lookup table values, from there select HYD and Add
    Now in default Import Action, set Create Action for None/None (All other will be skip)
    This way you will import only HYD records.
    But this is possible only on Lookup fields & not foe Text fields
    Hope this will help you
    Thanks & Regards,
    Mahi

  • Setting property attribute values for multiple selected objects.

    Hello,
    Is there an easy way to set the attribute property values for more that one selected Table Operator Attribute (column) at a time. For example the target table has over 100 columns but I only want to INSERT/UPDATE 10 of those columns. The generated MERGE, INSERT and UPDATE statements will perform DML on all of the columns in the target table, setting the 90 columns with no mapping set to NULL. This is due to the Loading Properties 'Load Column when Updating Row' and 'Load Column when Inserting Row' both default to Yes. I would like to select multiple Attributes in the Table Operator and change the 'Load Column when Updating Row' and 'Load Column when Inserting Row' to No. This is similar to what you were able to do in Oracle Forms 9.0 Designer select multiple Items in a Block and change the properties en-masse.
    Thanks

    Hi,
    Using OMB scripting to set attribute properties in a data mapping sort of defeats the purpose of utilizing a graphical user interface to define and set properties for a data mapping? Surely the GUI data mapping tool was created to get away from writing scripts and scripting would also require that you know the name of the data mapping, table operator and the set of attribute names for which you have to write one line of script to set each property value, i.e. 90 lines to set 90 attribute values.
    Cheers,
    Phil

  • How to set an attribute of a HTML tag with a value in the Servlet

    I have a HTML page and a Servlet.
    The HTML page sends a request to the Servlet.
    The Servlet has to read the contents of the HTML page. When the Servlet encounters the body tag it should set the bgcolor attribute of the body tag with a string(For eg.a string called color with a value blue) in the servlet.
    After doing this the Servlet has to update the original HTML page with the changes (in the body tag).
    I need a help on this.

    Hi sangee,
    you could get what you want to do by using a Java Server Page instead of both a HTML page and a Servlet.
    I should code something like this:
    <%Strung color="yourColor"%>
    <html><head><title></title></head>
    <body bgcolor="<%=color%>
    </body>
    </html>

  • Data Set - Encode Attribute Value?

    I'm using an HTML data set with an active region. Some of the
    data is to be used as attribute values (e.g. as the "value" of an
    "input" tag), and some of the data is to be used within the HTML of
    the document (but should not be rendered as HTML). What is the best
    way (recommended practice) for encoding the data for these uses? In
    other words, does the spry framework provide such utilities? Is
    there a way to pull the data out of the data set already encoded
    for use as an attribute value? Or with >, <, and &
    properly encoded for use in HTML?

    I guess you are also using SpryData.js in the same page.
    SpryData.js has a function called
    Spry.Utils.encodeEntities(string);
    It will encode your Entities for you and returns the changed
    string. If you data is already encoded before you brought it in to
    the SpryDataset, make sure you didnt set the columnType to html.
    If not you can do something like this
    <script type="text/javascript">
    function encodeEntities(region, lookupFunc)
    return
    Spry.Utils.encodeEntities(lookupFunc("{dsProducts::desc}"));
    </script>
    <div spry:region="dsProducts">
    <ul spry:repeatchildren="dsProducts">
    <li>{name} - {function::encodeEntities}</li>
    </ul>
    </div>

  • How to set a attribute value of a sub node binded to a table.. pls respond.

    Hi friends,
    I have context defined like this.
         Head_node ( table 1)
              Item_node ( table 2, sub node ).  ( now this im saving in global internal table).
    so now when i hit save button, im passing my internal table (it has col1- sales order no, col2 item details(table type, which can have more than one record) to a FM, to create sales order.
    My sales order is getting saved.
    But the function module will return some new values (like sales order number, item number etc).
    Now i want these values to be updated in my context.
    Meaning whenever after that i do get_attribute, i should get these new (sales order no, item no ) also.
    I dont know how to set the context values of sub nodes , so im missing these values.
    kindly respond back to me..
    thanks in advance,
    Niraja

    Its very simple.
    Follow these steps. e.g you want to get the new sales order number. Define a attribute in ur node (or set of attributes in ur case as per reqruirement) say new_so_number.
    Check your FM, if its returning new_so_number then it's fine, otherwise you have to change the FM to return the new_so_number or you have to get from db table somehow, which best suites your req.
    So once you have new_so_number after calling the FM, say in lv_new_so_number field. Then write this code to set the attribute (change the variables as per your context attributes)
    DATA lo_nd_head TYPE REF TO if_wd_context_node.
      DATA lo_el_head TYPE REF TO if_wd_context_element.
      DATA ls_head TYPE wd_this->element_head.
      DATA lv_new_so_number LIKE ls_head-new_so_number.
    * navigate from <CONTEXT> to <HEAD> via lead selection
      lo_nd_head = wd_context->get_child_node( name = wd_this->wdctx_head ).
    * get element via lead selection
      lo_el_head = lo_nd_head->get_element(  ).
    lv_new_so_number = new_so_number. " (You got this as a exporting parameter of FM etc..)
    * get single attribute
      lo_el_head->set_attribute(
        EXPORTING
          name =  `NEW_SO_NUMBER`
          value = lv_new_so_number ).
    Hope it works.

  • How to use SQL import to set the attribute value based on another?

    Hello all,
    I want to set an attribute of a dimension based on another attribute (if matches). Let's say I have a dimension PRODUCT. And I have defined two user defined attributes MANAGER and ISVISIBLE.
    Now within a PERMIT_READ program I want to set the ISIVISIBLE to true where the MANAGER Value is selected from a table.
    Something like
    <define a cursor c1 to select all the Manager values>
    sql import c1 into -
    :MATCHSKIPERR PRODUCT_MANAGER then <PRODUCT_ISVISIBLE (PRODUCT MANAGER) = true>
    <etc>
    Obviously the above is not correct. But I am stuck as to how this can be done? Can some one on this forum please help me with correct syntax/ approach please?
    Thanks a lot.
    Pxsheth
    This statement assigns true to the isvisible attribute for every gc_dim_bu dimension (selected as part of cursor c1).
    SO FAR SO GOOD.. NOW -
    If I want to change the above so that the attribute value gets assigned based on another attribute for the dimension (say a flag). i.e.
    Set the isvisible to true where attribute flag has a certain value. How do I code this in OLAP DML?

    There are a number of ways to do this. If you want to use an attribute that has been defined within AWM as an attribute of Product then simply using the mapping tool to populate the attribute as part of the normal dimension load procedure.
    Alternatively you could create an attribute at the DML level, and assuming you are not using surrogate keys, you can then define a cursor to read the relational table to populate your attribute. Something like this:
    sql declare MKT_BASKET cursor for -
    select PRODUCT_ID, PROD_MGR , PROD_VISIBLE -
    from PRODUCT_DIM
    if SQLCODE ne 0
    then goto ERROR
    sql open MY_CURSOR
    sql fetch MY-CURSOR loop into :append PRODUCT, :PRODUCT_MANAGER, :PRODUCT_ISVISIBLE
    sql close MY_CURSOR
    sql cleanup
    update
    commit
    If you want to create a complex PERMIT function using OLAP DML then personally I would create a formula and assign a program of type BOOLEAN and have the program return a YES or NO depending on the outcome of your test. Then your PERMIT_READ still references a dimension object. For example:
    DEFINE PROD.ISVISIBLE BOOLEAN FORMULA <PRODUCT>
    EQ PRG.ISVISIBLE(PRODUCT)
    DEFINE PRG.ISVISBLE PROGRAM BOOLEAN
    The program will then return Yes or No depending on the processing you need to do.
    Hope this helps
    Keith Laker
    Data Warehouse Solution Architect
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • API to create value set with attribute values ?

    Hi
    I was hoping someone might be able to help with this question.
    I am creating a series of value set values using fnd_flex_val_api.create_independent_vset_value and fnd_flex_val_api.create_dependent_vset_value as part of a migration.
    These APIs do not allow you to pass in attribute column values.
    How can you create a value set value which has attribute values populated ? Is there another API does anyone know ?
    Thanks a lot
    Scott

    All APIs are listed in Oracle Integration Repository
    http://irep.oracle.com/index.html
    API User Notes - HTML Format [ID 236937.1]
    R12.0.[3-4] : Oracle Install Base Api / Open Interface Setup Test [ID 427566.1]
    Oracle Trading Community Architecture API User Notes, June 2003 [ID 241320.1]
    Technical Uses of Customer Interface and TCA-API [ID 269121.1]
    Pelase also check below:
    Api's in EBS
    Re: Api's in EBS
    http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
    API
    Fixed Asset API
    List of API
    Re: List of APIs
    Oracle Common Application Components API Reference Guide
    download.oracle.com/docs/cd/B25284_01/current/acrobat/jta115api.pdf
    List of APIs and open interface R12
    Re: List of APIs and open interface R12
    Regard
    Helios

  • Why there is a difference in a "class" attribute value of html tag when viewed in "Page Source" and using "Inspector", I am refering to new Microsoft site?

    While inspecting the new Microsoft site source, I observed that the "class" attribute value of the "html" tag when seen in Page Source the value given by Tools/Web Developer/Inspect tool. Value with the tool indicates class="en-in js no-flexbox canvas no-touch backgroundsize cssanimations csstransforms csstransforms3d csstransitions fontface video audio svg inlinesvg" while that is given in Page Source is class="en-us no-js"
    The question is why different values are shown?

    Inspector is showing you the source after it's been modified by Javascript and such.
    To see the same thing in the source viewer, press '''Ctrl+A''' to select everything on the page, then right-click the selection and choose '''View Selection Source'''.

  • Setting form attribute value with php

    i am having trouble setting the checked attribute value of a
    radio button based on the url parameter search. if search == all
    then checked == checked else checked == unchecked.
    <input type="radio" name="search" value="all"
    checked="<?php if ($_GET["search"] == "all") { echo"checked";}
    else { echo"unchecked";} ?>" />
    what am i doing wrong?

    This code should work
    <input type="radio" name="search" value="all" <?php if
    ($_GET["search"] == "all") { echo "checked";} ?> />

  • Query in Setting the attribute value

    Hi all,
             can anyone please tell me as to how to set a value of an attribute from the 'DO_PREPARE_OUTPUT' method of Implementation class.
    Regards,
    Vijay

    Upendra,
    Its not necessary that VO should be based on EOs, Mani told you a particular case!You need not create a VO object inside a VO for validation purpose, but you can have a separate VO, do your validation! You have look the controller code and see that your validation code goes before the data is committed to DB.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Reg : Setting a attribute value through function module

    Hi guys,
           I got a RFC to To read the attribute of a particular work item ( SWI_READ_CONTAINER_ATTRIBUTE ) simillarly Is there any function module to write the attribute?
    Thanks,
    Mugundhan

    Hi Mugundhan ,
    if you want to pass Value to workflow container variable while starting the workflow
    use function module SAP_WAPI_START_WORKFLOW and pass value to the Table parameter input_container 
               wa_container-element = 'TEMP_AGENT' .
                 wa_container-value   = 'SAPUSER' .
             APPEND wa_container TO lt_container .
    if you want to update the workflow container .
    using the function module SWW_WI_FIND_FATHER_WIS  to get father workitem here only all the container variable available .
    then pass father workitem to the function module SWW_WI_CONTAINER_READ,  this function module will return the container values in table parameter wi_container   
    using  the function module you can update the workflow container variable
      CALL FUNCTION 'SWC_ELEMENT_SET'
                        EXPORTING
                          element       = 'TMP_AGENT'
                          field         =  'SAPUSER;
                        TABLES
                          container     = lt_container
                        EXCEPTIONS
                          type_conflict = 1
                          OTHERS        = 2.
    thanks and Regards
    Krishnan R

  • Need to add row and set attribute value on pageload

    Guys,
    On my page based on the pageflowscope variable value, i need to add a row for master and one row for detail viewobject and set attribute values. (Some of the attribute are LOV and Checkboxes as well)
    I am using following code to create records.....records are being added but i am not able to set the attributes
    OperationBinding ob;
    ob = ADFUtil.findOperationBinding("Create");
    ob.execute();
    ob = ADFUtil.findOperationBinding("CreateInsert3");
    ob.execute();
    I am using following code to set the attributes value
    DCIteratorBinding dc1 = ADFUtil.getBindingIterator("firstiterator");
    DCIteratorBinding dc = ADFUtil.getBindingIterator("seconditerator");
    row1=dc1.getCurrentRow();
    row=dc.getCurrentRow();
    row.setAttribute("activest","A");
    row1.setAttribute("type","dc14");
    Anything i am doing wrong here or any suggestion to try is greatly appreciated....

    Vinod,
    Yes commit button is there and yes its also has entry in pagedef...
    When I open the same page on edit mode and i can edit regular record and save them
    Problem is that when i open the page on new mode and try to add rows on page load..... and setting values as described above.... save button somehow doesn't work...
    seems like after i add the rows on the fly, i need to refresh the binding?
    any help is greatly appreciated....
    thank you guys

  • Is it possible to get and Set attribute value in OVD through JNDI or Java

    Hi,
    I have a requirement to read an OVD Attribute value from a Jsp Page and set the Attribute value in OVD.
    Is it possible to achieve it through JAVA/JNDI code, Any pointers or code snipplet are welcome.
    Thanks
    Ak

    Use JNDI with LDAP provider or another LDAP java library, plenty of examples on google

  • Setting QueryDescriptor's attribute values programmatically

    Hi all,
    How can I set the attribute value(s) in a query descriptor programmatically? From the query descriptor you can get a handle on a particular attribute criterion which has a getValues() but no setValues(). Can this be done?
    Also, is it possible to programmatically switch a query panel from basic mode to advanced mode and vice versa?
    I am using JDeveloper 11.1.1.7
    Thanks,
    Bill

    Hi Timo,
    Your suggestion worked after a little bit of tinkering around. I assumed that AttributeCriterion makes a defensive copy of the list before returning it, however this isn't the case. In fact. it returns a list of type FaceCtrlSearchingBinding$AdfCriterionValues which does not behave as expected.
    The following prints null:
    List values = attributeCriteria.getValues();
    values.clear();
    values.add("1100254");
    System.out.println(values.get(0));
    While doing it this way prints the expected value "1100254":
    List values = attributeCriteria.getValues();
    values.clear();
    values.set(0, "1100254");
    System.out.println(values.get(0));
    Thanks,
    Bill

Maybe you are looking for

  • Open PO's report

    Hello, I wonder if you can help me, my company is using SAP ECC6 for the Not for Profit version, we are trying to run a report for Year End to list all Open POu2019s, to be sorted by Account Assignment, Purchasing Document, Budget holders/Buyers Purc

  • Clearing of User Inbox

    Dear All, I have a scenario like this:while one HR user trying to trigger some automatic generated mails(from SAP to Lotus notes) related to bill settlements,he is getting message something like this in small pop-up window of SAP office express info

  • ELM -  Special characters in List Management

    I have the following two questions which are very important for business, can anyone let us know the simplest way we can workaround the following issues: 1.     Special charaters to take care using UTF-8 format csv or txt files 2.     Everytime corre

  • MacPro(Leopard10.5.5)+ATI HD2600 : Bad combination. Who is responsible for

    (Sorry for my poor english) My MacPro(early2008 2.8G) has ATI HD2600 Graphic card. When I connect dual monitors(2x Eizo L465), the main display(DVI-1) is garbled like this. http://web.mac.com/leesangmok/display.mov I thought that is a screen Refresh

  • What is "Determining Song Volume?"

    And why does it take so long? I want to update a restored iPod on iTunes 7, but it's spending forever going through 4,000 some songes to "Determine Song Volume." I have not seen iTunes do that before. Is there a way to make it stop? iMac G5   Mac OS