Determing resource identifiers name dynamically

Hi folks,
In standard business html you can display a resource file identifier by putting `#idname` ...
I want to be able to build the ID name dynamically and then get the text of that resource identifier.
So basically, I want (pseudo code):
wID = "#text" + wCount
write(wID)
I tried all kind of combinations of the write and printf statement, using the pointer sign ^, etc ...
but nothing seems to work ...
Most of the times I just get the text '#....' and not the interpretion of the field ...
Is there any way to achieve this ?
Thanks,
Steven

Hi Steven,
this is tested to work:
  wID = "text" & wCount;
  write(#^wID);
Kind regards,
Alex
Edited by: Alexander Pohoyda on Oct 27, 2008 9:06 AM

Similar Messages

  • How to configure the schema name dynamically based on user input.

    configure the schema name dynamically based on user input.
    For ex:
    We have two schemas:
    Schema1  - base schema having 15 tables.
    Schema2 -  tables which is specific to modules. Having only 10 tables which is also available in Schema1
    Login to application using Schema 1
    Access a particlular module and select the country. Here country selection is identified.
    Based on the country selection, we need to connect the schema respectively.
    If the user selects France --> It should connect Schema1
    If the user selects Germeny --> It should connect schema2.
    Used: Eclipselink

    You may want to have a different persistence unit for each country, then you just need to switch persistence units, and can put the schema in your orm.xml file.
    You may also want to investigate EclipseLink multi-tenant support,
    http://www.eclipse.org/eclipselink/documentation/2.5/jpa/extensions/a_multitenant.htm
    You can the schema in a persistence unit in code using a SessionCustomizer and the tableQualifier.

  • How to externalize JNDI name (setting JNDI name dynamically)

    Hi,
    In adapters such as ftp, database, we have to specify the jndi name. This binds the adapter to a particular jndi name. While this is certainly better than binding the adapter directly to the physical resource, I was wondering if it is possible to have even more flexibililty- setting the jndi name dynamically.
    Basically my requirement is to develop a web service that reads a file from a FTP location. I know I can externalize the filename and directory, but I am wondering how to set the ftp location dynamically.
    http://darwin-it.blogspot.com/2008/03/configuration-of-ftp-synchronous-get.html provides the answer if I wish to set the hostname, portname, user id and password.
    But I want to setup the FTP adapter in AS, and then use that JNDI name in my service. Is it possible...I am using SOA 10.1.3.3
    Regards,
    Amit

    I was able to access the files. Thanks.
    The example shows how to use the header properties in file adapter, and it sets the filename and directory elements dynamically....this I already knew.
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:PassFilePropertiesDynamicallyProcessRequest/client:FileName"/>
    <to variable="outHeader" part="outboundHeader"
    query="/ns2:OutboundFileHeaderType/ns2:fileName"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:PassFilePropertiesDynamicallyProcessRequest/client:Location"/>
    <to variable="outHeader" part="outboundHeader"
    query="/ns2:OutboundFileHeaderType/ns2:directory"/>
    </copy>
    What I want to know is, what is the element to be added in the ftpAdapterOutboundHeader.wsdl that denotes the FTP Location (which is different from the directory).
    I guess your next update which would talk about FTP adapter, would clarify things.
    Thanks for your replies,
    Amit

  • Problem in using table name dynamically in PL/SQL

    I tried to create a procedure to use table name dynamically and got the following error. Anything wrong with my procedure?
    NFADV>declare
      2   cnt number;
      3   cursor cur is select table_name from user_tables where table_name in ('EMP','DEPT');
      4  begin
      5   for c1 in cur
      6   loop
      7    execute immediate select count(*) into cnt from c1.table_name;
      8      dbms_output.put_line('Count is : '||cnt);
      9   end loop;
    10  end;
    11  /
    declare
    ERROR at line 1:
    ORA-06550: line 7, column 21:
    PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
    ( - + case mod new not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe
    <an alternatively-quoted string literal with character set specification>
    <an alternatively-quo
    ORA-06550: line 8, column 5:
    PLS-00103: Encountered the symbol "DBMS_OUTPUT"
    ORA-06550: line 8, column 45:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( , * % & - + / at mod remainder rem <an identifier>
    <a double-quoted delimited-identifier> <an exponent (**)> as
    from into || multiset bulkThanks and Regards
    Kaustubh

    Hi,
    The wrong part is in execute immediate, it should be as follows:
    execute immediate ('select count(*) from '|| c1.table_name)
    into cnt
    (not tested)
    Regards
    AK

  • WindowsAzure REST API AddDataDisk "Error 404 : The resource service name hosted services is not supported"

    Hello I am trying to create a secondary disk attached to a Windows Azure LINUX VM.
    I sent the HTTP POST message body
        <?xml version="1.0" encoding="UTF-8"?>
        <DataVirtualHardDisk xmlns="http://schemas.microsoft.com/windowsazure"xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <HostCaching>ReadWrite</HostCaching>
            <DiskLabel>49192cf1-cd65-4750-83bf-1fb5a337493d-sdf</DiskLabel>
            <DiskName>49192cf1-cd65-4750-83bf-1fb5a337493d-sdf</DiskName>
            <Lun>1</Lun>
            <LogicalDiskSizeInGB>40</LogicalDiskSizeInGB>
            <MediaLink>https://accordscentralus.blob.core.windows.net/vhds/49192cf1-cd65-4750-83bf-1fb5a337493d-sdf.vhd</MediaLink>
        </DataVirtualHardDisk>
    to the endpoint URL ( the url has been line split for clarity here only )
    https://management.core.windows.net
            /{subscription-identifier}
            /services/hostedservices/54f84578testsmallubuntuw
            /deployments/9e8e1e43-d13a-4cfb-bd5b-19f6421f40dd
            /role/54f84578-testsmall-ubuntu-with-cosacs-volume
            /DataDisks
    with the header
    x-ms-version : 2014-05-01
    and receive the same response no matter what I try:
    404    Not Found
        <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <Code>ResourceNotFound</Code>
            <Message>The resource service name hostedservices is not supported.</Message>
        </Error>
    The virtual machine has been correctly started, and is perfectly useable, but the secondary disk can not be created.
    I have seen a few blogs and posts that say that I should not send the DiskName in the message but I need to be able to predict the name of the disk in order to be able to restart the VM with the correct disk.
    Is there anyone that can help me to make sense of this.

    Ok I have tested this again several times and have consistantly observed the following results.
    The first time round for an new instance and a VHD that does not exist:
    The request
    POST https://management.core.windows.net:443/{subscription}/services/hostedservices/54f8cc27testsmallubuntuw/deployments/80388771-1cd2-4fe2-9637-6a06659840df/roles/54f8cc27-testsmall-ubuntu-with-cosacs-volume/DataDisks
    <?xml version="1.0" encoding="UTF-8"?>
    <DataVirtualHardDisk xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
        <HostCaching>ReadWrite</HostCaching>
        <DiskLabel>d-80388771-1cd2-4fe2-9637-6a06659840df-sdf</DiskLabel>
        <Lun>0</Lun>
        <LogicalDiskSizeInGB>40</LogicalDiskSizeInGB>
        <MediaLink>https://accordscentralus.blob.core.windows.net/vhds/d-80388771-1cd2-4fe2-9637-6a06659840df-sdf.vhd</MediaLink>
    </DataVirtualHardDisk>
    Returns
    HTTP/1.1 202 Accepted
    and the VHD disk is created and attached to the virtual machine instance.
    Inspection of the instance through the Windows Azure Portal using virtual machines->instances->dashboard we see the two disks attached to the instance.
    The second time round, after terminating and deleting the instance and root disk VHD but not the extension disk VHD, whn creating and deploying a new virtual machine  instance to use the existing VHD created in the first case.
    The same request is sent as above, but with a different instance, role and deployment information, and it returns the same
    202 Accepted signalling success but the already existant VHD does not get used and does not get attached to the virtual machine instance. In fact no extension disk gets attached to the instance at all.
    Inspection of the instance through the Windows Azure Portal using virtual machines->instances->dashboard we see only one disk attached to the instance.

  • How to pass the table name dynamically in xml parsing

    Hi All,
    I have created one procedure for parsing xml file which is working perfectly.
    FORALL i IN t_tab.first .. t_tab.last
             INSERT INTO Test_AP VALUES t_tab(i);Now I want to put the table name dynamically+. For that I have added one query and modify above code as follow:-
    I have already declare dml_str varchar2(800) in declaration part.
    Query is as follows:-
    select table_name into tab_name from VERSION_DETAILS where SUBVERSION_NO=abc;  -- here abc is variable name which contains values.
    FORALL i IN t_tab.first .. t_tab.last
              dml_str := 'INSERT INTO ' || tab_name || ' values :vals';
              EXECUTE IMMEDIATE dml_str USING t_tab(i);But it's not working. How I will resolve this or through which way I achieved the intended results. Anyone can guide me on this matter.
    Thanks in advance for your help...

    Hi,
    But it's not working.Don't you think it would help to give the error message?
    Put the assignment before FORALL.
    FORALL only accepts one subsequent DML statement (static or dynamic SQL) :
    dml_str := 'INSERT INTO ' || tab_name || ' values :vals';
    FORALL i IN t_tab.first .. t_tab.last          
    EXECUTE IMMEDIATE dml_str USING t_tab(i);

  • Cluster network name resource 'Cluster Name' failed registration of one or more associated DNS name(s) for the following reason: The handle is invalid.

    I'm stuck here trying to figure this error out.  
    2003 domain, 2012 hyper v core 3 nodes.  (I have two of these hyper V groups, hvclust2012 is the problem group, hvclust2008 is okay)
    In Failover Cluster Manager I see these errors, "Cluster network name resource 'Cluster Name' failed registration of one or more associated DNS name(s) for the following reason:  The handle is invalid."
    I restarted the host node that was listed in having the error then another node starts showing the errors.
    I tried to follow this site:  http://blog.subvertallmedia.com/2012/12/06/repairing-a-failover-cluster-in-windows-server-2012-live-migration-fails-dns-cluster-name-errors/
    Then this error shows up when doing the repair:  there was an error repairing the active directory object for 'Cluster Name'
    I looked at our domain controller and noticed I don't have access to local users and groups.  I can access our other hvclust2008 (both clusters are same version 2012).
    <image here>
    I came upon this thread:  http://social.technet.microsoft.com/Forums/en-US/85fc2ad5-b0c0-41f0-900e-df1db8625445/windows-2012-cluster-resource-name-fails-dns-registration-evt-1196?forum=winserverClustering
    Now, I'm stuck on adding a managed service account (mas).  I'm not sure if I'm way off track to fix this.  Any advice?  Thanks in advance!
    <image here>

    Thanks Elton,
    I restarted 3 hosts after applying the hotfix.  Then I did the steps below and got stuck on step 5.  That is when I get the error (image above).  There
    was an error repairing the active directory object for 'Cluster Name'.  For more data, see 'Information Details'.
    To reset the password on the affected name resource, perform the following steps:
    From Failover Cluster Manager, locate the name resource.
    Right-click on the resource, and click Properties.
    On the Policies tab, select If resource fails, do not restart, and then click OK.
    Right-click on the resource, click More Actions, and then click Simulate Failure.
    When the name resource shows "Failed," right-click on the resource, click More Actions, and then click Repair.
    After the name resource is online, right-click on the resource, and then click Properties.
    On the Policies tab, select If resource fails, attempt restart on current node, and then click OK.
    Thanks

  • Execute immediate with using clause to pass column name dynamically

    Hai,
    Is there any way using execute immeidate to pass the column name dynamically. I used to pass the column value as dynamic with the help of "Using clause" . But if i use to pass column name, it is giving numberic error at run time. Eg,. for testing has been given below.
    1. Column value as dynamic, which is working correctly.
    create or replace function testexeimm (acctnum char)
    return number as
    acctbal number;
    begin
    execute immediate 'select balance from acct_master where acct_no=:a' into acctbal using acctnum;
    return acctbal;
    end;
    2. Column name as dynamic which is not working
    create or replace function testexeimm (colnam char)
    return char as
    acctbal char;
    begin
    execute immediate 'select :a from ch_acct_mast where rownum=1' into acctbal using colnam;
    return acctbal;
    end;
    Any help in this regard will be highly appericated.
    Regards
    Sridhar

    So the variable has to be numeric too:
    create or replace function testexeimm (colnam char)
    return number as
    acctbal number;
    begin
    execute immediate 'select '|||colnam||' from ch_acct_mast where rownum=1' into acctbal;
    return acctbal;
    end;Max
    http://oracleitalia.wordpress.com

  • How to get RFC Destination and Logical System name dynamically

    Hi all,
    I have a RFC FM written in CRM. I need to call this FM in R/3. So, i use the syntax " Call function <func> destination <destination name>. My problem is that i need to fetch the destination name dynamically..
    There is a way to do so in CRM which is as follows:
    DATA:  lt_siteselect TYPE TABLE OF siteselect INITIAL SIZE 0,
               ls_siteselect TYPE siteselect.
      CALL FUNCTION 'SMOF0_READ_SITESELECT'
        TABLES
          to_siteselect = lt_siteselect.
      READ TABLE lt_siteselect INTO ls_siteselect
             WITH KEY sitetypeid = cl_smw1_siteprovider=>c_sitetype_r3oltp.
    The above piece of code returns the site and also takes care of the client you are currently working on. But the specified FM is present only in R/3..
    I want to achieve the functionality fulfilled by the above code in R/3.
    Kindly help.
    Useful answers will be rewarded.
    Thanks in advance,
    Karan Merwana
    I can not use FM LOG_SYSTEM_GET_RFC_DESTINATION as for that i need to provide the logical system name. And the logical system name would be different for different clients.
    Message was edited by:
            Karan Merwana

    For those referring this thread later, I could not find a solution to this and ultimately had to do away with hardcoding of system names based on the DEV, Q, and PROD system names.
    If anyone does manage to get a workaround, please let me know.

  • How to generate file name dynamically in receiver FIle adapter? Please help

    Dear Experts,
       I have a scenario where I need to generate output file with the name dynamically pulled from the XI payload.
       In receiver File communication channel I don't see any option where we can specify the XML path for the file name.
       For example:
       If my inbound XML structure (inbound interface) is like below:
       <filename>file123.txt</filename>
       <RootNode>
             <Element1>Product123</Element1>
       <RootNode>
      From this I need to pick the filename value and generate the output file with the same value.
      How can I achieve this? Please help!
    Thanks & Regards
    Gopal
    Edited by: gopalkrishna baliga on May 3, 2011 1:10 PM

    Gopal,
    You can use DynamicConfiguration class for this.
    You need to write UDF for this and with input of filename you want to set and map this UDF to the top level node.
    Refer the below famous blog from Micheal:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    You can also use Variable substitution to get value from payload, search SDN on this.
    --Divyesh Vasani

  • Error in reciever file adapter , where i am getting file name dynamically

    hi all,
    error in reciever file adapter , where i am getting file name dynamically, please help me in this isssue , i am trying for a long time
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns0:MT_eINVOICE_RECV' found in document', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns0:MT_eINVOICE_RECV' found in document', probably configuration error in file adapter (XML parser error)'

    i am getting new error
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages
    this is my strcuture
    and i have changed my structure
    <HEADER>
    <ADDRESS1/>
    <ADDRESS2/>
    <ADDRESS3/>
    <ADDRESS4/>
    </HEADER>
    <HEADER_GST>
    <TAX1/>
    <TAX2/>
    <TAX3/>
    </HEADER_GST>
    <LINE>
    <QTY/>
    <UOM/>
    <UNIT_AMT/>
    <CHARGE_TO_DT/>
    </LINE>
    <FILENAME>
         <FILENAME/>
    </FILENAME>
    i have given the recordset structure as
    HEADER,HEADER_GST,LINE,FILE

  • HOW TO GIVE CLASS NAME DYNAMICALLY???

    Hi all!
    I want to give class name dynamically to my statment
    <jsp:useBean id="myBean" scope="session" class="myPackage.myClass"/>
    now here i want to pass a String as class name how can i do it?
    Jiaa:):):)

    Hi,
    You can't assign dynamically a classname in the instruction jsp:useBean
    S�b

  • Getting the column names dynamically

    hi gurus,
    i have list item populated with many table names from a schema.
    i have grid in oracle forms 10g and i want to fill the grid with the data that should come at least four/more columns.
    i want to fire the list change trigger when each time any one table name is selected/changed.
    how can i get the column names dynamically
    please give me the step by step process
    for filling the grid..

    hi ,
    by getting column names dynamically i am creating a record group
    using this below query
    SELECT COLUMN_NAME, DATA_TYPE FROM USER_TAB_COLUMNS WHERE TABLE_NAME = <table_name>
    but when timestamp datatype is there then it is showing error cannot create group groupname
    but the record group is running successful on varchar2,number,date dayatypes
    if any alternative is there i mean to say without using record group then tell me or where is the problem

  • Pass column names dynamically in report

    Hello experts,
    I am creating an ALV report where i need to pass the column names dynamically. if the current month is March and year is 2009. the column names should be as below
    March 2009 April 2009 May 2009 June 2009 ..............till Feb 2010 (total columns are 12)
    if the current month is June and year is 2010 it shoud be displayed as
    June 2010 July 2010 Aug 2010................till May2011
    I am actually calculating the forecast qty for each month and displaying in a report from the current month.
    How to write field catelog for this requirement?
    Thanks in Advance.
    Rajesh.

    I think in the fieldcat, at the time of declearation, you can alter the field description depending on the present month.
    If present_month = January
    wa_fieldcat-reptext_ddic = 'January'.       " Field description
    elseif present month = February.
    wa_fieldcat-reptext_ddic = 'February'.       " Field description
    on so on.....................
    Kuntal

  • Passing INLCUDE name dynamically

    Hi,
    Is there any way of passing the INCLUDE name dynamically?
    Scenario is as follows
    Requirement is to consolidate approx 6 enhancements (user exits) of the same name from 6 different systems into 1system . Objective is to put each of the code in an INCLUDE and then call the relevant INCLUDE based on some data maintained in a z-table
    Z-table would have entries like this
    Scenario      Include
    S1                I1
    S2                I2
    S3                I3
    Hence final enhancement code should read the entry from z-table and accordingly pass the relevant INCLUDE name
    INCLUDE <include name from z-table>
    Valuable suggestions are needed.
    Poonam

    Hi Poonam,
    <li> Create one function group.
    <li> Write your 6 includes code in 6 function modules. function module is nothing but include in Function group.
    <li>Try to give importing and exporting parameters are same.
    <li>Try the below way.
    REPORT ZTEST_NOTEPAD.
    DATA: BEGIN OF IT_FUNC OCCURS 0,
            NAME TYPE RS38L-NAME,
          END OF IT_FUNC.
    "Build your it_func with function modules.
    LOOP AT IT_FUNC.
      CALL FUNCTION IT_FUNC-NAME "You can call fm dynamically
        EXPORTING
          DAY_IN            = IMPORTING
          LAST_DAY_OF_MONTH = EXCEPTIONS
          DAY_IN_NO_DATE    = 1
          OTHERS            = 2.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDLOOP.
    Thanks
    venkat.O

Maybe you are looking for

  • Two email accounts - iCloud wont let me open the second one!

    I have two me.com email accounts. One of them is my main account and I use the mail App to use it. The second account I use only occasionally and I have always used it with a browser. Now whenever I try to open this account in my browser I get a mess

  • Calling stored procedure in Forms4.5-URGENT

    HI i am using form4.5 and wanna call my stored procedure to form.how can i. i tried database_procedure_name(update_web); but it din't worked.ny oracle d2k guru tell me its urgent. thanx in advance Sushant Ashutosh [email protected]

  • Imac 2006 external dvd, imac 2006 external dvd

    HI My internal CD drive has just died and I would like to get an external CD drive to my IMac (2006) does anyone know which brand will be compatible? Thanks Bec

  • Can I select when do i want to write my data into a file?

    What I want is like, When I click a button as ON then only it goes an writes the data into a spreadsheet. Now i have made the bolllean so that it will show TRUE when you have to write...but if FALSE nothing should happen... and I cant see any option

  • Feature Request: Browse a selected channels entire listing on the guide.

    I believe this feature actually existed when I first signed up with FiOS a few years ago. But, from what I recall the feature was removed when a new IMG was implemented. Anyhow, browsing a channel's entire listing on the guide allows setting up recor