Current Position:Home > Dynamic attribute in XQuery

Dynamic attribute in XQuery

Update:10-11Source: network consolidation
Using XQuery I'm trying to dynamically create attributes as the result of a complex for statement.
This works fine:
attributeName="{ for ...}"
and I could just repeat this for every attribute. However the "for/where" statements are complex and I would like to avoid the overhead of having to repeat them for every attribute. What I would like is something like
"{ for ...
where ...
return attribute foo result1
return attribute bar result2
return attribute fubar result3
Any ideas how I could do this?
Also, as an aside, where is this putting the attribute setting code inside quotes documented?

The Best Answer

can we have a hashmap which stores all the unknown
attributes into the hashmap upon loading and then
handle it in the setpropertiesJSF's UIComponent has a function of generic attributes.
Use <f:attribute>.
<cx:inputText value="" foo="footest"/> Anyway, if you want to use the syntax like this, you should provide a custom
tag handler which has a setFoo() method and whose setProperties() method
copys the value to the corresponding (generic) attribute of the component.
  • Dynamic attribute in XQuery Update:10-11

    Using XQuery I'm trying to dynamically create attributes as the result of a complex for statement. This works fine: <tag attributeName="{ for ...}" /> and I could just repeat this for every attribute. However the "for/where" stat

  • Access dynamic attributes BPM; error while activating the process in sxi Update:10-11

    hi everybody, I have to access dynamic attributs in a BPM condition. I thought I could achive this when I click the radiobutton "contextobject" in the condition editor. When using the value-help button on the contextobject a huge list of objects

  • Create a dynamic attribute for each user Update:10-11

    Hi All, I request you all to let me know how to give an approach to the following requirement. REQUIREMENT: I have to create a dynamic attribute in UME for each user and the read the attribute on lead selection of a table having list of Users.       

  • Dynamic Attribute in AS2 Receiver Update:10-11

    Hello, in the Seeburger AS2 Receiver channel I have found "AS Message ID" in the last of possible Dynamic Attributes. How do I set this one, so what is the name of the dynamic configuration key. Any idea on this?Let me expalin you the complete t

  • Need Dynamic attributes for XI adapter to use in Dynamic Configuration ..!! Update:10-11

    Hi Friends, We are planning send message to different receivers through XI adapter by using Dynamic Configuration. Can anyone please tell me what are the dynamic attributes used for XI adapter. In my scenario, I want to pass the Service Number and Pa

  • Dynamic Attributes with UDF - NullPointerException Update:10-11

    Hello, I want to set the file name of an file receiver by means of setting dynamic attributes in an UDF. I use the following code and map the output to the root node of the target message (one input variable is var1) DynamicConfiguration conf = (Dyna

  • Seeburger AS2 Adapter - Dynamic Attributes Update:10-11

    Dear all, We have a scenario where, we are sending an IDOC from our SAP system via XI to one of our partner using AS2. We have to manipulate the file name at the receiver end using the dynamic attributes of the AS2 communication channel. As per the d

  • Error in committing data while using dynamic attributes Update:10-11

    Hi, Module: Performance Management Page: Give Final Ratings: Main Appraiser Here, I have used dynamic attributes to show the competency name without segments. I have added this attribute through controller and i passed value to this attribute in the

  • Easy and efficient way to set dynamic attributes Update:10-11

    My integration scenario is quite complex involving many different receivers and an integration process. For some receivers I have to set dynamic attributes. I know that I can set them by using a UDF, however in my case I mostly use XSLT so this is no

  • Extended receiver determination and Dynamic attributes Update:10-11

    Hello, is it possible to access dynamic attributes within an extended receiver determination? Can I modify / set dynamic attributes of an XI message within an UDF in the extended receiver determination mapping? In detail: In my scenario I want to use