Pass bind value to a variable

How possible is it to pass a bind value to a variable?
<cfselect id="addo" name="addo"
bind="cfc:asproxy.getRList()"display="ListName" value="ListID"
BindOnLoad="true" />
The above bind value in addo then passed to the below, making
available to the whole page as "valueaddo"
<cfset valueaddo =#addo#>

Thank you Bitaites.
I tried to add a new action in the page definitions --> bindings --> insert inside binding create new action --> and then choose the data collection --> select an Action as "ExecuteWithParams" --> in the Value field I put the value e.g. 'APPROVER'.
Is something I did wrong? Because it seems not work... =(
Can you explain a little bit about how to do it?
Thanks a lot!!

Similar Messages

  • Passing JavaScript values to JSP variables

    Can any body correct the follwing code
    <Script language="JavaScript">
    function test( x )
    <%
    int num = x;
    num = num * 2;
    %>
    v.value = "<%out.print(num);%>";
    <input type="button" name="b" value="test" onClick="test(5)">
    <input type="text" name="v" value="0">
    In short, I am trying to pass JavaScript value to JSP variable. I hope that it is possible to do that. If it is possible then how can I do it. I want to assing the variable x passed to the JavaScript function called test to the JSP variable called num.
    Regards,
    Ageel

    Thank you for your reply,,,
    I think then the only way to do it is to post the
    value on the server and then use request.getParameter
    method in jsp code
    but the question now how can I post values to the
    server using JavaScript without reloading the pageyes... you can to it by create a new popup window which will submit the value to server after page was loaded... then, server return a value to the same window in html/jsp page which then using javascript to set it back to the opener and close up the window... however, this is not a good choice unless you have no other alternative...
    >
    There is other possible solution
    if I can get the text field value from the same page
    without reloading it that would work fine and will
    solve my problem, is it possible?yes... you can get the value from the textfield...
    for example :
    function showValueInTextField()
        alert(document.forms[0].elements["mytextfieldname"].value);
    >
    My final question> can jsp change things on the same
    page without reloading it. I mean can it work like
    JavaScript so that I can use it's internal functions
    instead of using java script :S
    not really know what you trying to say here...

  • Pass the value of a variable in a KM Option

    Hi Gurus,
    We have developped a LKM using existing DBlinks to extract data. Since we are not allowed to created DBlinks ourselves on the source DBs, we have added an option in the KM to specify the name of the DBlink that should be used.
    It worked well because we only had the prod context.
    Now we have a Dev and Test context for some dataservers. Our idea was to put a variable DBL_NAME as the option value and refresh it in a package. The dblink name is store in a table with its associate context name and we retrieve the context using the Substitution API : SELECT value from PARAM WHERE param = '<%=odiRef.getContext("CTX_NAME")%>'
    As the value of option DBLINK_NAME we put #PROJECT.DBL_NAME.
    However at runtime the variable is not resolved so its name appears instead of its value : +... from MIN.DATASTORE@#PROJECT.DBL_NAME DATASTORE where     (1=1)+.
    Do you have any idea of the cause of the behavior ?
    We are working with ODI 11.1.1.5.
    Here is the code of our KM :
    create or replace view <%=odiRef.getObjectNameDefaultPSchema("L",  "" , "W")%><%=odiRef.getInfo("COLL_NAME")%>
    +(+
         +<%=odiRef.getColList("", "[CX_COL_NAME]", ",\n\t", "", "")%>+
    +)+
    as select     <%=odiRef.getPop("DISTINCT_ROWS")%>
         +<%=odiRef.getColList("", "[EXPRESSION]", ",\n\t", "", "")%>+
    +from     <%=odiRef.getSrcTablesList("", "[SCHEMA].[RES_NAME]@"+"odiRef.getOption("DBLINK_NAME")"+" [POP_TAB_ALIAS]", ", ", "")%>+
    +where     (1=1)+
    +<%=odiRef.getFilter()%>+
    +<%=odiRef.getJrnFilter()%>+
    +<%=odiRef.getJoin()%>+
    +<%=odiRef.getGrpBy()%>+
    +<%=odiRef.getHaving()%>+
    Thanks in advance for your help.
    Regards

    Hi Michael,
    Thanks a lot for your answer! It could be a workaround.
    However sometimes we have a lot of different sources that doesn't need a different dblink for each context and only one source that has 3 different dblinks (one for each context). If I could avoid to create a lot of useless variable, it would be nice.
    Does someone know if it is possible to put the value of a variable as a KM option ?
    Regards

  • Passing bind value into viewlink in uix

    Hi,
    Can anyone tell me if is it possible to passe a value for a where condition in viewlink with uix xml ?
    I've a view link with some query like :1 = VtfSecteurfamille.IDSECTEUR which source attribute TfSecteur.IDSECTEUR
    In uix page
    &lt;stackLayout&gt;
    &lt;contents childData="${bindings.TfSecteurView.rangeSet}"&gt;
    &lt;styledText text="${uix.current.Libelle}"/&gt;
    &lt;stackLayout&gt;
    &lt;contents childData="${bindings.VtfSecteurmarqueViewLink.rangeSet}" &gt;
    &lt;styledText text="${uix.current.Nommarque} ${uix.current.Idmarque} "/&gt;
    &lt;/contents&gt;
    &lt;/stackLayout&gt;
    &lt;/contents&gt;
    &lt;/stackLayout&gt;
    I want to passe to :1 a value

    Hi Ganesh,
    Please have a look at this thread on how to add 'ALL' as a value for the prompt.
    All values in parameter
    -Abhilash

  • Passing attribute value in session variable

    Hi All
    I need to store one field value from my SIM form as a session variable and pass them to the next page along with my session, using some jscript stuff or else. Does this make sense?
    If it is possible or anyone have any prior experience please reply.
    Thanks in advance

    We have tested a code-snippet that 'gets' attribute-values from the session:
    <invoke name='getAttribute'>
        <invoke name='getHttpSession'>
            <ref>:display.state</ref>
        </invoke>
        <s>attribute_name</s>
    </invoke>You can try 'setAttribute' in the similar way.
    Thanks,
    Adi

  • Pass a value returned from variable to parameter ssis 2012

    DECLARE
    @var1
    sql_variant
    =
    @DatabaseName
    EXEC
    [SSISDB].[catalog].[set_execution_parameter_value]
    @execution_id,
    @object_type=30,
    @parameter_name=N'DatabaseID',
    @parameter_value=@var1hi
    all, is it possible to pass the variable value to the parameter instead of the value like above instead of value, in the above case @database holds value of the database

    "pass
    the variable value to the parameter instead of the value like
    above instead of value"
    is misleading
    where do you pass what from?
    Arthur My Blog

  • How can I pass the values to the variable by using INPUT ON from output

    HI,
        In this code I printed  s_number by using INPUT ON .
    In the out put I want to give the some new values to that field s_number.
    That new value I  pass to the another prgroam ZMAT_LABEL_FIRST .
          How could I pass this new  content to this program.  I wrote like this but I am not getting new content what I entered in the output.
    REPORT  ZMAT_LABEL_SCREEN_V1    NO STANDARD PAGE HEADING                    .
    PARAMETERS S_MBLNR TYPE MSEG-MBLNR.
    DATA C .
    DATA CNT TYPE I.
    DATA   S_NUMBER(3) TYPE C.
    DATA : BEGIN OF IT_MBELN OCCURS 0,
            MBLNR TYPE  MSEG-MBLNR,
            END OF IT_MBELN.
    DATA :  BEGIN OF IT_MSEG OCCURS 0,
            ZEILE TYPE MSEG-ZEILE,
            MBLNR TYPE MSEG-MBLNR,
            MEINS TYPE MSEG-MEINS,
            BPMNG TYPE MSEG-BPMNG,
            MAKTX TYPE MAKT-MAKTX,
            END OF IT_MSEG.
    DATA IT_FINAL LIKE IT_MSEG .
    data: it_ret like ddshretval occurs 0 with header line.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MBLNR.
    SELECT MBLNR
           FROM MSEG
           INTO TABLE IT_MBELN.
           CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
             EXPORTING
             DDIC_STRUCTURE         = ' '
               retfield               =  'MBLNR'
              PVALKEY                = ' '
             DYNPPROG               = ' '
             DYNPNR                 = ' '
             DYNPROFIELD            = ' '
             STEPL                  = 0
             WINDOW_TITLE           =
             VALUE                  = ' '
              VALUE_ORG              = 'S'
             MULTIPLE_CHOICE        = ' '
             DISPLAY                = ' '
              CALLBACK_PROGRAM       = 'ZMAT_LABEL_SCREEN '
             CALLBACK_FORM          = ' '
             MARK_TAB               =
           IMPORTING
             USER_RESET             =
             tables
               value_tab              =  IT_MBELN
             FIELD_TAB              =
              RETURN_TAB             =  IT_RET
             DYNPFLD_MAPPING        =
           EXCEPTIONS
             PARAMETER_ERROR        = 1
             NO_VALUES_FOUND        = 2
             OTHERS                 = 3
           IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
           ENDIF.
    IF SY-SUBRC = 0.
    read table it_ret index 1.
    move it_ret-fieldval to S_MBLNR.
    ENDIF.
    START-OF-SELECTION.
    SELECT A~ZEILE
           A~MBLNR
           A~MEINS
           A~BPMNG
           B~MAKTX
           INTO CORRESPONDING FIELDS OF TABLE IT_MSEG
           FROM MSEG AS A INNER JOIN MAKT AS B
           ON AMATNR = BMATNR
           WHERE MBLNR = S_MBLNR.
    ****FINDING THE NUMBER OF RECORDS IN THE TABLE
    DESCRIBE TABLE IT_MSEG LINES CNT.
    at line-selection.
    DO CNT TIMES.
    READ LINE SY-INDEX FIELD VALUE C.
    IF C = 'X'.
    READ TABLE IT_MSEG INDEX SY-INDEX .
    ***HERE READ THE S_NUMBER(WHAT I ENTERED IN THE OUTPUT)  AND PASS TO THIS PROGRAM
    submit   ZMAT_LABEL_FIRST with p_mblnr = IT_MSEG-mblnr
                              with number =  S_NUMBER
                              WITH S_ZEILE =  IT_MSEG-ZEILE and return.
    CLEAR IT_MSEG.
    ENDIF.
    ENDDO.
    **********ALL ITEMS CORRESPODNING TO THE DOCUMENT NUMBER DISPLAY
    END-OF-SELECTION.
    LOOP AT IT_MSEG.
    WRITE : /10 C as  CHECKBOX,IT_MSEG-ZEILE,IT_MSEG-MAKTX,IT_MSEG-BPMNG,IT_MSEG-MEINS, S_NUMBER COLOR 5 INPUT ON.
    ENDLOOP.
    Regards,
    Surya

    Hi Surya..
    Change it like this ...
    START-OF-SELECTION.
    SELECT A~ZEILE
    A~MBLNR
    A~MEINS
    A~BPMNG
    B~MAKTX
    INTO CORRESPONDING FIELDS OF TABLE IT_MSEG
    FROM MSEG AS A INNER JOIN MAKT AS B
    ON AMATNR = BMATNR
    WHERE MBLNR = S_MBLNR.
    ****FINDING THE NUMBER OF RECORDS IN THE TABLE
    DESCRIBE TABLE IT_MSEG LINES CNT.
    at line-selection.
    <b>DO. </b>
    READ LINE SY-INDEX FIELD VALUE C
                                      <b>FIELD VALUE IT_MSEG-ZEILE.</b>
    <b>if sy-subrc ne 0.
      EXIT.
    ENDIF.</b>
    IF C = 'X'.
    ***HERE READ THE S_NUMBER(WHAT I ENTERED IN THE OUTPUT) AND **PASS TO THIS PROGRAM
    <b>CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      exporting
        INPUT = IT_MSEG-ZEILE
      IMPORTING
        OUTPUT = IT_MSEG-ZEILE .</b>
    submit ZMAT_LABEL_FIRST with p_mblnr = IT_MSEG-mblnr
    with number = S_NUMBER
    WITH S_ZEILE = IT_MSEG-ZEILE and return.
    CLEAR IT_MSEG.
    ENDIF.
    ENDDO.
    **********ALL ITEMS CORRESPODNING TO THE DOCUMENT NUMBER DISPLAY
    END-OF-SELECTION.
    LOOP AT IT_MSEG.
    WRITE : /10 C as CHECKBOX,IT_MSEG-ZEILE,IT_MSEG-MAKTX,IT_MSEG-BPMNG,IT_MSEG-MEINS, S_NUMBER COLOR 5 INPUT ON.
    ENDLOOP.
    <b>Reward if Helpful.</b>

  • How to pass a value to a variable at the time of scenario execution

    Hi All,
    I need to develop a ODI scenario, wiht below requriments.
    I have to move data from flat file to Target DB.
    flat file name is not consistent, we have to pass file name at the time of scenario excution.
    Could any of help me how to build this ODI scenario.
    Appreciate your help.

    In the datastore where you have filename in the "Resource Name", enter a variable #myVar
    You need to recompile your scenario after this change has been done.
    And when you execute the scenario, pass along the parameters "-Project.myVar=c:\filename.txt"
    Probably, this link may help you http://blogs.oracle.com/dataintegration/2009/04/using_parameters_in_odi_the_dy_1.html

  • Passing multiple values to one variable in jsp/javabean

    I have a form, which contains an assortment of fields/checkboxes/etc. What I'd like to see is when someone goes through the form and enters text or checks any fields on the form they want, after they submit it to the next page, the next page will display all those values that they entered or checked. Some of these values entered may be strings or integers. I want all those values (checkbox1, checkbox2, etc) to be stored in one variable in a javabean so I can call upon that value at anytime during the session. Any suggestions?

    why do you want to store so many data in just one variable?

  • How to pass JavaScript value to JSP variable

    I know this is not possible. But I need to do this :
    <script language = "Javascript">
    function findElement() {
    for(i=0; i<document.forms[0].elements.length; i++){
    if(document.forms[0].elements.type == 'text') {
    var elName = document.forms[0].elements.name;
    var elValue = document.forms[0].elements.value;
    // Display element name and value
    //alert(elName +' = '+ elValue)
    <%
    String elName = elName;
    System.setProperty(%>elName<%, %>elValue<%);
    %>
    </script>
    in JSP. I need to get the name and value of the textbox in the form to just change one property on the JSP System. Any help pls

    Thanks man, I think that would work.
    I found something else already though and it works on the same page
    <%
         Enumeration parameters = request.getParameterNames();
         String parameterValue = " ";
         String parameterName = " ";
                   while (parameters.hasMoreElements()) {
                        parameterName = (String) parameters.nextElement();
                        parameterValue = request.getParameter(parameterName);
                   out.println("NAME =========" + parameterName);
                   out.println("VALUE =========" + parameterValue);
                   //System.setProperty(parameterName, parameterValue);
         %>
    Thanks again for the help

  • How to pass the values to stored proc using presentation variable in OBIEE

    Need your help regarding in resolving an issue in OBIEE 10.1.3.4.1
    There are 6 reports say ‘A’,’B’,’C’,’D’,’E’,’F’ in the same subject area.
    The reports are being configured with prompts using either the repository/presentation variables.
    One of the reports say ‘A’ has been configured to pass the values using presentation variables from the prompt in Advanced Tab of the report request to the stored procedure defined in the Execute Before Query section of the connection pool.
    After running another report ‘B’ in the same subject area, upon visiting the report ‘A’ view display error is being seen ( Please have a look below screen shot for your reference) .
    Speculate the issue is around presentation variables of report ‘A’ getting initialized even before running the report.
    Appreciate your earliest advise as this is a prod issue.

    Hi Prasad,
    I got your note, you should not use Session variable syntax to call presentation variable.
    you should use like @{AIC_PROJ_PLAT_SEQ_NO}
    One more thing: first test the variable AIC_PROJ_PLAT_SEQ_NO value then try to pass to SP.
    Hope this helps

  • Pass mulpliple values to variable

    Hi,
    I have create a variable and then have created multiple interfaces that use that variable in a filter.
    Now I will be creating a package that will have all these interfaces. I'm trying to figure out if its possible to pass multiple values to the variable e.g. 1000,1002 (like an oracle in statement).
    Thanks
    Regards

    Hi,
    I tried using ('a','b') but got an error when trying to execute the scenario.
    I have an alphanumeric variable defined which I use in my package, this works fine for one value, but when I try multiple values it gives error (ora 01797)
    Can you tell me the correct syntax.
    Regards

  • Passing binds to Child reports / detail script reports

    Hi,
    I've been trying to figure out (assuming it's possible) how to pass bind variables to child / detail PL sql script reports.
    I've made sure to declare the binds tab, and made sure it saved. However, if I try something like:
    exec dbms_output.put_line(:VAR);
    I get bind variable not declared. Any ideas what I'm doing wrong?
    Thanks.

    Make sure that the value you are trying to pass to the child/detail report exists as a column in the parent/master report. Second make sure that the bind name in the child/detail report is in ALLCAPS.
    I don't know of any other way to pass bind values to child reports than via the parent query, and the all caps requirement catches me often enough.

  • Sending VALUES of CF variables thru  FlashVars

    Hey There!
    I am testing a simple application where I am trying to send
    back to flash (AS3) some variable values from coldfusion. It works
    just fine when I assign the value in CF "by hands" i.e.
    <cfsetting enablecfoutputonly="YES">
    <cfset Return = "&Numbers=456&">
    <cfprocessingdirective suppresswhitespace="Yes">
    <cfoutput>
    #Return #
    </cfoutput>
    </cfprocessingdirective>
    Then flash accepts the value of variable Numbers of 456.
    Now I ran into a problem, when I need instead of steady 456
    pass the VALUE of CF variable. I was trying the following way:
    <cfsetting enablecfoutputonly="YES">
    <cfset x = 123>
    <cfset Return = "&Balls=&">
    <cfprocessingdirective suppresswhitespace="Yes">
    <cfoutput>
    #Return#=#x#
    </cfoutput>
    </cfprocessingdirective>
    In this case I receive no value in flash assigned to Balls
    Can anyone please let me know that is the proper way to pass
    VALUES of CF variables using flashvars?
    Or maybe you know where to find a tutorial showing how that
    was done.
    Thank you

    I don't know what you're trying to do. However, since the
    Numbers example works, here are the respective versions that are
    similar to it:
    <cfset Return = "&Balls=">
    <cfprocessingdirective suppresswhitespace="Yes">
    <cfoutput>
    #Return##x#&
    </cfoutput>
    </cfprocessingdirective>
    <cfprocessingdirective suppresswhitespace="Yes">
    <cfoutput>
    &Balls=#Tostring(x)#&
    </cfoutput>
    </cfprocessingdirective>

  • How to pass a value to a bind variable in a query report in oracle apex

    Hi Guys,
    I have requirement to send weekly reports via email to some users. The users should receive their own records in the report. The user details is stored in a table. What I am planning to do is to create a report query in oracle apex to generate the report and then run a function/procedure via a scheduler to email the report to respective users. Now my query is ............. is it possible to pass a value (user name) to the report query to pull records of only that user? I know we can have bind variables in the report query but I have no idea how to pass a value for bind variables from a function/procedure.
    Can anyone help me on this issue or suggest a better approach?
    Thanks,
    San

    You need to use dynamic sql
    But please keep in mind that since you're using Oracle you may be better off posting this in some Oracle forums
    This forum is specifically for SQL Server
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for