Dynamic input parameter in EL Expression

Hi all,
In the Content Template for Content Presenter, I using a <af:image to show one image from UCM like that
     <af:image styleClass="nav-news-hot_item_img"
                        inlineStyle="width:94px;height:64px;"                      
                        source="#{documentsService.latestReleasedVersionURL['UCMServer56#dDocName:W7U64001001']}"/>Now I want replace specific parameter "W7U64001001" by a dynamic parameter. That mean the <af:image will show on a image corresponding the value put into this dynamic parameter
Do you have any suggestion for me?
Thanks a lot!
Edited by: AS84 on Jul 2, 2012 1:29 AM
Edited by: AS84 on Jul 2, 2012 2:40 AM

Hi Daniel Merchán,
I have just tried as your suggestion and it was still fail. In my opinion, with my issue we can do it because
       #{documentsService.latestReleasedVersionURL['UCMServer56#dDocName:W7U64001001']}not allow other EL expression between "[]". But it's only my own idea after a lot of trying.
If you can try, maybe you will find out something different with my result.
Thanks again!

Similar Messages

  • Dynamic Input Parameter

    Hi,
    How can i pass input parameter dynamically.
    I need pass column called valid_no as a input parameter(only one input parameter)
    Based up on these i update the table called wvfl_acct and do other validations.
    Update table name set column1 = 1 where valid_no = Input parameter.(how to present the variable here in input parameter)
    Need to use EXCUTE IMMEDITE also fot this.
    Pls Help..
    Thanks visit my thread.

    Here is my code
    create or replace procedure (valid_no IN number) as
    Begin
    select valid_no from table2 where valid_no = ?(How to
    give the input parameter here)
    Update ----
    end;
    My valid_no comes from diferent work flows.so i need
    it to take as dynamicFirstly, don't name your parameters the same as your table columns otherwise it'll confuse things.
    i.e. it's more readable like:
    create or replace procedure (p_valid_no IN number) as
      v_valid_no number;
    Begin
      select valid_no
      into   v_valid_no
      from   table2
      where  valid_no = p_valid_no;
      Update ----
    end;Although you would be more likely to select something other than valid_no from the query as you already know that from your input parameter.
    Now if you have multiple input values to pass in, that's a different matter.

  • Error while setting input parameter for dynamic process - GP

    Hi All,
    I am using CAF 7.1 GP.
    Here I have to start a process dynamically and it is working fine.
    But, when I tried to set value for input parameter of this process by
    IGPStructure params = GPStructureFactory.getStructure(process.getInputParameters());
    params.setAttributeValue("Val","MyValue");
    ( <b>Val</b> is the name of grouped input parameter ), it is giving
    com.sap.caf.eu.gp.exception.api.GPInvocationException: Structure with name input and namespace http://wwww.sap.com/nw/eup/gp does not have an attribute with name Val and namespace null.
    But no where I have mentioned http://wwww.sap.com/nw/eup/gp.
    I dont have any structures in my input and output.
    Here is my full code
           try
                IGPProcess process = null;
                IUser tl_user =UMFactory.getUserFactory().getUserByLogonID("fahad");
                     IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(tl_user);//, user.getLocale());
                     process =GPProcessFactory.getDesigntimeManager().getActiveTemplate("F5D76840A56F11DC983B001966243CAD",userContext);
                     wdComponentAPI.getMessageManager().reportSuccess("Title of process is "+process.getTitle());
                     IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
                     IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
                     int rolenum = process.getRoleInfoCount();
                     wdComponentAPI.getMessageManager().reportSuccess("Number is "+rolenum);
                     IGPProcessRoleInstance roleInstance=null;
                     IUser ho_User=null;
                     for (int i = 0; i < rolenum; i++)
                             wdComponentAPI.getMessageManager().reportWarning("Role Text is "process.getRoleInfo(i).getText()"  Role Name is "+process.getRoleInfo(i).getRoleName());
                             if(i==1)
                                  ho_User = UMFactory.getUserFactory().getUserByLogonID("poornendu");
                                  roleInstance = roles. createProcessRoleInstance(process.getRoleInfo(i).getRoleName());
                                  roleInstance.addRuntimeDefinedUser(ho_User);
                                  roles.addProcessRoleInstance(roleInstance);
                             if(i==2)
                                  ho_User = UMFactory.getUserFactory().getUserByLogonID("fahad");
                                  roleInstance = roles. createProcessRoleInstance(process.getRoleInfo(i).getRoleName());
                                  roleInstance.addUser(ho_User);
                                  roles.addProcessRoleInstance(roleInstance);
                     wdComponentAPI.getMessageManager().reportSuccess(""+process.getStructure().getItemCount());
                     IGPStructure params = GPStructureFactory.getStructure(process.getInputParameters());
                     wdComponentAPI.getMessageManager().reportSuccess("Title of process is "+process.getTitle());
                     <b>params.setAttributeValue("Val","MyValue");</b>                     
                     String pName=wdContext.currentContextElement().getProcessName();
                     IGPProcessInstance prInstance = rtm.startProcess(process,pName,"This process has been started using the GP public API",tl_user,roles,params,tl_user);
           catch(Exception e)
                wdComponentAPI.getMessageManager().reportException(""+e);
    Can anyone help me on this.
    Thanks,
    Fahad Hamsa

    Hi Experts,
    I solved it myself.
    The problem was, I have to make the input parameter as exposed. Thats all
    Anyway, thanks for the support.
    Regards,
    Fahad Hamsa

  • How can i dynamically select columns based on the input parameter?

    I have an input parameter which takes single numeric value.
    Based on this value i have to dynamically select table-columns .
    For eg: if i have following fields in my table :
    SEM_1
    SEM_2
    SEM_3 and SEM_4.
    And if i give numeric input as 2 , then i have to select "SEM_2" column only.
    if the input is 3 then i have to select "SEM_3" only and leave the rest of the columns.
    how do i achieve this dynamic feature in the "Select .....  From...... table...." statement in the ABAP??

    Hi,
    you should try something like this.
    TYPES: cond(72) TYPE c.
    data: condtab TYPE TABLE OF cond,
             condw type cond.
    data: lv_field(30) type c value 'SEM_'.
    write p_num to lv_field+4(1).
    condw = lv_field.
    append condw to condtab.
    SELECT (CONDTAB) FROM table INTO.....
    Kostas
    Message was edited by:
            Kostas Tsioubris

  • Dynamic structure creating based on the input parameter

    Hi all,
                 How to create a dynamic structure based on the input parameter given in the selection screen. I have a file path given and it contains three fields in common, but after that depending upon the input given the fields get changed. For example, i have 0002 infotype given in the selection screen, my file path structure should contain pernr begda endda and PS0002 structure, if the infotype is changed the PS structure has to be changed dynamcially.
    Thank you,
    Usha.

    Ans

  • Dynamically passing text and url-based images as an input parameter to cf8 report builder

    I'm unsuccessfully trying to dynamically pass text and url-based images to a group footer or the detail section via an input parameter or even hardcoded. The field has the attribute 'XHTML Text Formating' set to True. The following are failed samples of a simplified value:
    "<img height=’300’ alt=’Document’ width=’300’ src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    or
    "<img src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    This just results in the above text being output. The end result would have various text and images from a database as input by a user, thus the reason I cannot just use the hyperlink information attribute as I could if it were a single known image. I tried rtf and pdf report types. Ideas?

    HTH,
    Thanks. I'll keep that in mind, although I don't know how many images my user might need or what sizes so that might be tricky.
    Since my target output is rtf so that MS Word can be used to edit the result, I added a pagebreak to a MS Word doc and used the resulting html source to replace the rich text editor source code for the page break, but that did not help either. The page break was so a user could add an image later. Something is wrong with the Report Builder related to intepreting XHTML, especially anything that has an attribute, including URL-based image links. I hope they try to provide another update before CF9. I doubt my client will be going to CF9 for some time, since they are just completing the migration to CF8.
    BrianO

  • Dynamically Pass a list as input parameter to a Graphical Clac View

    Hi All,
    Can anyone please let me know if it is possible to pass a list of comma separated values as an input parameter to a graphical calculation view and how this list can be parsed inside the view?
    The requirement is to invoke the graphical view using sql script.
    Thanks,
    Goutham

    Hi Goutham,
    Have a look on these documents:
    Using Multiple Values in Input parameter for filtering in Graphical Calculation View
    SAP HANA: Handling Dynamic Select Column List and Multiple values in input parameter
    Regards,
    Krishna Tangudu

  • QL "In Expression" with Collection|String[] input parameter

    Hello,
    I would like to use the 'IN expression' in EJB-QL, with an input parameter, containing the values of the input list.
    Scheme Order with fields:
    id
    name
    status I Would like to get all records with certain status-values, for example 'open' or 'closed'
    The final sql code executed for the example at runtime will be:
    select * from order where status in('open', 'closed')I would like to do this parameter-based in EJB-QL.
    The signature of the finder it should be:
    java.util.Collection findByStatus(java.util.Collection aStatusList)The Query would be:
    query="SELECT OBJECT(t) FROM Order as t WHERE t.status in(?1)"However, this way doesn't work, even when I change the parameter type to java.lang.String[]. A dirty way to check multiple statusses, is to add a parameter for each status:
    * @ejb.finder
    *           signature="java.util.Collection findByStatus(java.lang.String aStatus, java.lang.String anotherStatus)"
    *           query="SELECT OBJECT(t) FROM Order as t WHERE t.status IN (?1, ?2)"
    */This is not a generic solution. Is it possible to send a Collection or array input parameter, as items in the list of "in expressions"?

    Ok, I wondered if it was possible. I just thought that
    another solution might work: by defining my own
    Collection datatype, with a tostring method that
    returns data in format "'value1', 'valu2', '...'" . I
    will try that at last, if I find the time.I didn't quite follow what you meant. But from whatever I understand, just binding your own defined datatype wouldn't cause toString to be invoked on it, right?
    You are going to have to know upfront how many parameters are going to be there. I faced a similar situation once. I was just using SQL though and not EJB-QL. But couldn't use PreparedStatement with the IN clause because of this. I guess this limitation of PreparedStatement is well-known.

  • How can I pass dynamic value as a user input parameter in discoverer?

    Hi,
    I have a requirement for a discoverer report like this: The report will display only details for Suppliers that have expired (or soon to be) Insurance details. That is the Expiration Date is less than or equal to the day the report is being run plus any days specified in the Number of Days in the Future Parameter.
    The sample code as:
    SELECT s.segment1 vendor_number
    ,s.vendor_name
    ,flv1.meaning classification
    ,pca.certificate_number
    ,pca.certifying_agency
    ,pca.expiration_date
    ,flv2.meaning status
    FROM ap_suppliers s
    ,pos_bus_class_attr pca
    ,fnd_lookup_values flv1
    ,fnd_lookup_values flv2
    WHERE pca.vendor_id = s.vendor_id
    AND flv1.lookup_code = pca.lookup_code
    AND flv1.lookup_type = pca.lookup_type
    AND flv2.lookup_code = pca.class_status
    AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
    AND pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>
    order by pca.expiration_date asc
    Now the parameter is Number of Days in the Future (Enter the number days in the future to extract the data. This will default to 0).
    Is it possible in discoverer to do so as in query i do that like a condition as pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>.
    How can I pass <No. of Days in the Future> as a user input parameter in discoverer?
    Please help.

    Hi,
    All you need to do is to create the condition in the discoverer instead of in the query.
    Create a custom folder containing the following sq (note that i removed the condition)l:
    SELECT s.segment1 vendor_number
    ,s.vendor_name
    ,flv1.meaning classification
    ,pca.certificate_number
    ,pca.certifying_agency
    ,pca.expiration_date
    ,flv2.meaning status
    FROM ap_suppliers s
    ,pos_bus_class_attr pca
    ,fnd_lookup_values flv1
    ,fnd_lookup_values flv2
    WHERE pca.vendor_id = s.vendor_id
    AND flv1.lookup_code = pca.lookup_code
    AND flv1.lookup_type = pca.lookup_type
    AND flv2.lookup_code = pca.class_status
    AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
    Then create a discoverer report using this folder using all fields.
    Create a new calculation as (use this exact syntax):
    Sysdate + :No_of_Days_in_the_Future
    Create a new condition:
    pca.expiration_date <= <your calculation>
    To complete it add a sort as you did in the SQL.
    That's it.
    Tamir

  • Extracting Multiple Table Data Dynamically..Table is an Input parameter

    Hi All
    Can any one update the Program/design of extracting multiple table data as a list or to an excel sheet
    For eg:- Mutliple Tables are entered in selection screen and upon executing the output should be to an excel sheet sequenctially according to the table names entered in the selection screen
    Awaiting for your update
    Regards
    Shiva
    Edited by: shivakumar bandari on May 29, 2009 9:35 PM

    HI Naimes
    Thanks for youe reply
    your second step says to select data from 'table' here tables are dynamic in nature I mean they are an input parameters..how can I write select on a table..
    I can get the table existence from DD02L table and pass the retrieved tables to FM Get_Component_List to get the fields existing for the particular table,
    But I cannot pass the dynamic table value to select query to retrieve the data..Please update me if you have anything on retrieving data from dynamically inputted value
    Can I do this
    Select * from <dyntable>
    Any suggestions will be appreciated
    thank you

  • Write a query for which has its field name as input parameter

    Hi All,
    I need to write a query for SSRS report. StartDate, EndDate and ChangedField are the input parameters.
    Let's consider that we are taking employee details. The table contains lot of fields like emp name,add1,add2,city,state,country,designation,rank etc. We have almost 30 fields are there. These field name are coming as input parameter "ChangedField"
    . I need to show the records which belong to the start date and end date also data change for the field which is given in the input parameter "ChangedField".  That meand If I give ChangedField="city", we need to check for data which
    has been updated with new City name in the given time period.
    Please suggest.
    Regards,
    Julie

    Hi Julie,
    Per my understanding that you have many fields in the table to be displayed in the report, some of the fields will always show and others should be hide and show based on the selection of the parameters which include the columns names, right?
    By default, we can't display columns dynamically in the report automatically without insert this column in the report before. So, in your scenario, I will suggest you to add all the columns in the reports first and then add show/hide expression on
    the column visibility based on the selection of the parameter "ChangedField", when some of the fields selectted they will be display, otherwise they will be hidden. For the fields which you want to be always displayed will not need to add the expression
    in the column visibility.
    Details steps about how to acheive this, please referencet to the  article below:
    Displaying Dynamic Columns in SSRS Report
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • About mapping-input-parameter operator !

    hi all:
    There is a problem,
    I deploy a mapping,the mapping have a mapping input parameter, the mapping is runing a time every day£¬and
    every day's parameter is different.
    I want to mapping input parameter of the mapping can auto get a value from some soure now.
    and the input parameter of the mapping is a "group by"
    condition at mapping!
    is this possible succed?

    Depending on what the (dynamic) source of you parameter value look like, you can either add it as a Mapping Table operator or create a simple function to use as a Pre-Mapping Process.
    Nikolai Rochik

  • Date Format on OWB 11.1.0.7 to use for input parameter for a mapping

    All,
    What is the Date Format on OWB 11.1.0.7 to use for passing in an input parameter for a mapping to execute?
    I have tried '01-01-2010','01-JAN-2010','01.01.2010', 01/01/2010 and I get the following error:
    Error RPE-01003: An infrastructure condition prevented the request from completing.
    Error RPE-01038: Failed to evaluate expression declare l_expression DATE := 01/01/2010;begin :result := wb_rt_conversions.from_date(l_expression);end;. Please modify the expression, redeploy and retry again.
    RA-06550: line 1, column 32:
    PLS-00382: expression is of wrong type
    ORA-06550: line 1, column 24:
    PL/SQL: Item ignored
    ORA-06550: line 1, column 90:
    PLS-00320: the declaration of the type of this expression is incomplete or malformed
    ORA-06550: line 1, column 51:
    PL/SQL: Statement ignored
    I am using a Mapping Input parameter object and have a START_DATE_IN as a DATE and an END_DATE_IN as a DATE
    Any information you could provide would be greatly appreciated.
    Thanks,
    Shaun

    Hello Shaun,
    The function wb_rt_conversions.from_date is (at least in OWB10.2) overloaded and can with input-types as
    date, timestamp_unconstrained, timestamp_tz_unconstrained, timestamp_ltz_unconstrained or varchar2.
    If it doesn't work with varchar2 I would try Date:
    For example: to_date('2010-01-01','YYYY-MM-DD')
    I also found this thread:
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=608257
    Hoping this helps...
    Guenther

  • How to Receive soap input parameter value in BPEL

    Hi
    Please provide the solution to receive the input parameter value from a soap call i.e. . invoking a BPEL process from a PL/SQL client and with input parameter value.
    Following Xpath expression does not work ,if a value is passed from SOAP input parameter
    bpws:getVariableData('receiveInput_process_InputVariable','payload',/client:Test_ExternalcallProcessRequest/client:input).
    This works fine only if avalue is passed from 'client' partnerlink(from console).
    Please do the needful.

    Hi
    Thank you for your response
    sample PL/SQL code to call a BPEL process along with some input parameter
    req P_A2a_Call_Bpelprocess.request;
    resp P_A2a_Call_Bpelprocess.response;
    inputvar VARCHAR2(100) := ' START PROCESS';
    ls_method VARCHAR2(25) := 'process';
    ls_namespace VARCHAR2(100) := 'xmlns="http://xmlns.oracle.com/Helloworld"';
    ls_url     VARCHAR2(254) := 'http://nooslux036t.gl.2wglobal.com:7777/orabpel/A2A/Helloworld/1.0';
    BEGIN
    req := P_A2a_Call_Bpelprocess.new_request(ls_method, ls_namespace);
    P_A2a_Call_Bpelprocess.add_parameter(req, 'input', 'xsd:string', inputvar);
    resp := P_A2a_Call_Bpelprocess.invoke(req, ls_url,ls_method);
    The input value is 'START PROCESS' and Can I get this value from Xpath experssion usiing bpws:getVariableData or any other function? .Please let me know.
    sample Xpath expression to get 'client' partnerlink data.
    bpws:getVariableData('receiveInput_process_InputVariable','payload',/client:Test_ExternalcallProcessRequest/client:input).
    Thanks in advance

  • Problem with writing a procedure with table name as an input parameter

    Hi all,
    I am writing a procedure with table name as an input parameter:
    below is the code
    create or replace procedure prc(in_tbl in varchar2)
    as
    begin
    execute immediate ' truncate table tlb ';
    insert into tbl
    select a,b,c from in_tbl;
    end;

    user579585 wrote:
    Hi all,
    I am writing a procedure with table name as an input parameter:
    below is the code
    create or replace procedure prc(in_tbl in varchar2)
    as
    begin
    execute immediate ' truncate table tlb ';
    insert into tbl
    select a,b,c from in_tbl;
    end;You'll also need to use dynamic sql for the insert:
    execute immediate 'begin insert into tbl select a,b,c from '||in_tbl||'; end';

Maybe you are looking for

  • Regular expression question - match a template

    Hello All! I've put regex patterns to simple use b4, but this one I'm finding a bit of a challenge. I need to match lines to the following template: "9############ ###9,99 XXXXX####9,99 #9"In this template 9s mean digits, Xs mean alphanum characters

  • Different Types of Aggregates For a Keyfigure

    Hi, When we go to aggregaion tab of a keyfigure.(i.e in tcode:rsd1). There are i) Aggregation ii) Exception Aggregat iii) Agg.referen.char Can You please tell me what each option is meant for.? Where and when we should use them ? What are its purpose

  • I-MAIL. Can receive but not send. Suddenly outgoing SMTP will not function.

    I-Mail. Can receive mail but not send. Pass 2 wks. Outgoing SMTP server says I'm OFFLINE. Tried the following ----Mail, Preferences, Out Mail server, made sure it didn't say NONE. Hit edit, went to following page, typed my user name & passwd-----Stil

  • Dng converter 8.5

    I've downloaded the raw/dng converter and it works as a standalone. LR has raw 8.5, PS has 8.4. How do I get the two to both use 8.5? Do I need to manually convert raw to dng first? Confused. Thanks. Ron

  • Server 2012: Enabling replication hangs

    Hello All, I have setup replication between 2 Hyper-V 2012 server clusters. When enabling the replication of a VM, everything looks fine. The Replica Server is found. All settings are correct and the replica server is reachable over the used tcp port