Dynamically population of variables with use of variants in I Broadcasting

Hi all,
In broadcasting I have to include few reports.
Suppose one report is having variable screen where 5 mandatory variable are there. Here one variable is 0calday suppose which has to be filled dynamically.
Is it possible by using variant.
If yes please send step by step process and if not what could be the other method?
Am using BW 3.5.
Thanks,
Uday.

Hi Uday,
To achieve this,you can create one more variant with the specific variable values (which ever you want) and pass it during broadcasting.
The step by step process for Broadcasting with variant is...
With 7.x Tools:
1.Open a report(workbook) in a tool(Eg:BEx Analyzer) and invoke Broadcaster(Tools->BEx Broadcaster...)
2.Click "Create New Setting"
3.Distribution Type "Broadacast to Email" and Output Format as "MS Excel Workbook" (This depends on your own need)
4.Update the "Recipient" and "Text" tab details
5.Click "Workbook Precalculation" tab and Select the variant for the Variable Assignment
6.Select the Precalculcation Server
7.Save the Setting and Click "Execute"
This will send a report mail to the mentioned receipient based on the selected variant through Precalculation Server
Rgds,
Murali

Similar Messages

  • Dynamically change flex variables with JSON

    I am trying to take different variables from within each other, and use that to dynamically change variables within flex, and I am not sure how to write it. For example, the JSON code would be something like:
         "content" : [
                                  "panels" : [
                                                           "height" : "200",
                                                           "width" : "300"
    Now I am trying to take the height and width from that, into flex, and change the panels' dimensions. any ideas?

    DSpider wrote:
    https://wiki.archlinux.org/index.php/Be … oxy_server
    Speed differences could be because the company is throttling certain connections (some companies do this, to discourage Youtube, FarmVille and other distractions). Hmmm... But a 10% difference is probably something else. Maybe check your /etc/resolv.conf?
    This is actually concerning my other thread . But in answer, no, same resolv.conf used in both cases. As I said there, I simply export a different value in http_proxy (no reconnection of any sort) and speed suddenly jumps.
    DSpider wrote:
    Edit: And maybe see this: http://askubuntu.com/questions/3554/how … connect-to
    And this: http://marin.jb.free.fr/proxydriver/
    Just about all of those things I've mentioned above as tried, except the .pac file. The problem with that is that it doesn't work generally for all graphical applications, just ones that understand it (like firefox, I believe chromium as well) while things like dropbox would not work.
    Proxydriver seems very much gnome/kde linked, which isn't of much help when I'm running awesomewm.
    Thanks for your answers, really, but still looking for something else. Latest idea I have is to replace dropboxd, firefox, and all the other executables with my own script which first sets up http_proxy and then runs the original executable. So something like this:-
    #!/bin/sh
    export http_proxy=`cat /path/to/the/desired/proxy/server/as/set/up/by/netcfg/hooks`
    /usr/bin/firefox &
    Any disadvantages to this method? Then I can just forget about using tinyproxy (wouldn't mind that at all, its been a pain sometimes, just dying in the middle of a big transfer). I could possibly also do away with the netcfg hook and just implement the checking logic (based on the IP range) in the bash script itself.

  • Set variables with data of varying lengths?

    I am sending data collected from a CVP application back to ICM in the array variable user.microapp.FromExtVXML(0).  Now I want to parse the data and put it into ECC Variables.  I can do all this but one issue:  how do I handle data that can have varying lengths?   For example, the first piece of data is an account number which can either be 7 or 10 digits.  Each piece of data is separated by a comma, so if I could extract using that as a separator, it would be ideal.
    Here's an example to show you what the data looks like from the ECC:
    1234567,1,G,Smith,Mary
    =Account # (can be 7-10 digits), Authentication Flag (always 1 digit), Tier (always 1 digit), Last Name (varied length), First Name (varied length)
    Appreciate your help on this.
    Walter

    The way I usually do these complicated parsing operations is to simply use Call Tracer to send a dummy call through a test script. Have a SET node that sets up a test string into PV1 - say "Account=1234567,Flag=1,Tier=G,Last=Smith,First=Mary" (stay under 40) then feed it into a SET node that sets another PV using a formula, then have an IF node that tests the value of the PV against the expected result. No need to make a real call. Then keep fiddling with the formula in the SET node until you get it to sing and dance.
    Once you understand how the if(), find(), after() etc functions all work and your SET node is working, you can easily turn it into a custom function and then try the custom function again with Call Tracer.
    This is way faster than actually making calls through CVP. Many script writers try to develop the whole enchilada rather than taking the easy way out with Call Tracer.
    Regards,
    Geoff

  • Dynamic populating object variable

    Hi Experts!
    I have object type:create or replace type r_attribs_t is table of varchar2(100);
    create or replace type r_relations_t is table of varchar2(40);
    create or replace type r_spatial_t is table of varchar2(100);
    type recfull_ot is object (
        r_type    char(2),
        r_class   varchar2(10),
        r_atype   varchar2(10),
        r_id      varchar2(30),
        r_idr     varchar2(100),
        r_status  char(2),
        r_dtu     date,
        r_dtw     date,
        attribs       r_attribs_t,
        relations     r_relations_t,
        spatial_data  r_spatial_t,
        map member function newer return date,
        member function get_ID return varchar2,
        member procedure load_record (p_type varchar2, p_id varchar2, p_idr varchar2)
    );and some tables:CREATE TABLE "G5ADR" (
        "ID"     VARCHAR2(30 BYTE) NOT NULL ENABLE,
        "STATUS" NUMBER(2,0) DEFAULT 1 NOT NULL ENABLE,
        "G5TAR"  NUMBER(1,0),
        "G5NAZ"  VARCHAR2(200 BYTE),
        "G5KRJ"  VARCHAR2(200 BYTE),
        "G5WJD"  VARCHAR2(200 BYTE),
        "G5PWJ"  VARCHAR2(200 BYTE),
        "G5GMN"  VARCHAR2(200 BYTE),
        "G5ULC"  VARCHAR2(200 BYTE),
        "G5NRA"  VARCHAR2(200 BYTE),
        "G5NRL"  VARCHAR2(200 BYTE),
        "G5MSC"  VARCHAR2(200 BYTE),
        "G5KOD"  VARCHAR2(200 BYTE),
        "G5PCZ"  VARCHAR2(200 BYTE),
        "G5DTW" DATE,
        "G5DTU" DATE,
        "IDR" VARCHAR2(100 BYTE),
        CONSTRAINT "G5ADR_PK" PRIMARY KEY ("ID")
    CREATE TABLE "G5DOK" (
        "ID"     VARCHAR2(30 BYTE) NOT NULL ENABLE,
        "STATUS" NUMBER(2,0) DEFAULT 1 NOT NULL ENABLE,
        "G5IDM"  VARCHAR2(200 BYTE),
        "G5KDK"  NUMBER(2,0),
        "G5DTD" DATE,
        "G5DTP" DATE,
        "G5SYG" VARCHAR2(200 BYTE),
        "G5NSR" VARCHAR2(200 BYTE),
        "G5OPD" VARCHAR2(200 BYTE),
        "G5DTW" DATE,
        "G5DTU" DATE,
        "IDR" VARCHAR2(100 BYTE),
        CONSTRAINT "G5DOK_PK" PRIMARY KEY ("ID")
    -- ... and others ...I need to write member procedure load_record loading data from one of that tables into the object variable. The table to load data from depends on p_type input parameter, howerer. This makes the problem difficult for me, because I realy don't know how to deal with that. The attribs nested table shoud be populated with all the G5% columns from the table.
    Any suggestions?
    Help, please...
    Edited by: JackK on Nov 18, 2010 9:48 AM

    OK, I've been experimenting on an alternative for DBMS_SQL...
    Here's a simplified test case based on the structures you gave.
    It should work on release 10.2 and upwards (I've only tested it on 11.2 though).
    create or replace type r_attribs_obj is object(col varchar2(30), val varchar2(100));
    create or replace type r_attribs_tab is table of r_attribs_obj;
    CREATE OR REPLACE TYPE recfull_ot IS OBJECT (
    r_id      varchar2(30),
    r_idr     varchar2(100),
    attribs   r_attribs_tab,
    member procedure load_record (self in out recfull_ot, p_type varchar2, p_id varchar2, p_idr varchar2)
    CREATE OR REPLACE TYPE BODY recfull_ot IS
    MEMBER PROCEDURE load_record (self in out recfull_ot, p_type varchar2, p_id varchar2, p_idr varchar2)
    IS
    ctx dbms_xmlgen.ctxHandle;
    res xmltype;
    attribs_tab r_attribs_tab;
    BEGIN
    ctx := dbms_xmlgen.newContext('SELECT * FROM '||p_type||' WHERE id = :1 AND idr = :2');
    dbms_xmlgen.setBindValue(ctx,'1',p_id);
    dbms_xmlgen.setBindValue(ctx,'2',p_idr);
    res := dbms_xmlgen.getXMLType(ctx);
    dbms_xmlgen.closeContext(ctx);
    self.r_id := p_id;
    self.r_idr := p_idr;
    SELECT cast(
       multiset(
         select col, val
         from xmltable(
          'for $i in /ROWSET/ROW/*
           where fn:starts-with(local-name($i),"G5")
           return element r
            attribute col {local-name($i)},
            $i/text()
          passing res
          columns col varchar2(30) path '@col',
                  val varchar2(100) path '.'
      as r_attribs_tab
    ) INTO self.attribs
    FROM dual
    END;
    END;
    CREATE TABLE "G5ADR" (
      "ID"     VARCHAR2(30 BYTE) NOT NULL ENABLE,
      "G5NAZ"  VARCHAR2(200 BYTE),
      "G5KRJ"  VARCHAR2(200 BYTE),
      "G5WJD"  VARCHAR2(200 BYTE),
      "IDR" VARCHAR2(100 BYTE),
      CONSTRAINT "G5ADR_PK" PRIMARY KEY ("ID")
    insert into g5adr (ID, G5NAZ, G5KRJ, G5WJD, IDR) values ('001', 'NAZ001', 'KRJ001', 'WJD001', '1');
    insert into g5adr (ID, G5NAZ, G5KRJ, G5WJD, IDR) values ('002', 'NAZ002', 'KRJ002', 'WJD002', '1');
    insert into g5adr (ID, G5NAZ, G5KRJ, G5WJD, IDR) values ('003', 'NAZ003', 'KRJ003', 'WJD003', '1');Verifying the nested table is correctly loaded...
    SQL> set serveroutput on
    SQL> DECLARE
      2   obj recfull_ot := recfull_ot(null, null, null);
      3  BEGIN
      4   obj.load_record('G5ADR', '001', 1);
      5   for i in 1..obj.attribs.count loop
      6    dbms_output.put_line(obj.attribs(i).col||' = '||obj.attribs(i).val);
      7   end loop;
      8  END;
      9  /
    G5NAZ = NAZ001
    G5KRJ = KRJ001
    G5WJD = WJD001
    PL/SQL procedure successfully completed

  • Dynamic population of a form using Struts

    Right now I have a combo box and a textbox. My combo box is populated by:
    <html:select property="departmentName" onchange="changeDescription()">
      <html:options collection="departmentList" property="name" labelProperty="name"/>
    </html:select>My textbox is declared as:
    <html:text property="description"/>Ok so my problem now is coding that changeDescription() javascript method so that whenever a change in the combo box's selection is made, the textbox will be populated by another property "description". I can easily make the textbox populate with the same property "name" by using this:
    function changeDescription() {
      document.forms[0].description.value = document.forms[0].departmentName.value;
    }but how do I do it for another property?
    I would greatly appreciate any help! Thanks!

    I'm a bit confused by the question. Are you saying that you want the textbox to automatically update it's value everytime the combo box's currently selected item is changed. And you want the value assigned to the textbox to come from some place other than the value of the currently selected combobox item. Where should the value for the textbox come from? Looking at this it seems like you may want a simple map data structure that maps each combo box element to a description string. When the combo box is modified you should grab the currently selected element and lookup the description for that element in the map data structure and then set the textbox to the looked-up description. I may be missing something here..

  • Assign task with use a document variable

    Hi,
      if i'm assigning a pdf document in assign task operation with use a document variable instead of application asset, I see the same old blank form after user submits the form.
    what ever typed in the form is not seen in the output variable assigned in Assign user task.
    If I use application asset and provide input xml, then I could see the filled form as output when user submits.
    What should I do to get the filled data in the form?
    Note: Reason for using document variable is I want to dynamically assign the form created in the process to assign task instead of getting from repository.
    Highly appreciate your assistance.
    Thanks,
    kc

    Ok. So are you populating document with the values entered by user in process before assigning.
    Best approach is to xml and application asset.
    And do you have your pdf document binded with xml schema. If not then you wont have fields populated in any way.
    Thanks,
    Prashast

  • Used of Sap text variable with replacement path in Bo designer

    Dear experts,
    I created a univers based on a SAp BW query. In this query I used a text variable in order to get dynamic header columns.
    The text variable is done by using "replacement path" that is the text is derived automatically from the user input triggered by a sap bw variable.
    example :
    the query contains a restricted key figure which shows net values for a selected year based on variable PYEAR.
    The name of this restricted keyfigure is &ZYEAR& where ZYEAR is the text variable with replacement path from the variable PYEAR.
    When generated the univers based on this query I get component &YEAR&.
    When I use this unvers in WebI my result containts header with &YEAR& althougth I selected for example the year 2006.
    According to several how to and white papers on SDN , it seems that text variables with replacement path are supported. So I am disapointed by this result.
    Can you give me advise to get a rigth result ?
    thanks a lot
    Olivier Doubroff

    Hi Rishit,
    I am trying to achieve the same as you, but it seems like text variables in restricted key figures do not work. I am using BO XI3.1 SP3 and SAP BW 7.01 SP6.
    A work-around for me has been to use the "user response" function in webi to create a webi variable that holds the dynamic text title. If the user inputs Jan 2010, I change the input to a date using the "user response" and "ToDate" functions in the webi variable editor. After changing the input to a date I use the RelativeDate to extract 1 month (e.g. 25 days) from the user input. Then I have both Jan 2010 and Dec 2010 as webi variables to use as headers for my restricted key figures.
    The formulas can easily become a little long, but by tweaking the user response string, you should be able to get dynamic headings by using webi functionality. But be aware that you need one webi variable for each dynamic heading if you use this method.
    Let me know if it works or if I can help more:-)
    Best regards,
    Morten

  • Time Format using text variable with replacement path

    Hi Friends,
                                 I've used "Text variable with replacement path" to make the column heading dynamic by replacing the values referring from "0calday"...
    everything is working fine, but here it is displaying the time format like
    YYYYMMDD (20030101), i want it to be displayed DDMMYYYY (01012003) in the column heading... how to make it possible?
    pls waiting for ur inputs, it's an urgent...
    Regards,
    Pattnaik

    Hi Satyakam,
    In the text variable properties make sure that in the replacment path you have chosen "Text" to appear date as per user setting . Other wise as in your case it must be set to "Key" which always shows in the format YYYYMMDD.
    Hope that helps.
    Regards
    Mr Kapadia

  • Using bind variable with IN clause

    My application runs a limited number of straight up queries (no stored procs) using ODP.NET. For the most part, I'm able to use bind variables to help with query caching, etc... but I'm at a loss as to how to use bind variables with IN clauses. Basically, I'm looking for something like this:
    int objectId = 123;
    string[] listOfValues = { "a", "b", "c"};
    OracleCommand command = new OracleCommand();
    command.Connection = conn;
    command.BindByName = true;
    command.CommandText = @"select blah from mytable where objectId = :objectId and somevalue in (:listOfValues)";
    command.Parameters.Add("objectId", objectId);
    command.Parameters.Add("listOfValues", listOfValues);
    I haven't had much luck yet using an array as a bind variable. Do I need to pass it in as a PL/SQL associative array? Cast the values to a TABLE?
    Thanks,
    Nick

    Nevermind, found this
    How to use OracleParameter whith the IN Operator of select statement
    which contained this, which is a brilliant solution
    http://oradim.blogspot.com/2007/12/dynamically-creating-variable-in-list.html

  • How to use bind variables with XMLTABLE?

    I tried to use bind variables with xmltable statment. Here, my testcase:
    create or replace function wsdltest return xmltype as
    l_dummy xmltype;
    l_stt clob;
    l_name varchar2(500);
    l_xml clob;
    BEGIN
    l_xml :=
    '<definitions name="F1" targetNamespace="http://xmlns.oracle.com/orawsv/XFILES/F1" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/orawsv/XFILES/F1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <xsd:schema targetNamespace="http://xmlns.oracle.com/orawsv/XFILES/F1" elementFormDefault="qualified">
    <xsd:element name="SVARCHAR2-F1Input">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="A-VARCHAR2-IN" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="F1Output">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="RETURN" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </types>
    <message name="F1InputMessage">
    <part name="parameters" element="tns:SVARCHAR2-F1Input"/>
    </message>
    <message name="F1OutputMessage">
    <part name="parameters" element="tns:F1Output"/>
    </message>
    <portType name="F1PortType">
    <operation name="F1">
    <input message="tns:F1InputMessage"/>
    <output message="tns:F1OutputMessage"/>
    </operation>
    </portType>
    <binding name="F1Binding" type="tns:F1PortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="F1">
    <soap:operation soapAction="F1"/>
    <input>
    <soap:body parts="parameters" use="literal"/>
    </input>
    <output>
    <soap:body parts="parameters" use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="F1Service">
    <documentation>Oracle Web Service</documentation>
    <port name="F1Port" binding="tns:F1Binding">
    <soap:address location="http://localhost:8080/orawsv/XFILES/F1"/>
    </port>
    </service>
    </definitions>';
    -- OK
    l_stt := 'select * from xmltable(XMLNAMESPACES(''http://www.w3.org/2001/XMLSchema'' AS "XSD", default ''http://schemas.xmlsoap.org/wsdl/''),
    ''//definitions/types/XSD:schema/XSD:element[@name="SVARCHAR2-F1Input"]''
    passing xmltype(:1)
    columns
    ab xmltype path ''.'' ) t';
    EXECUTE IMMEDIATE l_stt INTO l_dummy using l_xml;
    -- ERROR ORA-01006
    l_name := '"SVARCHAR2-F1Input"';
    l_stt := 'select * from xmltable(XMLNAMESPACES(''http://www.w3.org/2001/XMLSchema'' AS "XSD", default ''http://schemas.xmlsoap.org/wsdl/''),
    ''//definitions/types/XSD:schema/XSD:element[@name=:2]''
    passing xmltype(:1)
    columns
    ab xmltype path ''.'' ) t';
    EXECUTE IMMEDIATE l_stt INTO l_dummy using l_xml, l_name;
    return l_dummy;
    END;
    Any idea ?
    Thanks in advance
    Cyryl

    Why are you using dynamic SQL statements? Why not just use something like this instead in your PL/SQL. I also replaced the leading // in your Xpath with just / since you start from the root node.
    select *
      INTO l_dummy
      from xmltable(XMLNAMESPACES('http://www.w3.org/2001/XMLSchema' AS "XSD", default 'http://schemas.xmlsoap.org/wsdl/'),
                    '/definitions/types/XSD:schema/XSD:element'
                    passing xmltype(l_xml)
                    columns
                    ab xmltype path '.' ) t;Also, the above returns two rows, which I suspect is not what you want. Here is the pure SQL version for you to debug.
    select *
      from xmltable(XMLNAMESPACES('http://www.w3.org/2001/XMLSchema' AS "XSD", default 'http://schemas.xmlsoap.org/wsdl/'),
                   '/definitions/types/XSD:schema/XSD:element'
                   passing xmltype('<definitions name="F1" targetNamespace="http://xmlns.oracle.com/orawsv/XFILES/F1" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/orawsv/XFILES/F1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <xsd:schema targetNamespace="http://xmlns.oracle.com/orawsv/XFILES/F1" elementFormDefault="qualified">
    <xsd:element name="SVARCHAR2-F1Input">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="A-VARCHAR2-IN" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="F1Output">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="RETURN" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </types>
    <message name="F1InputMessage">
    <part name="parameters" element="tns:SVARCHAR2-F1Input"/>
    </message>
    <message name="F1OutputMessage">
    <part name="parameters" element="tns:F1Output"/>
    </message>
    <portType name="F1PortType">
    <operation name="F1">
    <input message="tns:F1InputMessage"/>
    <output message="tns:F1OutputMessage"/>
    </operation>
    </portType>
    <binding name="F1Binding" type="tns:F1PortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="F1">
    <soap:operation soapAction="F1"/>
    <input>
    <soap:body parts="parameters" use="literal"/>
    </input>
    <output>
    <soap:body parts="parameters" use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="F1Service">
    <documentation>Oracle Web Service</documentation>
    <port name="F1Port" binding="tns:F1Binding">
    <soap:address location="http://localhost:8080/orawsv/XFILES/F1"/>
    </port>
    </service>
    </definitions>'
                   columns
                   ab xmltype path '.' ) t

  • Having trouble with using variables in functions and after functions..

    Morning,
    I have simplified this, as it represents the core of what’s I obviously don't know how to do. 
    Problem:
    Say I populate that variable by reading in a list if IP addresses from file, finding the line that matches the hostname and place that string into the $IPAddress variable for use later throughout the script.   I did not run into a significant problem
    until I decided to convert the routine of looking up the IP address and populating the variable into a function.   As soon as I made it a function, and called that function, the $IPAddress variable only had the data in it until the function completed. 
    Once the function had done its work, and had placed the data into the variable, I expected that “new” data to be available after the function had completed..in that variable.  But it’s like the $IPAddress variable in the main script is a totally
    different data then the variable with the same name that’s used within the function. 
    So I think this demonstrates some of what’s kicking my butt.. 
    $IPAddress = "This is the wrong data”
    Function TestFunction () 
    $IPAddress  #call to display the contents of the variable at the start of the function. 
    $IPAddress = Read-Host -Prompt "Please enter the text ‘Goober’" 
    $IPAddress   #call to display the contents of the variable at the end of the function. 
    TestFunction
    $IPAddress ​
    The output I get is: 
    This is the wrong data
    "Please enter ‘Goober’"  : where I enter Goober
    Goober
    This is the wrong data
    Huh? 
    I had expected:
    This is the wrong data
    "Please enter ‘Goober’"  : where I enter Goober
    Goober
    Goober
    What good is the repeatability of a function if it’s output is lost? 

    THis seems to work.. IS there any reason NOT to do this?
    $Global:IPAddress= "This is the wrong data” #"
    Function TestFunction{
        Write-Host $IPAddress-fore green
          $host.ui.RawUI.FlushInputBuffer()
         $Global:IPAddress =
    Read-Host -Prompt
    "Please enter the text ‘Goober’"
        return$Global:IPAddress
    TestFunction
    return$Global:IPAddress

  • Populate user exit Variable with User Authorizations using ABAP?

    Hi, Does anyone know of a way to populate a user exit variable (with ABAP) with the Authorization Values for a user running a report?  I am turning off authorizations for our InfoProvider using RSSM and want to populate a variable instead and use the variable as a filter.

    Hi Kenneth ,
    You need dynamic authorization in your report .This can be done at query runtime by using exit variable and writing cmod code for the same .
    This code will read authorization maintained at runtime of query in i_step = 1 and will pass input var values accordingly .
    For step by step information you can access this document .
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0f9f33c-0f17-2d10-d3a2-ae52ccd00780?quicklink=index&overridelayout=true
    Hope this will be helpful .
    Regards,
    Jaya Tiwari

  • Dynamically populating more than one field using xml data binding

    Hi All,<br /><br />I have the following code that works fine to dynaically populate a<br />second drop-down list2 from a choice in drop-down list1 using xml data<br />biding.<br /><br />var tempString = "xfa.record." + this.boundItem(xfa.event.newText);<br />var oItems = xfa.resolveNode(tempString);<br />var nItemsLength = oItems.nodes.length;<br /><br />myinfo.page1.state.clearItems();<br />myinfo.page1.state.rawValue = null;<br /><br />for (var nItemCount = 0; nItemCount < nItemsLength; nItemCount++)<br />{<br />myinfo.page1.state.addItem(oItems.nodes.item(nItemCount).value);<br />}<br /><br />Here is my xml file<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><myinfo><br /><country/><br /><countries><br /><item uiname="United States" token="US"/><br /><item uiname="South Africa" token="SA"/><br /><item uiname="Australia" token="AU"/><br /></countries><br /><state/><br /><AU><br /><item>Australian Capital Territory</item><br /><item>New South Wales</item><br /><item>Northern Territory</item><br /><item>Queensland</item><br /><item>South Australia</item><br /><item>Tasmania</item><br /><item>Victoria</item><br /><item>Western Australia</item><br /></AU><br /><US><br /><item>California</item><br /><item>New York</item><br /><item>Texas</item><br /><item>Michigan</item><br /><item>North Carolina</item><br /><item>South Carolina</item><br /></US><br /><SA><br /><item>Eastern Cape</item><br /><item>Free State</item><br /><item>Gauteng</item><br /><item>KwaZulu-Natal</item><br /><item>Limpopo</item><br /><item>Mpumalanga</item><br /><item>Northern Cape</item><br /><item>North-West</item><br /><item>Western Cape</item><br /></SA><br /></myinfo><br /><br />I have two questions:<br /><br />1) I want to be able to structure my xml in a way that I can populate<br />a third drop-down list3 from a choice in list2. I need to know how to<br />to include the different capital cities of the states in my xml data<br />so that they can get populated in list3 from a selection in list2;<br /><br />2) And be able to script the third list3 to get dynamically populated<br />from a choice in list2.<br /><br />Thanks in advance for your help.

    I would like to ask someone for help.
    I have an XML file a result of the XSLT transformation. A schema was created based on this XML and this schema is bound to a form as a data source.  When I preview my form using a Preview tab with transformed XML as a Data File in LiveCycle Designer 8.1, I can see only the first form data across 3 Text fields on the form. The rest of the forms are not getting displayed. What am I doing wrong?
    Here is the part of the XML file Im trying to display on the form:
        FORM 1
        FORM 1 DESCRIPTION
        $5000
        FORM 2
        FORM 2 DESCRIPTION
        $7000
        FORM 3
        FORM 3 DESCRIPTION
        $4000
    Part of the schema that was created based on the XML file from above:
    Thank you.

  • How do I use the print function to output a numeric variable with a fixed amount of leading zeroes

    I need to create an output from a T-SQL query that picks a numeric variable and uses the print function to output with leading zeroes if it is less than three characters long when converted to string.  For example if the variable is 12 the output should
    be 012 and if the variable is 3 the output should be 003.
    Presently the syntax I am using is PRINT STR(@CLUSTER,3) .  But if @CLUSTER which is numeric is less than three characters I get spaces in front.
    Please help!

    >> I need to create an output from a T-SQL query .. <<
    NO! NO! In RDBMS, we have a presentation layer that handles displays. We do not ever do it in the database. This is fundamental. But more than that, the purpose of PRINT is for debugging in T-SQL and never for output.
    You are still writing 1960's COBOL or BASIC, but you want to to it in SQL.  You probably picked the wrong data type (a numeric that should be a string) and are trying to repair your design error.  
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Using variable with the same name as field name?

    I have a complex proc where I have variables with the same name as field name used on a query. something like this:
    SELECT a.id_table WHERE a.id_table = id_table
    where the last id_table is a parameter sent to the proc:
    declare procedure myproc(id_table int)
    Is there any way or notation to declare the variable inside the query as a variable or I have to use a different name?

    Well, variables are not the only thing you have to change if you want to switch to Oracle.
    Although I don't think it is good practice (to use variable name same as column name), here is one example how you can achieve it using EXECUTE IMMEDIATE and bind variable
    SQL> select deptno, count(1)
      2  from scott.emp
      3  group by deptno;
        DEPTNO   COUNT(1)
            30          6
            20          5
    10 3
    SQL> set serveroutput on
    SQL> declare
      2  deptno varchar2(10);
      3  i number;
      4  begin
      5  deptno:=10;
      6  execute immediate
      7  'select count(1) from scott.emp where deptno=:deptno' into i using deptno;
      8  dbms_output.put_line('OUT ---> '||i);
      9  end;
    10  /
    OUT ---> 3
    PL/SQL procedure successfully completed.
    SQL> Message was edited by:
    tekicora
    Message was edited by:
    tekicora

Maybe you are looking for

  • How to start a function when double-clicked in a JTable

    hi there, i got a problem, i want that my JTable reacts when i make a double-click on any row... so that i can start a method that does the things i want to... how can i realize that? thx anyway Errraddicator

  • Can I change the time signature in selected regions?

    For example can I add a 2/4 bar within 4/4? Say at measure 20 in a 4/4 piece can I change to 2/4 for one measure and then return to 4/4 in measure 22? I know that I could just go on about the song without the change but I'd like to have GB's timeline

  • J2EE is not starting up

    Deployed kernel and IGS through JSPM without any error but the J2EE engine is not starting up automatically at the end and ask to see the file START_SERVICE_00null_01 START_SERVICE_00null_01: service start pending Current state 2 Exit code 0 wait poi

  • Any good spellcheck-as-you-type for AS2?

    Has anybody used any spellcheckers with AS2? I have a project where I might need to include such a feature. I see SPL from gSkinner, but I won't be able to use AS3. And making such a thing from scratch is probably a bit above my head... Any experienc

  • I have photoshop 6 and just updated my camera to a nikon 750

    i shoot in raw but photoshop will not  support theses files i have updated this is the message i get when trying to open Could not complete your request because the file appears to be from a camera model which is not supported by the installed versio