Can you pass a session variable in a CFC bind?

I have a page (dsp_compReqSCM.cfm) that (via a session variable) displays an application value.  From this page (via a CFFORM) I would like to have that session variable passed along to a cfc(getDistinct.cfc).  I can't quite get the syntax correct and am hoping to get some assistance.  When I code #session.this_appl# in dsp_ReqComps.cfm, I get an error stating Element not found PTS (which is the value of session.this_appl) and that the bind cannot occur.  If I pass session.this_appl (NO ##) in dsp_ReqComps.cfm, I get an error stating Element not found session and that the bind cannot occur.   If I pass 'session.this_appl' or "session.this_appl" in dsp_ReqComps.cfm, I get an error stating Element not found 'session (or "session) and that the bind cannot occur.
dsp_compReqSCM.cfm calls dsp_ReqComps.cfm via cfform
<!---dsp_ReqComps.cfm--->
<cfwindow initshow="true" center="true" width="430" height="340">
<cfform>
     <cfgrid name="componentsGrid"
             format="html"
             pagesize=10
             striperows="yes"
             bind="cfc:distinctComponents.getDistinct({cfgridpage},{cfgridpagesize},{cfgridsortcolumn} ,{cfgridsortdirection},#session.this_appl#})"
             selectmode="row" >
         <cfgridcolumn name="Component_type" header="Component Type" width="400">
     </cfgrid>
</cfform>
</cfwindow>
<!---getDistinct.cfc--->
<cfcomponent>
    <cffunction name="getDistinct" access="remote" returntype="struct">
        <cfargument name="page">
        <cfargument name="pageSize">
        <cfargument name="gridsortcolumn">
        <cfargument name="gridsortdir">
        <cfargument name="appl_in"  type="string" required="true">
  <cfset var Qcomponents = ''>
    <cfif gridsortcolumn EQ "">
   <cfset gridsortcolumn = "ASC">
  </cfif>
        <cfif gridsortdir EQ "">
   <cfset gridsortdir = "ASC">
  </cfif>
   <cfquery name="Qcomponents" datasource="Tax">
      select DISTINCT(component_type) from ctl_components 
     where app_abbrev = #appl_in#
   </cfquery>
    <cfreturn QueryConvertForGrid(Qcomponents, page, pageSize)>
  </cffunction>
</cfcomponent>
Any advice you can give is greatly appreciated!
Libby H.

@Libby H
There are 2 things.
1) The name of the component the grid binds to(distinctComponents) is different from the name of the CFC(getDistinct).
2) Session variables are also available to components. There is therefore no need to pass them explicitly to a function. In any case, it is always advisable to test for the existence of a session variable before using it.
Your code would then be something like
<cfform>
     <cfgrid name="componentsGrid"
             format="html"
             pagesize=10
             striperows="yes"
             bind="cfc:distinctComponents.getDistinct({cfgridpage},{cfgridpagesize },{cfgridsortcolumn},{cfgridsortdirection})"
             selectmode="row" >
         <cfgridcolumn name="Component_type" header="Component Type" width="400">
     </cfgrid>
</cfform>
</cfwindow>
<!---distinctComponents.cfc--->
<cfcomponent>
    <cffunction name="getDistinct" access="remote" returntype="struct">
        <cfargument name="page">
        <cfargument name="pageSize">
        <cfargument name="gridsortcolumn">
        <cfargument name="gridsortdir">
  <cfset var Qcomponents = ''>
    <cfif gridsortcolumn EQ "">
   <cfset gridsortcolumn = "ASC">
  </cfif>
        <cfif gridsortdir EQ "">
   <cfset gridsortdir = "ASC">
  </cfif>
<cfparam name="session.this_appl" default="your_default_value">
   <cfquery name="Qcomponents" datasource="Tax">
      select DISTINCT(component_type) from ctl_components 
     where app_abbrev = #session.this_appl#
   </cfquery>
    <cfreturn QueryConvertForGrid(Qcomponents, page, pageSize)>
  </cffunction>
</cfcomponent>

Similar Messages

  • Can you have a local variable to handle wfm information?

    I am very new to test stand. Can you have a local variable to handle wfm information?
    Also how do you use parameters? Do you need to have a parameter of the same name in the main sequence and subsequence?
    Thanks,
    Brian
    Electrical Engineer
    L3 Communication

    Hi Brian
    Parameters are one way you can pass data from a calling sequence to a subsequence. From the main sequence, right-click on your subsequence and select "Specify Module...". In the "Parameters" section of the dialog box, you should see any parameters that you have for your subsequence. You can then assign these subsequence parameters to have the same value as a parameter from the calling sequence, a local variable from the calling sequence, a constant, etc. In regards to your question about naming parameters, you do not need to have parameters of the same name in both the calling sequence and the subsequence, although you could have them be the same name.
    Russell G.
    NI Applications Engineering

  • How can I pass a Presentation Variable (Date) into a prompt

    Hello
    How can I pass a Presentation Variable (date) into a prompt? I seem to be able to do this successfully for a non-date value but have had no luck with a Date variable.
    Here's a simplistic version of what I'm trying to do:
    1. I have a Presentation Variable called startDate which is a Date that defaults to this SQL - SELECT "Reporting Dates"."Measure Date" FROM Trading WHERE "Reporting Dates"."Date Name" = 'Current'.
    2. I now want to pass this variable into a prompt with SQL like this: SELECT "Position Date"."Position Date" FROM Trading where "Position Date"."Position Date" = date'@{startDate}{2009-04-24}'
    I get this error: Datetime value @{startDate}{2009-04-24} from @{startDate}{2009-04-24} does not match the specified format.
    Now I can use the exact same syntax in a filter. For example, a simple Answers request where I pick Position Date with a filter saying "Position Date"."Position Date" = date'@{startDate}{2009-04-24}' works fine.
    What am I doing wrong?
    Thanks!

    Can you provide more information please?
    1. What is the format of the first date prompt, is it YYYY-MM-DD or?
    2. Which data type is Position Date."Position Date" in the physical layer, date or date time?
    3. What is the column formula in the first prompt?
    4. The first prompt is set to drop-down or?
    5. If you are using this SQL Results in the second prompt:
    SELECT "Position Date"."Position Date" FROM Trading where "Position Date"."Position Date" = date '@{startDate}{2009-04-24}'
    then @{startDate} must be in YYYY-MM-DD format to work properly, otherwise (for example):
    datetime value 01/01/2000 from 01/01/2000 does not match the specified format.
    This doesn't work for example:
    SELECT Times.time_id FROM "Normal model" where Times.time_id =date '01/01/2000'
    Regards
    Goran
    http://108obiee.blogspot.com

  • Can you pass a hidden value along with your select option in the form selec

    Can you pass a hidden value along with your select option in the html form select

    Off topic. Locking.

  • Can you pass an array URL variable

    Hi,
    Doing a form which I want to validate, then re-display with
    error messages and the keyed data still in place should there be
    errors, or go onto a second form if all ok.
    I have tried to use <form
    action="<?=$_SERVER['PHP_SELF']?>" but as the various
    outcomes result in different screens I can't see how to do it
    without having reams of duplicate code - I couldn't make it work
    satisfactorily anyway.
    So I decided to do it in two stages - form (user screen) + a
    separate validation routine which passes validation results back if
    there are errors by calling the first screen but with URL variables
    to trigger process variations or go onto screen 2 if all ok.
    But I'm struggling with this .. two questions:
    i) Ideally I would like to use a session variable to pass
    actual error messages back to screen one in the event of errors but
    if I undertand things correctly (which is by no means certain)
    $S_Session is already an associatve array so it wouldn't be so easy
    to just add a variable number of messages to it and then know what
    you are unpacking elsewhere ... do you know what I mean?
    Perhaps if I give you my second question it may help
    illustrate what I'm going on about in part 1
    ii) The way I have tried to do it is to set it up as an array
    ($ERRORS) in the validation module and then added a text string
    each time I hit a specific error. The hope was that I could then
    send this back via the URL for further process but I'm getting
    syntax problem so maybe this is not possible .... a brief example
    Input Form php:
    $ERRORS = array();
    $ERRORS = $_GET['errors']
    if (sizeof($ERRORS) > 0) {
    echo "<p class=\"val_err_hdr\"> *** Validation
    error(s) - please correct the entries and try again ***
    </p>";
    blah blah
    Validation php:
    $ERRORS=array();
    if(!$loginFoundUser) {
    $ERRORS[] = "This e-mail address entered has already been
    registered on our database - if you have already registered you
    can"; }
    header("Location: input.form.php?errors=$ERRORS");
    When I run this I get a syntax error 'unexpected T_IF' on the
    'sizeof'' function condition.
    Any help much appreciated.

    .oO(patricktr)
    > Doing a form which I want to validate, then re-display
    with error messages and
    >the keyed data still in place should there be errors, or
    go onto a second form
    >if all ok.
    OK, quite common.
    > I have tried to use <form
    action="<?=$_SERVER['PHP_SELF']?>"
    Avoid short open tags, they are unreliable. Use "<?php
    print " instead
    of just "<?=" to be safe and independent from the server
    configuration.
    >but as the
    >various outcomes result in different screens I can't see
    how to do it without
    >having reams of duplicate code - I couldn't make it work
    satisfactorily anyway.
    What's a "screen" in this case? Just another part of the form
    or a
    completely different page?
    > So I decided to do it in two stages - form (user screen)
    + a separate
    >validation routine which passes validation results back
    if there are errors by
    >calling the first screen but with URL variables to
    trigger process variations
    >or go onto screen 2 if all ok.
    Don't use URL parameters in such a form processing scenario.
    Use a
    session instead, that's what they are for. The length of URLs
    is limited
    and there are things you simply don't want to pass between
    pages, but
    keep on the server instead.
    > But I'm struggling with this .. two questions:
    >
    > i) Ideally I would like to use a session variable to
    pass actual error
    >messages back to screen one in the event of errors but if
    I undertand things
    >correctly (which is by no means certain) $S_Session is
    already an associatve
    >array so it wouldn't be so easy to just add a variable
    number of messages to it
    >and then know what you are unpacking elsewhere ... do you
    know what I mean?
    The $_SESSION array itself is strictly associative, the used
    indexes
    must be strings or the serialization of the session data will
    fail.
    But if course you can always do things like this:
    $_SESSION['errors'] = array();
    $_SESSION['errors'][] = 'something went wrong';
    > Perhaps if I give you my second question it may help
    illustrate what I'm going
    >on about in part 1
    > ii) The way I have tried to do it is to set it up as an
    array ($ERRORS) in the
    >validation module and then added a text string each time
    I hit a specific
    >error. The hope was that I could then send this back via
    the URL for further
    >process but I'm getting syntax problem so maybe this is
    not possible .... a
    >brief example ...
    As said above - use the session instead.
    > Input Form php:
    > $ERRORS = array();
    > $ERRORS = $_GET['errors']
    There's a ';' missing at the EOL (this causes the error you
    mentioned
    below).
    Just a naming hint: Variables should not be named all
    uppercase (except
    for the predefined superglobal arrays). Such names should be
    reserved
    for constants. The most common style looks like this:
    myNiceFunction()
    $myNiceVariable
    MY_NICE_CONSTANT
    > if (sizeof($ERRORS) > 0) {
    if (!empty($_SESSION['errors'])) {
    > header("Location: input.form.php?errors=$ERRORS");
    The Location URI must be absolute including scheme and
    hostname. This is
    required by the HTTP spec:
    header("Location:
    http://$_SERVER[HTTP_HOST
    But I'm still not sure why you would need this redirect. The
    entire
    handling of a form (validation, processing) can be done on a
    single
    page. Only if the processing succeeds, you might want to
    redirect to
    some result page.
    Micha

  • Trying to pass Hidden/Session variables from 1 JSP to 3rd JSP

    Hellol JSP Gurus !!
    This is a question on how a hidden or a value of a session variable can be passed from 1 JSP to a 3rd JSP, with the 2nd JSP as a Processing page.
    For eg., here's the scenario
    I have a Login page which has the hidden variables. Once the user enters the Login information, the info is validated in a LoginP.jsp (say, its a Processing page for the Login user/passwd info), which does a sendRedirect to a 3rd (Final) JSP which displays the values of the hidden/session variables of the 1st JSP.
    In my case, for some reason, I am not able to see the value for the hidden or the session variables in the 3rd JSP - they are null values.
    I am attaching some Duke dollars to who ever gives me the right solution.
    Thanks a lot in advance

    Use strings to set attributes;You can store any serializable object in the session. I doubt this will actually change anything.
    Anything wrong with the above code ?Not that I can see ... A number of other things can explain why you're getting null values out of the session. For example :
    - You are not using the implicit session obj in the 3rd jsp, but creating a new one and thus overwriting the one created previously
    - the session timeout value is unusually low, and by the time you're getting to the 3rd jsp, the session is invalidated and you're getting nulls. Verify your server config, or call session.getMaxInactiveInterval() to check the value. Check also if the session is new ( session.isNew() )
    Somebody already pointed this out : If the client does not support cookies and URL rewriting is not enabled, no session ID is returned to the server on a request, which the server then perceives as a new session.
    - Another (remote?) possibility : your 3rd jsp belongs to another webapp (i.e you're redirecting to another app context).
    If nothing of the above applies, post the jsp code and we'll try to help.

  • To pass new session variable value to stored proc before running a report.

    Hi,
    Below is summary of the report requirement -
    Database level design
    1. Created a view and a global temporary table (GTT)
    2. Created an Oracle package procedure to accept from and to business dates on basis of which it will fetch, process and populate the GTT.
    Repository level design
    1. Created a business model containing the view and the GTT (mentioned above)
    2. Created two SESSION variables "from_dt" and "to_dt" to be initialized by their respective init blocks. Each of the variable is initialized with a DATE column value (of type DATETIME) from a database lookup table. I have also set the option "Enable that variable to be set by any user" for both variables.
    Query for these variables :
    from_dt = select from_date from <table>
    to_dt = select add_months(from_date,12) from <table>
    Presentation level design
    1. Using a text box, i display the default/initialized values of these variables like this -
    Current business date:@{biServer.variables['NQ_SESSION.from_dt']} Future business dt:@{biServer.variables['NQ_SESSION.to_dt']}
    Dates get displayed in YYYY-MM-DD 00:00:00 format
    The text msg displays these default dates and allows the user to specift different date range for which i create prompts as shown below.
    2. Using any random two columns of date type from the business model, i create two date dashboard prompts with labels "From Dt" and "To Dt".
    i select Calender Controls for both; setting Default To = Report Defaults.
    The Set Variable is set to Presentation variables - such that pv_from_dt maps to "From Dt" and pv_to_dt maps to "To Dt".
    3. i create the report using the business model created above. In the report "Advanced Tab" => "Prefix" field i specify the following -
    SET VARIABLE from_dt='@{pv_from_dt}',to_dt='@{pv_to_dt}';
    Note : The logic here is to display the default dates and allow user to specify different date values which will be stored in presentation variables.
    If the user does specify different "from dt" and "to dt" values, then using the presentation variables, i want to "write" back these new values to the corresponding session variables mentioned above.
    If the user does not specify different date range, then the default/initialized dates must be considered.
    I also display the default and new date values in the report title.
    Back to Repository level design
    To execute the stored procedure that will load the GTT before running the report I need to pass two date parameters to the stored procedure on basis of which it will fetch data, process and populate the GTT.
    In the Connection Pool --> Connection Script Tab --> Execute before query, I wrote the below query using the repository variables FROM_DT and TO_DT to execute the procedure -
    DECLARE
    v_from_dt date;
    v_to_dt date;
    BEGIN
    v_from_dt := VALUEOF(From_Dt);
    v_to_dt := VALUEOF(To_Dt);
    package_name1.package_body(v_from_dt,v_to_dt);
    END;
    Now when i try to run the report i get the following error :
    [nQSError: 10058] A general error has occurred. [nQSError: 23006] The session variable, NQ_SESSION.to_dt, has no value definition. (HY000)..
    Need help on this.
    Is it possible to "write back" a new value to a session variable ?
    Any other alternatives.
    Thanks
    Nusrat
    Edited by: user10309945 on Jan 24, 2011 10:08 PM

    Sandeep, I found a several topics where users describe saving values in DB through stored procedure or function. For example, [How to store OBIEE presentation level variable values in DB |http://forums.oracle.com/forums/thread.jspa?threadID=892006] I tried it and get an error
    *10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 14551, message: ORA-14551: cannot perform a DML operation inside a query ORA-06512*
    It's not a BI error. This error are generated by Oracle DB. If I write next:
    SELECT MyPLSQLFunction(p1,p2) FROM DUAL
    I get the same error.
    Oracle doesn't allow DML operations in SELECT.
    Did you relalize this feature yourself? Where did I mistake?

  • How to pass page session variable to on-demand PL/SQL process

    I am trying to execute a stored procedure that takes two page session variables as input and executes code based on those two variables. I have tried creating a stored procedure on the db-side and calling it using:
    BEGIN
    PROC_UPDT_EMP(&P23_TC_ID, &P23_EMP_ID);
    END;
    but APEX rejects the variables.
    I have also tried putting in the entire procedure in APEX as well, but I get the same problem. I have also tried using the :P23_TC_ID syntax, and still a no-go. What am I doing wrong?

    If PROC_UPDT_EMP is a stored procedure that takes 2 IN parameters, you would do
    proc_updt_emp(:P23_TC_ID,:P23_EMP_ID);in an after-submit page process. That would pass in the values of those 2 items from session state.

  • How to pass a session variable to the bussines layer?

    Hello,
    I am doing a management application, and I need to store the login user that make insertions on any table, and the pages does not has backing beans.
    I had try to do that bindding the value field of a hidden attribute with the session variable, but it only change the value of the one. My second attempt was make an javascript function to do that on the page´s load, but it not looks like a good solution.
    Someone knows a way to sent the session value to the bussines layer? O a way to access from the Bussines layer to the session?
    Thanks
    Tony

    <p>
    Hi,
    </p>
    <p>
    Another solution (that I always use) is storing simultaneously the same data in HttpSession (in view layer) and session hashtable (in businness layer).
    </p>
    <p>
    You can put and get these data in any businness component using following methods:
    </p>
    <p>
    <font face="courier new,courier" size="2" color="#0000ff">
    private void setToJboSession(String key, Object val){</font>
    <font face="courier new,courier" size="2" color="#0000ff"> Hashtable userData = getDBTransaction().getSession().getUserData();
    if (userData == null) {
    userData = new Hashtable();
     userData.put(key, val);
    }</font>
    </p>
    <p>
     and
    </p>
    <p>
    <font face="courier new,courier" size="2" color="#0000ff">
    private Object getFromJboSession(String key){
     return getDBTransaction().getSession().getUserData().get(key);
    }</font>
    </p>
    <p>
    Kuba 
    </p>

  • Can we pass the session values to with  ExecuteParms

    hi jdev experts,
    Using jdev 11.1.1.5.0-adfbc
    normally what we do in execute with params. manullay write query something
    like ah:
    select * from employees where empolyeeid= :eid
    here
    eid is bindvariable.
    drag and drop in the type of  execute with params into jspx page it will works fine.
    but my requirement same only one thing is added.
    i will explain in details from start to end.
    i had employee login page.
    Username:100       // this username holds in session
    password:100
    login button
    enters into index page welcome "100"
    when hits search page search page opens
    search page means i write vo as :
    empsearchvo
    select * from employees where empolyeeid= :eid and salary = :sid
    bindvariable
    eid: (default value) adf.context.current.sessionScope.get('eid') in expersion
    sid:
    this vo exposed as execute with params with af:table
    my search page:
    eid: 100   -output text         // by default no need enter the session value showing here.
    sid :  10000  -inputtext        //user has to enter this details
    search (excutewithprams)
    af:table details
    employeeid  | salry | address  | and so on details.is this possible.?
    why am posting the thread means session value is not coming ui. so i cant get my result in af:table.
    can anyone help me? out.

    You should assign the session variable to the parameter at the binding layer of your page.
    Go to the binding tab of your JSF page, find the execute with params - look for the paramter and set the NDValue to point to your session value.
    Similar to this:
    https://blogs.oracle.com/shay/entry/passing_parameters_to_adf_appl

  • Can XSQL create multiple session variables using only one database call?

    Right now if I want to set session variables for username and accesslevel, I code out like this:
    <xsql:set-session-param name="name" bind-params="username password">
    SELECT DISTINCT USERNAME
    FROM LKUP_USER
    WHERE USERNAME = ? AND PASSWORD = ? AND ACCESSLEVEL = 0
    </xsql:set-session-param>
    <xsql:set-session-param name="authlvl" bind-params="username password">
    SELECT DISTINCT ACCESSLEVEL
    FROM LKUP_USER
    WHERE USERNAME = ? AND PASSWORD = ? AND ACCESSLEVEL = 0
    </xsql:set-session-param>Is there any way to do it so that I don't have to do multiple queries to the database to set session variables? i.e., something like this:
    <xsql:set-multiple-session-param name="user authlvl" bind-params="username password">
    SELECT DISTINCT USERNAME,
    ACCESSLEVEL
    FROM LKUP_USER
    WHERE USERNAME = ? AND PASSWORD = ? AND ACCESSLEVEL = 0
    </xsql:set-multiple-session-param>Sort of like how bind-params works. Setting bind-params="username password" makes the first ? akin to username and the next ? akin to password.
    Is this functionality already in existence?
    Thanks!
    Malik Graves-Pryor

    Not currently possible to collapse into one request without doing it in a custom action handler.
    A custom action handler can:
    [list=1]
    [*]Get the current JDBC connection from the XSQLPageRequest
    [*]Get the SQL statement to perform using the function getActionElementContent
    [*]Handle any bind parameters specified an a bind-params attribute on the action element by calling handleBindVariables()
    [*]Execute and fetch the row from the query
    [*]Check to see that the return value of getPageRequest().getRequestType() equals the value "Servlet"
    [*]Cast the page request to an XSQLServletPageRequest and call getHttpServletRequest()
    [*]Call getSession() on the request
    [*]Set the session variables you want to
    [*]Close the JDBC statement
    [list]
    will consider a built-in enhancement for a future XSQL release.

  • Can you pass multiple files to Business Catalyst at the same time?

    I need to pass information from a client. The infromation is split into several files. I can not access the files to combine them to send as one document to BC. Can I send the two files over even though they do not full fill the necessity of all the user information. File 1 is the personal information and has no other details. When this fill crosses over BC accepts with no trouble. When the second file goes across the personal information is not there but the form details are and this file wipesout the DB. Going through debug when the first file executes I see the data on the BC side. When the second file executes the data is all gone. I cannot combine both files to create one document. Files do not have the same number of users so import of file with file helper would not work since it needs to meet certain requirements to process correctly everytime. By combining the two files would give a different number of tabs than what file helper is looking for and by that matter the data may not be in the correct order. Retrieving the data from the file also would not work since I would have to retrieve from both files at the same time and there would be issues if the user does not occur on both files.
    Please help.
    Thank you,
    Carlos

    Wilderness08 wrote:
    To save time with videos that are not critical, can you capture one video to Premiere Pro at the same time you are authoring to Encore a previously captured video?
    The short answer is yes.
    I have just done that and I am happy to report that it worked like a charm.
    I captured from a DVCAM tape via firewire using PPro CS6 while authoring a Blu-ray disk in Encore CS6.
    No frames were lost during capture and my test blu-ray project was completed without a hitch.

  • Can I set a Session Variable from a Dashboard Prompt, using values that are

    Hi All
    Trying to set a Session Variable to an integer value, by letting users select a text value from the drop-down list on a Dashboard Prompt. The goal is to set the input parameter to the IndexCol function, but to provide the end users with a text description of what they are setting.
    Select Value Set Variable Value
    My 0
    My Team 1
    My Companies 2
    My Teams Companies 3
    Any suggestions on how to accomplish this? Certainly we could populate the drop-down from a data source, however I don't see how to populate a variable with something other than the values on the screen.
    The IndexCol function is referenced in a Filter in Answers, and I'm thinking to populate a Session variable using the (Presentation) variable value set from the prompt. But how to do this? I see a reference to a function NQSSetSessionValue(), but cannot find documentation on how it works.
    Any clue will be greatly appreciated.
    Thanks

    Hi kishore..
    Looks like the link u have sent uses advanced SQL tab to set session variables. I want to know if I can use "set variable NQ_SESSION.myvar= @something" in the "SQL results" -while creating a dashboard prompt-.
    Purpose: I want the session variable to be set based on whatever report that im currently in.
    And i dont want to use presentation variables because im using a reset button in my page.
    My reset script resets presentation variables and NOT session variables.
    Thanks in advance
    Loy

  • Can you sort the "local variable" pick list?

    My program has a lot of local variables. If I right click on a variable and click on "select item", a loooong list of all my local variables appears. They appear to be in the order in which they were created in my program.
    Is there any way to modify the display to where the local variables appear in alphabetical order?
    Amateur programmer for over 10 years!

    The best solution is to not use a lot of local variables . Here is a neat trick to use local variables without having to use local variables . If you are using a state machine (case structure inside a while loop), create a cluster constant on the block diagram inside a state or case called "Local Defs". Inside the cluster, put constants for every local variable you will use. Label the constants like you would a local variable. Put a shift register on the loop border. Wire the cluster to the shift register on the right side. Do not initialize the shift register on the left side. In any case frame, you can wire from the left shift register into an unbundle or bundle to read or write to the Local. You never have to call the Local Defs state, the cluster will be defined because of the wiring. If using controls at many places, make a local constant for each control and have a state where the control is written to the local. Then you can read the local to use the value at any time. See attached vi for an example.
    - tbob
    Inventor of the WORM Global
    Attachments:
    StateMachineWithLocals.vi ‏45 KB

  • How can we create a session variable in OAF

    Hi All,
    i have a Master and detail page.
    In Master Page I am searching based on Deptno.
    suppose i enter Deptno 10, i got the 10 th deptno infomation and i click on the Detail Button i went to the detail page and is showed the Details of Deptno.
    in detail page i have a Cancel Button to come back to the Master page.Here i need to show the previous data only(Deptno 10) .
    for this i gave
    Retain AM True.But it was display deptno 10 and 20 also.can you please any one can can help me on this.
    if(pageContext.getParameter("Back")!=null)
    System.out.println("I am In Cancel ");
    pageContext.forwardImmediately("OA.jsp?page=/xxcurnx/oracle/apps/ont/custdtls/webui/XxcustdrilldwnPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // release AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    The above method not woked properly.
    could you please anybody can help on this issue.
    Thanks,
    Mallik.

    HI Pratap,
    This is My search Page(Master Page) Controller Code:
    public class XxcustdrldwnCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean) //Process Request Method
    super.processRequest(pageContext, webBean);
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    XxcustdtlsmainAMImpl am=(XxcustdtlsmainAMImpl)pageContext.getApplicationModule(webBean);
    if(pageContext.getParameter("Search")!=null)
    if(pageContext.getParameter("CustID")!=null && !pageContext.getParameter("CustID").equals(""))
    String vCustID = pageContext.getParameter("CustID");
    am.srchCustidtlsfordrilldwn(vCustID);
    if("update".equals(pageContext.getParameter(EVENT_PARAM)))
    pageContext.setForwardURL("OA.jsp?page=/xxcurnx/oracle/apps/ont/custdtls/webui/XxcusttrxnPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    false,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    if("updateIndividual".equals(pageContext.getParameter(EVENT_PARAM)))
    pageContext.setForwardURL("OA.jsp?page=/xxcurnx/oracle/apps/ont/custdtls/webui/XxcustlinetrnxPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    false,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    if(pageContext.getParameter("Cancel")!=null)
    pageContext.getApplicationModule(webBean).invokeMethod("rollBack");
    pageContext.forwardImmediately("OA.jsp?page=/xxcurnx/oracle/apps/ont/custdtls/webui/XxcustdrilldwnPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    false, // release AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    Thnaks,
    Mallik

Maybe you are looking for

  • UGGGH itunes wont open it says error and has to close HELPPP

    ok so everytime i tryyy to open iTunes it says iTunes has encountered a problme and needs to close. we are sorry for the inconvenience and i really wanna get this fixed and im going away for thanksgiving and i wanna get it ready cuase its 5 hours lon

  • What do i do if my logic board crashes

    i dont know what to do

  • Taxes to be maintained in Sale order

    HI Experts, The terms from the customer side is, invoiced should be rised for 1) 20% of the value with no tax. 2) 50% of the Value with VAT of 4%. 3) 30% of the Value with VAT of 12.5%. for indiviual line items. The above taxes are appicable to each

  • Monitoring Queues

    Hello all! I have been following some documentation to set up monitoring and alert framework with CCMS in XI.  One question I have is what is the best way to monitor queues that have built up and aren't sending.  Once queues reach a certain point, is

  • Solution Manager for SAP BI/BW

    I have to use solution manager for an SAP BI/BW implementation. The BW client is currently in SAPERP 2005 (ECC 6.0). Is is possible to use solution manager in the same system or should the BI/BW be implemented in NetWeaver for implementing solution m