Dynamically assigning variable in xml loop

I am trying to dynamically assign a variable name so I can
build an accordian nav from and XML doc. the code looks like this:
ACnav['depthChild0']._alpha = 0;
ACnav.setStyle("color", 0x0ffffff);
ACnav.setStyle ("openEasing",
mx.transitions.easing.strong.easeout);
ACnav.setStyle ("selectionDuration",
mx.transitions.duration.slow);
navXML = new XML();
navXML.ignoreWhite = true;
navXML.load("menu1.xml");
oY=5;
var currentSection = 0;
function buildNav () {
DisposableXML = new XML();
TempXML = new XML();
button = new Array();
//buttonNum = new Array();
subitem = new Array();
menuItem = new Array();
o = new Array ();
subitemlocation = new Array();
DisposableList = new Array();
buttonList = navXML.firstChild.childNodes;
i = 0;
sectionLength = buttonList.length;
while (i<=buttonList.length) {
if (buttonList
.nodeName.toLowerCase() == "button") {
DisposableXML = buttonList;
DisposableList = DisposableXML.childNodes;
buttonName = buttonList
.attributes.name;
set ("buttonNum", "buttonNumber"+i);
trace(buttonNum);
ii = 0;
//trace(buttonName+"-"+buttonNum);
//ACnav.createChild("View", buttonNum, {label: buttonName,
icon: "mainNav"});
button = ACnav.createChild("View", buttonNum, {label:
buttonName, icon: "mainNav"});
oY=5
while (ii<=DisposableList.length) {
TempXML = DisposableList[ii];
if (DisposableList[ii].nodeName.toLowerCase() == "subitem")
subitem = TempXML.attributes.name;
//subitemlocation = TempXML.attributes.location;
subitemNum="subitemNum"+[ii]+
//trace(buttonNum+"-"+subitemNum+"-"+subitem);
menuItem = ACnav.buttonNum.createChild("subNav",
subitemNum, {childText: subitem});
menuItem
.move(0, oY);
oY=(oY+25);
//trace(buttonNum);
ii = Number(ii)+1;
i = Number(i)+1;
//trace(button);
trace(menuItem);
redraw();
//gotoAndPlay('reload');
The problem lies with this line: button =
ACnav.createChild("View", buttonNum, {label: buttonName, icon:
"mainNav"});
If I quote the "buttonNum", it works, but jumbles the subnav
items together vs in the proper node. I need to have that declared
dynamically so that each parent node has a differentID and then
createchild goes under that. Anyway, I've tried alot of stuff over
the last few days and its getting frustrating.
Thanks for the help if anyone contributes!

You shouldn't need to do a concat within the XQuery path parameter. Try the following:
bpws:getVariableData('inputVariable','payload','/ns1:Request/ns1:instance[bpws:getVariableData(&quot;j&quot;)]')

Similar Messages

  • Dynamically assigning variables based on condition in pl/sql

    I have a script which takes 6 input parameters but based on input 1 parameters 2 to 6 will be assigned to different variables. but the condition is not being checked during variable assignment phase. even if table_update is 'P' para,mater 2 is getting assigned to tariff_group instead of offer_id. Is there any way to solve this problem so that variables get assigned based on condition.
    table_update := '&1';
    if(table_update = 'T')
    THEN
         tariff_group := '&2';
         gf_version := &3;
         tariff_table_name := '&4';
         flag := '&5';
         if(no_rows_tariff(tariff_table_name, gf_version, tariff_group))
         THEN
              if(flag = 'I')
              THEN
                   tariff_column_name := column_tariff(tariff_table_name);
              ELSIF(flag = 'R')
              THEN
                   max_gf_tariff(tariff_table_name, gf_version, tariff_group);
              ELSE
                   DBMS_OUTPUT.PUT_LINE('Please enter correct option for update I- Insert R-Rollback');
              END IF;
         END IF;
    ELSIF(table_update = 'P')
    THEN
         offer_id := &2;
         gf_version := &3;
         promotion_table_name := '&4';
         flag := '&5';

    Although you do not say what your problem is, I suspect that it si something like this:
    SQL> !cat t.sql
    DECLARE
       table_update         VARCHAR2(1);
       tariff_group         VARCHAR2(3);
       gf_version           NUMBER;
       tariff_table_name    VARCHAR2(5);
       offer_id             NUMBER;
       promotion_table_name VARCHAR2(5);
       flag                 VARCHAR2(1);
    BEGIN
       table_update := '&1';
       IF table_update = 'T' THEN
          tariff_group := '&2';
          gf_version := &3;
          tariff_table_name := '&4';
          flag := '&5';
       ELSIF table_update = 'P' THEN
          offer_id := &2;
          gf_version := &3;
          promotion_table_name := '&4';
          flag := '&5';
       END IF;
       DBMS_OUTPUT.Put_Line ('TableUpdate: '||table_update);
       DBMS_OUTPUT.Put_Line ('TariffGroup: '||tariff_group);
       DBMS_OUTPUT.Put_Line ('GfVersion: '||gf_version);
       DBMS_OUTPUT.Put_Line ('Tarifftable: '||tariff_table_name);
       DBMS_OUTPUT.Put_Line ('OfferID: '||offer_id);
       DBMS_OUTPUT.Put_Line ('PromoTable: '||promotion_table_name);
    END;
    SQL> @t T TG1 1 TTN1 F
    old  10:    table_update := '&1';
    new  10:    table_update := 'T';
    old  12:       tariff_group := '&2';
    new  12:       tariff_group := 'TG1';
    old  13:       gf_version := &3;
    new  13:       gf_version := 1;
    old  14:       tariff_table_name := '&4';
    new  14:       tariff_table_name := 'TTN1';
    old  15:       flag := '&5';
    new  15:       flag := 'F';
    old  17:       offer_id := &2;
    new  17:       offer_id := TG1;
    old  18:       gf_version := &3;
    new  18:       gf_version := 1;
    old  19:       promotion_table_name := '&4';
    new  19:       promotion_table_name := 'TTN1';
    old  20:       flag := '&5';
    new  20:       flag := 'F';
          offer_id := TG1;
    ERROR at line 17:
    ORA-06550: line 17, column 19:
    PLS-00201: identifier 'TG1' must be declared
    ORA-06550: line 17, column 7:
    PL/SQL: Statement ignoredAs you can see, the initial assignments for compilation purposes are done prior to actually running the code, and the assignment to offer_id is failing.
    If I change offer_id to a varchar and quote the &2, then the compilation assignemnt works, and the actual logic of the script works:
    SQL> !cat t.sql
    DECLARE
       table_update         VARCHAR2(1);
       tariff_group         VARCHAR2(3);
       gf_version           NUMBER;
       tariff_table_name    VARCHAR2(5);
    offer_id VARCHAR2(3);
       promotion_table_name VARCHAR2(5);
       flag                 VARCHAR2(1);
    BEGIN
       table_update := '&1';
       IF table_update = 'T' THEN
          tariff_group := '&2';
          gf_version := &3;
          tariff_table_name := '&4';
          flag := '&5';
       ELSIF table_update = 'P' THEN
    offer_id := '&2';
          gf_version := &3;
          promotion_table_name := '&4';
          flag := '&5';
       END IF;
       DBMS_OUTPUT.Put_Line ('TableUpdate: '||table_update);
       DBMS_OUTPUT.Put_Line ('TariffGroup: '||tariff_group);
       DBMS_OUTPUT.Put_Line ('GfVersion: '||gf_version);
       DBMS_OUTPUT.Put_Line ('Tarifftable: '||tariff_table_name);
       DBMS_OUTPUT.Put_Line ('OfferID: '||offer_id);
       DBMS_OUTPUT.Put_Line ('PromoTable: '||promotion_table_name);
    END;
    SQL> @t T TG1 1 TTN1 F
    30  /
    old  10:    table_update := '&1';
    new  10:    table_update := 'T';
    old  12:       tariff_group := '&2';
    new  12:       tariff_group := 'TG1';
    old  13:       gf_version := &3;
    new  13:       gf_version := 1;
    old  14:       tariff_table_name := '&4';
    new  14:       tariff_table_name := 'TTN1';
    old  15:       flag := '&5';
    new  15:       flag := 'F';
    old  17:       offer_id := '&2';
    new  17:       offer_id := 'TG1';
    old  18:       gf_version := &3;
    new  18:       gf_version := 1;
    old  19:       promotion_table_name := '&4';
    new  19:       promotion_table_name := 'TTN1';
    old  20:       flag := '&5';
    new  20:       flag := 'F';
    TableUpdate: T
    TariffGroup: TG1
    GfVersion: 1
    Tarifftable: TTN1
    OfferID:
    PromoTable:John

  • Using a dynamically assigned variable in a procedure ?

    Hello every one ..
    I had a small problem in writing a query..
    Actually i had requirement of creating a tablespace  using a procedure
    My procedure is :
    create or replace procedure datafile_test as
    df_location varchar2(600);
    begin
    select distinct substr(file_name,1,instr(file_name,'/',-1)) into df_location from dba_data_files;
    dbms_output.put_line(' Created data file location is' ||df_location);
    end;
    This procedure is working alright but now my requirement is to use that value stored in df_location variable in
    create tablespace my_tbs <df_location>/tbs.dbf size 20m;  // i need to write this statement in my procedure .. how can i bring df_location value in my query
    is it possible to do it ?
    thanks in advance..

    Hello vinay raj
    Ok, your original statement was not right and I have not checked it
    Try this one, it should work:
    create or replace procedure datafile_test
    as
       df_location    varchar2(600);
        v_statement    VARCHAR2(4000);
    begin
        select distinct substr(file_name,1,instr(file_name,'/',-1)) into df_location from dba_data_files;
        v_statement := 'CREATE TABLESPACE MY_TBS DATAFILE ' || CHR(39) || df_location || '/tbs.dbf' || CHR(39) || ' SIZE 20M '
           --- This is optional, but I use this:  
                    || 'AUTOEXTEND OFF LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL AUTOALLOCATE BLOCKSIZE 8K SEGMENT SPACE MANAGEMENT AUTO FLASHBACK ON'
        EXECUTE IMMEDIATE v_statement;
        dbms_output.put_line('Tablespace is created: "' || v_statement || '"'));
    end;
    I hope it helps you!

  • Assigning  element (node) to variable in a loop

    Hello,
    I will get below input as <Request> .<instance></instance>.... <instance><instance>.. </Request>(see below) to my soa composite process. I have an instance.xsd . I have created an variable Instancexml element of type instance.xsd ,so Instancexml variable can hold all the values in order to utilize attributes,elements in my process.
    I have assigned a count for <instance> which is 2 in this case.
    I am looping through count and trying to assign first instance xml to Instancexml variable , but when I use this xpath, both instances are getting copied instead of one (when count=1)
    bpws:getVariableData('inputVariable','payload',concat('/ns1:Request/ns1:instance[',bpws:getVariableData('j'),']'))
    What is the correct xpath?
    <Request>
    <instance>
    <attribute name="abc" type="string"/>
    <attribute name="def" type="string"/>
    <element1 name="123" type="string">
    <element2 name="456" type="string">
    <element3 name="888" type="string">
    </instance>
    <instance>
    <attribute name="xyz" type="string"/>
    <attribute name="xxy" type="string"/>
    <element1 name="223" type="string">
    <element2 name="678" type="string">
    <element3 name="333" type="string">
    </instance>
    </Request>

    You shouldn't need to do a concat within the XQuery path parameter. Try the following:
    bpws:getVariableData('inputVariable','payload','/ns1:Request/ns1:instance[bpws:getVariableData(&quot;j&quot;)]')

  • SSIS Variable Expression not Picking Up the value dynamically set from a Foreach Loop container

    Hello, everyone,
    I have three variables in my SSIS package:
    1) ReportLoc that holds a file path (c:\test, not changed)
    2) ReportFileName that holds a file name that get assigned in a Foreach Loop container (file1, file2, etc.)
    3) OutputFilePath that is the full file pathname, set in the expression: @[User::LocalPath] + "\\" +  @[User::ReportFileName]
    All three variable have the package scope.
    I expect OutputFilePath will be asigned values like c:\test\file1, c:\test\file2, etc.
    However, it alwasy remains an empty string.
    Anything I did wrong? Any help and information is greatly appreciated.
    Regards 

    That's it -- I forgot to set Evaluate as Expression to true.
    Thank you very much for your reply and solution! Really appreciate it!
    Regards.

  • Spry XML data set and dynamic post variables

    Hi,
    I am trying to create an XML data set that has dynamic post
    variables.
    Everytime something is pressed on the page a variable changes
    and I then want to reload the XML data set using the new variable.
    I know I can just pull in an XML with all possible variables
    and filter client side but this would make it way too large.
    Does anyone know what I may need to do.
    I tried this:
    var myVar = 0;
    var dss = new Spry.Data.XMLDataSet (
    '../../cgi-bin/server_details.pl' , 'top' , { method: 'POST' ,
    postData: sid=ajaja21&ip=127.0.0.1&cid=' . myVar ,
    subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted:
    "true", sortOnLoad: "plugins/plugin/order", sortOrderOnLoad:
    "descending", useCache: false, loadInterval: 10000 } );
    onclick="myVar=1";
    But the script doesn't understand the post variables sent (it
    does when I remove the . myVar part and put in a static value). I
    think it isn't sending that dynamic variable with the post
    variables.
    Any ideas anyone?
    Thanks

    Well I had it working when I stripped back everything and
    just had the dss data set and a single onclick function, but now
    that I put it back together it hash foobared again.
    Here are the relevant bits of code that I've changed.
    The function to change server id:
    //function to run when changing the server id
    function changeServer ( sid ) {
    //set the url to use the current server id
    dss.setURL = ( '../../cgi-bin/server_details.pl' , { method:
    'POST' , postData:
    'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid='+sid
    //force a reload of the server data
    dss.loadData();
    The inital load of the data set
    var dss = new Spry.Data.XMLDataSet (
    '../../cgi-bin/server_details.pl' , 'yams' , { method: 'POST' ,
    postData:
    'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid=0' ,
    subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted:
    "true", sortOnLoad: "plugins/plugin/order", sortOrderOnLoad:
    "descending", useCache: false, loadInterval: 10000 } );
    And the part that changes the server id
    <td align="left" style="cursor:default; width:174px;"
    onclick="changeServer({dsv::servers/server/@id})">{dsv::servers/server/name}</td>
    I checked that the function is receiving the correct server
    id and I even tried hard coding the cid variable to 2 in the change
    function but it still wasn't changing on the server side.
    Any ideas?
    Thanks

  • What happens to dynamically declared variables when I'm not using them?

    Hello, I'm making a game using Flash Pro cc. But I wonder what happens to aTile, which is dynamically declared MovieClip variable through a loop. And each aTile gets the 2 EventListener's.
    for(var i:Number=0; i<pVector.length;i++){
        var aTile:ATile=new ATile();
        aTile.x=pVector[i].x;
        aTile.y=pVector[i].y;
        aTile.gotoAndStop(Math.ceil(Math.random()*Color));
        nVector.push(aTile);
        Spr.addChild(aTile);
        aTile.addEventListener(MouseEvent.CLICK,Clicked,false,0,true);
        aTile.addEventListener(Event.COMPLETE, stop,false,0,true);
         // the current function ends here. what happens to aTile now ?? Is it going to be garbage collected? By the way, this piece of code runs whenever a player starts a new level of my game. And I don't make use of the aTile variable in other functions. I use only the nVector variable. And does declaring a dynamic variable in a loop mean a multiple of them are created? For example, if I loop the piece of code above 5 times, does it mean 5 aTile variables are created? Or each time you declare
    var aTile:ATile=new ATile(); again, does it replace the 'old' aTile with the 'new' aTile and therefore only 1 aTile exists after the loop????

    I feel there is a gap in understanding of using variables by reference vs. by value. You should look it up.
    1. new instructs Flash to create a distinct instance that per se has absolutely nothing to do with aTile variable.
    2. REFERENCE to this new instance is assigned to variable aTile. aTile var is a temporary pointer to instance.
    3. It does not replace old tile - it replaces reference.
    4. If reference to the instance is not stored elsewhere - upon exiting of function this instance will be gced.
    5. By creating another reference to the instance you prevent it from GC. One of the ways you preserve instance is by adding it to display list when using addChild.
    You can look at this this way (it is a lame example but still it illustrates parts of the concept)
    Say you have
    1. basket;
    2. basket is small and can hold only one apple;
    3. table;
    4. an apple;
    5. apple can be placed into the basket or table;
    6. dog who love apples.
    7. Dog is trained not to take apples from baskets but table but is free to eat apples that are on the ground.
    So, once apple is in the basket or on the table - it is safe.
    If you move these entities into the realm of AS3, basket and table become declared variables, apple an instance and dog garbage collector.
    What this example demonstrates is that apple exists independently of basket or table. You can put apple to the basket OR on the table OR you can put apple into basket and place basket onto the table.
    1. Find apple instance (if you know whether apple is in the basket, on the table or in the basket on the table)
    2. Prevent dog from eating apple.
    3. Allow dog to eat it (destroy it when garbage collector kicks in) by assuring that apple is in neither basket or on the table.

  • Acces dynamic configuration variable (e.g. filename) in ABAP mapping class

    Hi experts
    I am searching for a possibility to acces a dynamic configuration variable (DCV) in an ABAP mapping class. Since I could not find a solution in SDN and other sources, I hope somebody in this forum can help me.
    What I already found is the following code which can be used to set a DCV, but what I would be interested in is how to read a DCV.
    Any help is appreciated.
    Markus
    METHOD if_mapping~execute.
    DATA l_record type mpp_dynamic.
    * copy payload
    result = source.
    * add an adapter specific attribute
    l_record-namespace = 'http://sap.com/xi/XI/System/File'.
    l_record-name = 'FileName'.
    l_record-value = 'test.xml'.
    dynamic_configuration->add_record( l_record ).
    ENDMETHOD.

    Hi Markus,
    you can find everything in my blogs
    /people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping
    Regards,
    michal

  • Using variables in a loop

    Hello and thanks in advance!  I'm attempting to insert records into a temp table using a loop.  I have many declared variables that will be used as criteria in the query.  Since the variable are all named the same other than a ascending
    numberic to the name, how would I get a variable in a loop to substitute the "numberic" part of the variables? I've created some sudo sql for what I'm trying to achieve:
    Declare @Start1 as Date = '2014-01-01'
    Declare @Start2 as Date = '2014-15-01'
    Declare @Start3 as Date = '2014-18-01'
    Declare @i INT = 1
    WHILE @i < 20
         SELECT .... INTO #MyTemp ...
         WHERE OrderDate Like @Start + @i       --This is the line I cant seem to get working.
         SET @i = @i +1
    END

    >>You have just described a 1950's file system using punch cards (also called unit records) writing to a scratch tape with Autocoder. You have no idea how to write SQL or program in a declarative language. We do not sure temporary files or loops. The
    goal is to write one statement that does the task. We do not use local variables; we use expressions that compute their values.<<
    What are you talking about or your point? I dont ever remember asking about temporary files. Who is the 'We' you keep referring to?  why did you even bother posting with a negative and absolutely unhelpful reponse.
    >>That is called an “array” in procedural programming and a repeated group in RDBMS. It also violated First Normal Form (1NF). <<
    Wrong. I said that I created variables.  I did not say I created an array.  Also, you have no idea of what I was trying to accomplish. 
    >>
    If you truly do not care about ever being a good programmer, you can kludge this 1950's code with dynamic SQL. But I will use you as a bad example in my books :(  <<
    I have no idea who you are and take offense at your entire post attempting to tear me down.  Your arrogance and attitude appears to have grown with your forum points.  I'm still confused as to why somebody with your so-called expertise
    posted such an a$$#*%! comment.

  • Iterate through all dynamic text variables

    Hello,
    I'd like to be able to iterate through all of the dynamic
    text variables in my flash movie, and I'd like it so that if I add
    new text to this movie, it will show up in the iteration.
    Essentially, I want to do something like this:
    for (i in _root) {
    trace(i);
    While this seems to print out all the variables in root, it
    prints more than just the dynamic text variables, and also doesn't
    iterate down through various objects to find the dynamic text
    variable.
    Is there any way I can accomplish this in action script?
    Thanks!

    Great! That code helps me a lot.
    There are still two weird issues.
    1) the test for tl[obj].text seems to always turn out to be
    false. However, if I trace the value of text, I'll see the text.
    Example:
    trace(tl[obj].text); // This will display the value in the
    text field
    if (tl[obj].text) // This is always returning false.
    Any ideas?
    The 2nd issue might be more difficult - some of my text
    objects don't appear until later in the movie (i.e. frame 10). It
    sort of looks like this looping doesn't see objects that appear in
    the future. Do I need to advance the frame 1 by 1 and repeat this
    looping process until the text appears? Maybe instead I can always
    have the text in the first frame, but have it be invisible or
    something?

  • Bizarre CFIF issue with dynamic form variables? Very strange...

    I can't figure out what I'm doing wrong here.  Here's my code.  Issue explained below.
                <cfquery name="reviewconfigloader" datasource="MOLMS">
                SELECT *
                FROM dbo.BaseModel
                WHERE dbo.BaseModel.AccountID = #molmsAccountID# AND.dbo.BaseModel.basemodelActive = 1
                </cfquery>
          <table width="100%" border="0" cellspacing="0" cellpadding="3">
            <cfloop query="reviewconfigloader"><cfif isdefined("form.baseconfig#reviewconfigloader.basemodelID#") AND ("form.baseconfig#reviewconfigloader.basemodelID#") NEQ "" AND ("form.baseconfig#reviewconfigloader.basemodelID#") NEQ 0><cfoutput><tr>
              <td width="40%" bgcolor="##F7F7F7" class="basemodelsub">     #form['baseconfig#reviewconfigloader.basemodelID#']#  #reviewconfigloader.basemodelName# #reviewconfigloader.basemodelSubName#</td>
              <td width="15%" bgcolor="##F7F7F7" class="basemodelsub"><div align="center">x 14 </div></td>
              <td width="15%" bgcolor="##F7F7F7" class="basemodelsub"><div align="center">$486/yr</div></td>
              <td width="15%" bgcolor="##F7F7F7" class="basemodelsub"><div align="center">$1444/yr</div></td>
              <td width="15%" bgcolor="##F7F7F7" class="basemodelsub"><div align="center">$1444/3 yr</div></td>
            </tr></cfoutput></cfif></cfloop>
          </table>
    What I'm doing here is fairly basic.I'm running a query with a number of configs in it...and then creating a loop to output them.  Ultimately, I only want the configurations that didnt have 0 submitted in the form on the previous page.  Each one of the configs in the config query has a dynamic form variable on the previous page with a quantity tied to it.  I am trying to eliminate all quantities past that aren't 0 (or not eliminate, just not show)...as you can see from the cfif statement.
    Here's where it gets weird.  You'll notice I output #form['baseconfig#reviewconfigloader.basemodelID#']#, just for testing, which shows me the quantity as it should.  I ran a test and put in a couple of 1s, 0s, 12s, 6s, etc in the form fields on the previous page.  If this thing worked, it wouldnt show anything for any of the records with their basemodelID value being submitted as 0.  Not the case.  It shows all records.  What is more hilarious is that it outputs perfectly in my test #form['baseconfig#reviewconfigloader.basemodelID#']#, showing the correct numbers entered in the previous form, the 1s, the 0s, etc, tied to each record.  But for whatever reason, the cfif code isn't catching it.
    What's even more bizarre...I replaced the cfif ("form.baseconfig#reviewconfigloader.basemodelID#") NEQ 0 with GT 12 (12 was the highest number that I put in the form) and it still showed all records.  Then I put it in as LT 12 and it showed nothing.  I decided  to take it one step further and put it in for GT 1231243242343 (random massive number), which it still showed all of the records.  So somehow, my CFIF statement thinks that  ("form.baseconfig#reviewconfigloader.basemodelID#") is a incredibly large number, although when I output it in the row below, it is the number it should be.
    I'm stumped.  Any ideas?  Thanks in advance!!

    Hey Dan...thanks....unfortunately...with the cfif testing, thats kinda what I'm
    doing because I dont have an "expected" value.  My expected value is anything a user inputs thats greater than zero, hence NEQ 0 and NEQ "". The real problem is taht what I'm outputting works and what the cfif clause is seeing is obviously very different.
    As far as your comment about looping out the variables and then setting a query equal to the value in a cfquery, remember...these are form objects and therefore nothing can be tied back to the database.  The result from the code is establishing a form variable (example.... form.basemodel1 (if 1 was the basemodelID from the database query) so it can capture whatever data the user has passed from the previous page in a text input.  So that input could have been 23, it could have been 1053.
    So really the only way to do it is create a query and loop out the variables.... and attach them to form objects (basemodel1, basemodel2, basemodel3 etc where the 1,2 and 3 are the unique ID's for those models in the database), and then look for where those form objects may have been filled in in the previous page by stating IF this form object not equal to 0 or "", output the data.
    Does that make sense?  Thanks for the help guys I'm completely stumped by this.  I've done this a million times with CFIF and I'm really struggling with why this isnt working....
    JE    

  • Dynamically assign series names for SVG Chart

    I have created a line chart with 5 series in it. I would like the legend name for each series to be dynamically assigned (as a value from a field in the database). Is this possible?
    Ideally, i'd also like the number of series to be variable too. Is this possible?

    Hi,
    I am trying to use the code you gave me above (which normally works fine). But when I put it in the query below with 3 ' (3 quotes) it fails.
    Any ideas?
    Thanks
    Owen
    return
    'SELECT null link, month label, sumamt "'||:P4_FY||'"
    FROM
    SELECT
    month
    , CASE
    WHEN MONTH = '''JUN''' THEN 1
    WHEN MONTH = '''JUL''' THEN 2
    WHEN MONTH = '''AUG''' THEN 3
    WHEN MONTH = '''SEP''' THEN 4
    WHEN MONTH = '''OCT''' THEN 5
    WHEN MONTH = '''NOV''' THEN 6
    WHEN MONTH = '''DEC''' THEN 7
    WHEN MONTH = '''JAN''' THEN 8
    WHEN MONTH = '''FEB''' THEN 9
    WHEN MONTH = '''MAR''' THEN 10
    WHEN MONTH = '''APR''' THEN 11
    WHEN MONTH = '''MAY''' THEN 12
    END AS SORT_ORDER
    , sumamt
    FROM
    Select month
    , sum(DEAL_VALUE_SUM) sumamt
    from my_deals
    where country = :P8_COUNTRY
    and FY = :P8_FY
    group by month))
    ORDER BY SORT_ORDER';

  • Variable in xml fragment

    Hi,
    i want to assign an xml fragment to a variable, i could do it succesfully...ex: <value xsd:string></value>. Now i want to assign the input variable from receive activity into this xml fragment. How do i do this...
    There is a thread regarding this How to include variable inside XML Fragment in assign ? but i did not understand the solution
    Edited by: user10545499 on May 17, 2009 11:45 PM

    ok, i got what you were saying about CDATA, but i think my problem is the opposite..i WANT my string to be parsed..
    when i assign <tag> put @filename@ </tag> i need that variable to be replaced..and right now, it is taken all as a simple string...

  • Dynamic Set Variable

    I am having a peculiar issue with the Set function. See the following code.
    In a workflow I'm performing this code and yet it seems as though the user object is not actually ever modified.
    <set name='resourcename'>
    <s>server1</s>
    </set>
    <set name='attributename'>
    <s>firstname</s>
    </set>
    <set name='fqname'>
    <concat>
    <s>user.accounts[</s>
    <ref>resourcename</ref>
    <s>].</s>
    <ref>attributename</ref>
    </concat>
    </set>
    <set>
    <ref>fqname</ref>
    <s>testvalue</s>
    </set>
    When I trace <ref>user.accounts[server1].firstname</ref> it returns testvalue correctly but when I check in the view it never updates the resource and does not show in the WFTrace. I'm thinking somehow that this user object is never truly updated. Anyone know of a better way to do this dynamically generated variable name?

    When you check out the view are you assigning a Form?
    The firstname attribute appears in the default user form and will be mapped from the global namespace. This can cause unexpected issues.
    While you may not be directly using the form, if one is not assigned... it will use the default.
    Create a completely empty form called myEmptyForm and add the variable Form to the checkout view with the value myEmptyForm.
    David

  • Assigning Keys to Apple Loops in Logic

    I am creating Apple Loops in Logic by selecting an audio region and then selecting "Add to Apple loops library" under the mini region menu.
    The manual states that whatever key I set in Global tracks is the key that is assigned to the loop. This works well for pitched material, but for non pitched material I don't want a key designated. I have noticed that when I set a tag to the loop of "Drums" no key is assigned, but when I set a tag of "Percussion" the key does get assigned to the particular loop. This is a problem because the pitch of the percussion changes when that Apple Loop is brought back into another Logic session that has a different key assignment the a particular loop on the Global Track.
    I understand I can designate "No Key" in the Apple Loops utility, but I prefer to make my loops straight from the Logic arrange window. I am finding the Apple Loops Utility a bit buggy. Does anyone know the most recent version of the Apple Loops Utility?
    Thank you for your help.

    Any word on a fix for this?
    I've found Apple Loops VERY buggy in L9! Not only do they not loop correctly in the browser when your project is at a sample rate other than 44.1 (for example, working for broadcast at 48k as I mostly do), but I've also seen them behaving weirdly in the arrange page.
    Today I had a truncated Apple Loop in a project which would play back differently on subsequent attempts. Sometimes it would get to bar 4, for example, and other times it would only get midway through bar 3...! And this is with basic Apple factory installed loops.
    What's up with this? I've already re-indexed and re-installed the loops. No change. No fix.
    Totally unprofessional, Apple.

Maybe you are looking for

  • Error while previewing BI Publisher Report Output form Desktop

    Hi, i am getting below error while previewing Report Output form Desktop: javaw -Xmx256M -jar "C:\Program Files (x86)\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\jlib\RTF2PDFv2.jar" "C:\Users\mahlawat\AppData\Local\Oracle\BIPub

  • HT2731 Problem in creating new Account

    I have tried to create a new account and I used my US address and planning to use the iTunes cards, however when I finished filling the data they told me that I cant continue and I have to contact the support to help me with my issue

  • Output Type for Form 16

    Hi, I want to know the output type for Form 16, from where i can find it.. Thanks

  • Start Local chain based on two conditions

    Hello, I want to trigger a local chain in a metachain based on success of two conditions. 1) at a stipulated time. 2) and on the completion of above process. Also is there a function module by which i can get the variant name of a process.

  • Mastering Mystery

    Usually when mastering, you want to limit your audio to prevent it from going over zero. When I import commercial songs to compare my mix, I noticed that they are limited at -3.0. I decided to import the commercial songs into all the different templa