Where do I set OnPanelCha​nged variable?

Using DIADEM 2012 Trial
I need to run a sub procedure that will add units (oz-in) to one of my channels and then ultimately converts it to(Nm).  I got that working fine so I want to now have it run based on an event.  It looks like if I use OnPanelChanged I can set it to call this sub anytime I switch from Nav to View.  Where do I set the variable? 

Hello Tweedy,
Here are the steps to reproduce:
-Create and save a script file containing:
Call AddUserCommandToEvent("onPanelChanged", "yourSub")
Sub yourSub(LastPanel, NewPanel)
End Sub
The Call AddUserCommandToEvent adds the myTest function as a callback when the onPanelChanged event occurs. The function needs to contain the two parameters for the LastPanel and NewPanel. You can call your sub within that sub or just make your sub the callback function however it would have to have only the LastPanel and NewPanel as parameter inputs.
-Navigate to Settings>>Options>>Extensions>>User Commands
-Add the script you created above
-Click Refresh and the script should be loaded
Ian M.
National Instruments

Similar Messages

  • Create Report Layout (Apex 3.2) - How can I set the substitution variables?

    Hi,
    I created a "Report Query" under "Shared Components". I now want to work on the corresponding "report layout". I created a "Generic Columns (XSL-FO)". I read the following in the documentation:
    The following are valid substitution strings:
    #PAGE_HEADER#
    #PAGE_HEADERFONT_COLOR#
    #PAGE_HEADER_FONT_FAMILY#
    #PAGE_HEADER_FONT_SIZE#
    #PAGE_HEADER_FONT_WEIGHT#
    #PAGE_FOOTER#
    #PAGE_FOOTER_FONT_COLOR#
    #PAGE_FOOTER_FONT_FAMILY#
    #PAGE_FOOTER_FONT_SIZE#
    #PAGE_FOOTER_FONT_WEIGHT#
    #PAGE_WIDTH#
    #PAGE_HEIGHT#
    #HEADER_BG_COLOR#
    #HEADER_FONT_COLOR#
    #HEADER_FONT_FAMILY#
    #HEADER_FONT_SIZE#
    #HEADER_FONT_WEIGHT#
    #BODY_BG_COLOR#
    #BODY_FONT_COLOR#
    #BODY_FONT_FAMILY#
    #BODY_FONT_SIZE#
    #BODY_FONT_WEIGHT#
    #BORDER_WIDTH#
    Where can I set the values for these substitution variables in my "Report Layout"? Could someone give an example? I can't seem to find documentation on this.
    Thanks!
    Francois

    Thanks for the tip however I'm not trying to do this through the print tab, I'm calling the report using the following get_print_document in pl/sql code:
    l_report_blob := apex_util.get_print_document(
    p_application_id => l_application_id,
    p_report_layout_name => l_report,
    p_report_query_name => l_report,
    p_report_layout_type => l_output_format,
    p_document_format => l_output_format,
    p_print_server => null);
    Where could I set these substitution variables ? I'm simply calling a report query and layout created under Shared Components.
    Thanks
    Francois

  • Where do you set REPORTS_ENHANCED_SUBSET=NO

    Where do you set the environnement variable REPORTS_ENHANCED_SUBSET=NO?
    is it in RWSERVLET.PROPERTIES?

    Hello,
    Yes , on Windows , put the variable in the registry :
    An example here : (It is for REPORTS_ADD_HWMARGIN but just replace REPORTS_ADD_HWMARGIN by REPORTS_ENHANCED_SUBSET)
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/envvars/envvar_reports_add_hwmargin.htm
    The name of the Registry key used by the Oracle executables is stored in the file ORACLE_HOME/bin/oracle.key
    Regards

  • Environment variables - where do we set them?

    We recently upgraded to Essbase 6.2.2 on AIX.Everytime we run a script our logs are saying:ESSLANG environment variable not setUsing default locale "English_UnitedStates.US-ASCII@Binary"...It is not causing a problem, but I was trying to find out where to set these 'environment' variables. I have looked for documentationbut cannot find any. I am just curious what other variables wemay not have set. Any info you have would be great!Thanks,Diane

    Normally in the .profile of the user arbor. However read the Configuration Guide for more details!Alexandru Draghici

  • Setting the value of an Application Item (setting a global variable);

    In APEX 3.2.0.00.27, I need to initialize a global variable to 0 to implement a variable for testing to see if anything on the page has changed. Will update to 1 when certain select lists on the page are changed. Have read through some similar questions and replies within the forum as well as other blogs and sites. So, I believe what I am doing is the way to go about this. Unfortunately, my initialization of an application item/global isn't happening yet. here's a rundown of what has been implemented:
    1) created an application item, G_CLASSIFICATION_ID_NEW in the shared components;
    2) created Javascript (JS) function called by addLoadEvent in the page html header region so when the page loads, the G_CLASSIFICATION_ID_NEW global/application item should get set to 0 with the following JS and using AJAX and htmldb_GET:
    <script type="text/javascript">
    function initVars()
    alert("before get initvars");
    var get = new htmldb_Get(null,$x('pFlowId').value,null,22);
    get.add('G_CLASSIFICATION_ID_NEW', 0);
    gReturn = get.get();
    if(gReturn){
    alert(gReturn.value);
    get = null;
    alert("after get initvars");
    alert("before call to initpage");
    addLoadEvent(initVars());
    </script>
    I've used the htmldb_Get with success for populating other global variables and running On Demand Processes with onchange JS calls in the html form element attributes within select lists on the page. Afterwards, I can check the globals via the Session window and searching on Application Items. Unfortunately, I'm missing something because my G_CLASSIFICATION_ID_NEW never gets populated when I load the page. The alerts all popup when the page is loaded, so I know the script is being executed when the page loads. the alert(gReturn.value) comes back undefined. And, needless to say, the G_CLASSIFICATION_ID_NEW to 0 is not occurring.
    I've tried the htmldb_Get with it calling an application process and without (set to null). From what I've read, you shouldn't need to call an on demand process to have the get.add set the global variable. Then again, this could be where I'm going wrong. however, as I've mentioned, this works for other functions called from an onchange to populate an application item, but the page has already loaded when the onchange(s) get executed. They may work because the page is already loaded when the onchange is called. My point here is that my other On demand processes are NOT setting or changing the global variables at all. The globals are getting set with the get.add(<app item>, <value>) portion of my other JS functions within the HTML Header region. So, I'm inclined to believe that I don't need the 'application_process=<some_odp>' parameter set, but if that's not true, please let me know. if so, what would need to be in the on demand process--ie, what would be the purpose of the get.add(<application item>, <value>) if I set the global variable in the on demand process because that's the only thing I could think of doing within an on demand process for this?
    If somebody can point out what I'm not understanding or failing to do here, that would be great. I'm doing fine with APEX, but wouldn't consider myself a guru with it just yet. I'm definitely not a JS/AJAX guru, and when things like this go astray, I get bogged down because I'm not sure of the problem. So, I'm hoping you gurus who monitor this forum can get me going in the right direction.
    thanks,
    bob

    Hi Jari,
    Does that javascript work if you place it some of region footer on page 22 ?Yes. I cut it out of the html header of the page, and put it in the footer of the first region on the page. It initializes the variable. Putting it into the footer of the first region on the page should work for me instead of having an extra region on the page that's being picked up from page 0.
    Is your page 22 authentication public ?No. This particular page is set for an ADMINISTRATOR only. That said, I am logged in as an administrator. So, I cannot see why setting authentication should make a difference as long as I have that authentication/authorization. Also, there will be other pages where I want to use this script or a similar script, but again, those pages will not be open to the public. the authentication will be "role" based where a user will not necessarily have to be an administrator, but they will have to have a certain role to access the page. Is there a known problem or something that precludes a html header JS script from doing an addloadevent when authentication is NOT public?
    thank you,
    bob

  • How to set a bind variable across the pages in a report

    I want to create a portal report where data will come from a table for a date range for a week.
    For e.g select event_date,last_name, event_name
    from RESOURCES
    where event_date between trunc(to_date(:curr_date,'DD-MON-RRRR'))
    and trunc(to_date(:curr_date,'DD-MON-RRRR')+ 7)
    The :curr_date is defined as a bind variable whose default value is sysdate.
    Now, when we run the report for the first time, it takes the :curr_date as
    sysdate and prints the report.
    I have two buttons in the report output like "previous week" and "next week".
    If someone presses previous week, the same report should run with curr_date
    as sysdate-7 and if someone presses next week, the report should run with
    curr_date as sysdate +7 and also the :curr_date sets to sysdate - 7 or sysdate + 7
    depending on the button pressed.
    Problem:
    How do I set the value of curr_date if someone presses any of
    previous week/next week.
    null

    Best to state your JDev version, and technology stack (eg. ADF BC) when posting.
    I can think of 2 approaches.
    1) Create a parent VO based on SELECT :bindVar FROM dual, then create links between your other VOs and the parent
    2) Create a AM client interface method that programatically sets the bind variable in each VO.
    Can you specify your use case? This one tends to come up when discussing effective from/to dated queries.
    CM.

  • Set DISPLAY environment variable -- in DBCA not working at AIX OS

    Hi,
    I want to create new database in AIX OS and database is oracle 10g:-
    When i say DBCA it is giving below error, what should i do?
    $ dbca
    DISPLAY not set.
    Set DISPLAY environment variable, then re-run.
    Please help...

    Pravin wrote:
    How to set the DISPLAY environment variable in AIX?Usual format is:
    +<host>:<display-number>+
    E.g.
    export DISPLAY=192.168.0.235:1
    Where the host is the hostname or IP address of the client platform running a X-Server. If the X-Server is running locally, then this entry can be omitted.
    The display-number is the display number of the X-Server to use. A single X-Server can have multiple displays. E.g. Unix server running a X-Server can have 10 users connected via X-Terminals and will this have 10 displays.
    Judging from X-Windows questions asked on OTN, it seems to be a tad complex to grasp for some - especially those from a MS Windows background as X-Windows is very different and also reverses the client-server concept, requiring the X-Server component to be running on the client platform (where the server platform runs the program that is the X-client).
    So it is a lot easier to rather use something like VNC instead - supported on most Unix platforms, Linux, Windows and Apple's OS/X.
    Simply run the VNC server on the server platform to create a virtual container for running the X-server display. Connect from a client using a VNC client.
    As it uses the RFB (Remote Frame Buffer) protocol, it is a lot faster than running the slower and larger X11 protocol required for X-Windows connectivity over TCP/IP.

  • SAP BEX Analyzer Set values for variables

    Please help us out in sorting out this problem,
    We are automating BEx Analyzer for a Testing Project with Quick Test Professional (QTP) a functional automation tool uses VB script.
    Problem:
    There are 5 steps in automation
    Invoke BEx Application
    Log in to BEx server
    Run Query
    Set values for Variables for Query
    Display Report
    We are able to do 1,2,3 steps using BEx API functions and running BEx macros but we struck up with 4th step,
    1. Invoke BEx Application
    ‘Launch Excel
    Dim app
    Set app = createobject("Excel.Application")
    ‘Make it visible
    app.Visible = true
    ‘Attach add-in to Excel file
    app.Run ("'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SetStart")
    2. Log in to BEx server
    Login to Bex server
    Function logonToBW(app)
    Dim myConnection
    Dim logonToBW2
    On Error Resume Next
    logonToBW2 = True
    ' Create logon to system with following user and system details
    Set myConnection = app.Run ("'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'! SAPBEXgetConnection")
    With myConnection
    .client = "600"
    .User = "USERNAME"
    .Password = "Welcom123"
    .Language = "en"
    .systemnumber = "00"
    .System = "BWDCLNT600"
    .systemid = "BWD"
    .ApplicationServer = "156.158.7.161"
    .SAProuter = ""
    .Logon 0, true
         If .IsConnected = 0 Then
               .Logon 0, False
    If .IsConnected <> 1 Then
    MsgBox "Automatic logon failed. Please enter your username and password in the next screen ..."
    Exit Function
    End If
    End If
    End With
    ' Run connection query to see if connected
    app.Run ("'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXinitConnection")
    logonToBW2 = True
    End Function
    3. Run a Query
    app.Run "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'! runQuery", "ZZCCA3_M01_Q0003"
    Till here the script is running fine then the “Select values for Variables” window is displayed.
    This is where exactly we struck up; in this window we need to select values.
    Name of the Fields
         Field Name     Technical name of characteristic     Variable Name     Value
    1     Company Code                     0COMP_CODE     ZM_COMPCODE     1000
    2     Cost Center Hierarchy          0COSTCENTER     ZS_CCTRN     1000MDON
    3     Cost Center Node     0COSTCENTER     ZS_CCTRN     1000COP
    4     Cost Element          0COSTELEMENT     ZS_COELN     1000GDON_6999
    5     Fiscal Year     0FISCYEAR     0P_FYEAR     2007
    To select values for variables, we are trying below code but its giving an error,
    app.Run  "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", “1000”, "0COMP_CODE"
    app.Run  "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", “1000MDON”, " 0COSTCENTER "
    app.Run  "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", “1000COP”,  "0COSTCENTER"
    app.Run  "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", “1000GDON_6999”,  "0COSTELEMENT "
    app.Run  "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", “2007”,  " 0FISCYEAR"
    Any help highly appreciated, thanks in advance.

    Hi Reinhard,
    Pleas look at this:
    Passing a range to SAPBEX.XLA!SAPBEXSetFilterValue
    Best regards,
    Eugene

  • How set a SESSION variable?

    How set a SESSION variable?
    There is a standard object where could do this?
    Thx in advance Roberto.

    >I'm not at all sure that you CAN change the portal language in the way that you want.
    >Perhaps you should repost this question in the portal forum.
    No i manage the language of WebDynpro myself, with tables from R3.
    I wanna do only a thing like HTTP SESSION variable from the WEB.
    I could do it, using java function of servlet, but i don't wanna use third packege out of WebDynpro FRAMEWORK.
    The isn't an OBJECT CLASS STANDARD od WebDynpro that do that?
    I wanna PERMANENT variable from a WebDynpro to another.
    It is an implicit variable passage.
    No one did something of similar?
    Bye
    Message was edited by: giovanni angerame

  • How to set the bind variable on page load and execute query ?

    Hi All,
    I am using Jdeveloper 11.1.1.5
    I have a table called "Employee"
    Columns :- id , name , location
    Data :- 1, ,james , chicago
    2 ,Raj ,capetown
    Now i have another webservice(created as a webservice dataControl) which sends me the "id" on each time my page loads.Now the id which has been returned by webservice should be incorporated in my VO Query as in where clause to fetch the data for the respective "id" in that "Employee" table and should be rendered on form.
    Eg :- Id "2" has been sent by the webservice then the record should be fetched from database should be "2","raj","capetown".
    I know that there would be necessity of bind variable , but how do i set the bind variable on page load ?
    How can i use the bind variable appropriately ??
    Please suggest !!!!
    Thanks.

    Hi,
    Check
    http://www.orastudy.com/oradoc/selfstu/fusion/web.1111/b31974/web_services.htm#CJADCDBG
    http://thepeninsulasedge.com/frank_nimphius/2011/02/18/adf-code-corner-sample-73-released-hands-on-creating-a-search-form-using-a-pojo-ws-and-the-web-service-data-control/
    -Suresh

  • Setting default environment variables.

    In HP-UX, I would set the HISTORY variable as follows:
    HISTFILE=$HOME/.sh_history
    HISTSIZE=500
    If it's working, I don't know how to use it...
    In HP-UX, <Esc><k> brings up previously executed commands.
    In Linux, the <Up Arrow> brings up previously executed commands.
    I've tried both of them, and a few other keystrokes, but to no avail...
    Any help would be appreciated...
    While we're on the subject of variables...

    Hi,
    Command History (vi mode)
    The fc command: a brief history lesson
    Take a look at the fc (fix command) man page. This command works almost exactly like the fc
    command in bash. You feed it the number of your
    previous history command and its execution is repeated. This command was actually introduced as
    history in the C shell, but has evolved
    since. By default, fc allows you to edit your previous commands with the ed editor (which can be
    changed by modifying the FCEDIT shell variable.
    Clearly, the Korn shell's command line editing features are more advanced and easier to use,
    however, there are three such cases where fc can be handy:
    Case 1: Repeating the Last Command Explicitly
    You may already be familiar with the fc operator "r" (bash/csh equivalent is "!!") which is a built-in
    alias that repeats the last command issued.
    Of course, if you prefer to use the !! syntax, you can use the following alias:
    alias !!='fc -e -'
    Case 2: Repeating the Last Command with Replacement
    If you're repeating the last command with only a slight modification, fc works great also. For
    example, suppose you ran this command:
    mv app-09.26.00.log oldlogs
    And you also want to move the file app-09.25.00.log to the oldlogs directory. In this case, you
    could use fc to accomplish your goal in less keystrokes.
    fc -e - 26=25
    or, you could use the Korn shell shortcut like this:
    r 26=25
    or even using the alias specified above:
    !! 26=25
    Case 3: [ESC]-v and Full vi Editing
    Alternatively, you can edit the entire command line with vi using the "v" command. This type of
    editing can be especially helpful for editing "for"
    or "while" loops that span multiple lines. This is actually another fc alias that edits the current line in
    full screen vi mode. However, since the
    command is executed immediately upon exiting vi, you should pay extra attention to the command
    syntax, especially when editing commands as root.
    Command Line Editing in vi Mode
    Instead of using fc to edit your previous commands, it's usually easier to use ksh built-ins in vi
    mode.
    You can use vi mode by setting the option like this:
    set -o vi (when in ksh already) OR ksh -o vi (when launching a ksh shell)
    In this mode, you'll want to get familiar with a few commands:
    Previous Command
    ---->
    [ESC]-k
    Use this key combination to access your
    previous command
    Next Command
    ---->
    [ESC]-j
    Use this key combination to access your
    next command (if applicable)
    Filename
    Completion
    ---->
    [ESC]-
    Use this key combination to complete a
    filename, or partial portion thereof
    Filename Check
    ---->
    [ESC]-=
    Use this key combination to show which
    files would complete the command at this
    point
    Caveats:
    There is no command completion in ksh88, though there is in ksh93.
    There is no tab completion in ksh88, though there is in pdksh and ksh93
    To use tab-complete in pdksh, you may need to use set -o vi-tabcomplete
    To use tab-complete in ksh93 you may need to use set -o viraw
    Commands can be editing using the standard vi editing keys, however, the arrow keys are not
    standard vi editing keys.
    There is no way (that I have discovered) to use arrow keys in ksh88
    Arrow keys should work fine in pdksh
    Arrow keys in ksh93 may need special key-bindings to work. Some samples are available
    here from www.kornshell.com.
    Finally, you can also find the last command you typed that included a certain string. This can often
    be faster than searching through
    previous command lines one at a time. To do so, use the syntax
    [ESC]-/string
    where string is the text string you're searching for. You can also use the "N" and "n" to move
    forward and backward in your searches, respectively.
    Other ksh Interactive Features (vi mode)
    Command-line Editing
    In conjunction with recalling your previous commands, you can also edit these commands.
    A subset of the most common editing commands are listed below.
    Forward One Character
    ---->
    [ESC]-l
    Backward One Character
    ---->
    [ESC]-h
    Delete One Character
    ---->
    [ESC]-x
    Replace One Character
    ---->
    [ESC]-r
    Forward End of Word
    ---->
    [ESC]-e
    Backward Beginning of Word
    ---->
    [ESC]-b
    Delete to End of Line
    ---->
    [ESC]-D
    Insert Text (current space)
    ---->
    [ESC]-i
    Insert Text (adjacent space)
    ---->
    [ESC]-a
    Move Cursor to Beginning of Line
    ---->
    [ESC]-^
    Move Cursor to End of Line
    ---->
    [ESC]-$
    Note: The [ESC] key is not necessary if you are currently in command-mode.
    Job Control
    Job control under the Korn shell actually works identically to job control under the bash shell.
    However, since its a very useful
    interactive shell feature, I'll summarize its uses here.
    Suppose for example you want to watch the system messages on a Solaris box, you might run this
    command:
    # tail -f /var/adm/messages
    But perhaps something isn't logging correctly and you need to make some changes to
    /etc/syslog.conf. You decide to send ^Z (suspend)
    to your tail process like this:
    ^Z[1] + Stopped (SIGTSTP) tail -f /var/adm/messages
    You still want the process to run however, so using the number in brackets, you send the process to
    the background like this:
    # bg %1
    [1] tail -f /var/adm/messages&
    Now, you're free to make your syslog changes, and when you're ready to return to your tail process
    you've forgotten which job it was.
    In this case, you would use the jobs command to see which jobs are tasked to the current shell like
    this:
    # jobs
    [3] + Stopped (SIGTSTP) ls -al /dev | more
    [2] - Stopped (SIGTSTP) find / 2>&1 > /dev/null
    [1] Stopped (SIGTSTP) tail -f /var/adm/messages
    Once you know what the job number is, you can return the job to the foreground using the
    command:
    # fg %1
    tail -f /var/adm/messages
    Note that if the job number is not specified the most current active job, indicated by the "+" is
    the default job. So, fg with no arguments would bring job 3 to the foreground.
    Alternatively, if you wanted to kill the job at this point, this could be accomplished by using
    the kill command in the following manner:
    # kill %1
    [1] + Terminated tail -f /var/adm/messages
    Thus, we can easily see how useful job control can be, especially if you have a limited number of
    login shells available.
    Revert back.
    Thanks.
    Senthilkumar
    SUN - DTS

  • Setting DISPLAY enviroment variable

    Hi,
    I want to run oracle wallet manager from my windows client. My application server is installed on the SUSE Linux Enterprise Server 9. I have given the following command to set the DISPLAY variable.
    export DISPLAY=192.168.100.159:0.
    Here is the output of the same. It gives some java exception error.
    Can anyone help me in setting the variable so that I can open wallet manager.
    Regards
    Trusha
    oracle@orclasg:~/OraBi/bin> export ORACLE_HOME=/opt/oracle/OraBi/
    oracle@orclasg:~/OraBi/bin> ./owm
    ****DISPLAY environment variable not set!
    Oracel Wallet Manager is a GUI tool which
    requires that DISPLAY specify a location
    where GUI tools can display.
    Set and export DISPLAY, then re-run.
    oracle@orclasg:~/OraBi/bin> export DISPLAY=192.168.100.159:0
    oracle@orclasg:~/OraBi/bin> ./owm
    Exiting
    java.lang.NullPointerException
    at oracle.ewt.lwAWT.BufferedApplet.<init>(Unknown Source)
    at oracle.sysman.emSDK.client.appContainer.WebApplication.<init>(Unknown
    Source)
    at oracle.security.admin.wltmgr.owma.OwmaApp.<init>(OwmaApp.java:109)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:308)
    at java.lang.Class.newInstance(Class.java:261)
    at oracle.sysman.emSDK.client.appContainer.WebApplication.main(Unknown S
    ource)
    Done.
    oracle@orclasg:~/OraBi/bin> export DISPLAY=192.168.100.159:0
    oracle@orclasg:~/OraBi/bin> ./owm
    Exiting
    java.lang.NullPointerException
    at oracle.ewt.lwAWT.BufferedApplet.<init>(Unknown Source)
    at oracle.sysman.emSDK.client.appContainer.WebApplication.<init>(Unknown
    Source)
    at oracle.security.admin.wltmgr.owma.OwmaApp.<init>(OwmaApp.java:109)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:308)
    at java.lang.Class.newInstance(Class.java:261)
    at oracle.sysman.emSDK.client.appContainer.WebApplication.main(Unknown S
    ource)
    Done.

    And what did you configure at the side of 192.168.100.159 which is supposed to be your client?
    I suggest you run VNC server on the server side ('vncserver') and set $DISPLAY to that. Next, use VNC viewer on your client machine to connect to the VNC server.
    Unless you have an X server running on your client machine of course.

  • Setting VO bind variable using session variable

    Hi,
    I need to get/set VO bind variable using ApplicationModuleImple or ViewObjectImple class. Does Any one know how to do it?
    I have one VO based on query like "select name from users where password = :password ". I had a bind variable to it too. now i want to set it from a session scoped variable. can i do it using ADFContext.getCurrent().getSession().get('username'); ? but somehow I am not able to get the knowledge i.e where to set bind variable. please help.

    Timo thanks for the reply, actually I don't want to do it using data control i.e drag and drop method to a page. Instead i just want to set bind variable to a session varable already got from login page.
    I got the following sollotion but don't know where to put them,
    1.
    FacesContext context = FacesContext.getCurrentInstance();
    ValueBinding vb = context.getApplication().createValueBinding("#{data}");
    BindingContext bci = (BindingContext)vb.getValue(context);
    DCDataControl dc = bci.findDataControl("AppModuleDataControl");
    ApplicationModule am = (ApplicationModule)dc.getDataProvider();
    AppModuleImpl service = (AppModuleImpl)am;
    ViewObject vo = service.findViewObject("YourViewObject").setNamedWhereClauseParam("nameBindVariable", objectValue);
    vo.executeQuery();
    what is the #{data} in second line ? if you know please let me know.
    Second Solution :
    2- In backing bean code:
    FacesContext context = FacesContext.getCurrentInstance();
    Application fapp = context.getApplication();
    JUFormBinding adfbc = (JUFormBinding)fapp.createValueBinding("#{bindings}").getValue(context);
    DCIteratorBinding iter = adfbc.findIteratorBinding("YourIterator");
    iter.getViewObject().setNamedWhereClauseParam("nameBindVariable", objectValue);
    iter.executeQuery();
    where would I get "YourIterator" ... ? I am still a new at jdev ... ;)

  • Set VO bind variable on page loading programmatically

    Greetings everyone!
    I use JDeveloper version 11.1.2.3.0
    I am currently trying to get some filtered data from a VO, based on a WHERE clause with a bind variable. This process should be done on page load. I have to set this bind variable with the id of the logged user (the part of getting this id is already achieved and used somewhere else). My current approach is defining a managed bean with pageFlow scope. Inside this i have a method in which i retrieve the id and i set it as the parameter value. The code snippet:
          BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("getUserIdFromUsername"); //getUserIdFromUsername is a method defined in the AppModule and exposed in the client interface
           operationBinding.getParamsMap().put("username", getUserName());
          Object userID = operationBinding.execute();
            setUserId(Integer.parseInt(userID.toString()));
           System.out.println("THE USER ID IS: "+getUserId());
           BindingContainer bindings2 = getBindings();
           OperationBinding operationBinding2 = bindings.getOperationBinding("ExecuteWithParams");  // i've dragged and dropped the ExecuteWithParams operation into the page
           operationBinding2.getParamsMap().put("userId", getUserId());  // userId is the bind variable which i'm talking about
            Object result = operationBinding2.execute();
    Then, i call this method on BeforePhase in the page view. It works, i get the filtered data and the println shows me the correct ID. The problem is that each time i select a row in the table showing the data, the page seems to reload and it always get the selection back at the very first row.
    What am i doing wrong? May be this is not the right approach, as i've seen some other posts about this topic but they are not very clear to me.
    Please advice

    Approach1:
    Drag and Drop an Application  method as Default Method Call Activity, then draw a control flow case from the method to your page.
    In the application module method, implement appropriate logic.
    Approach2:
    Using a combination of client listener and server listener will also help.
    <af:clientListener method="onLoadAction" type="load"/>
    <af:serverListener type="MyCustomServerEvent"
    method="#{backingBeanScope.editBean.onLoadListener}"/>
    function onLoadAction(event){
               /*alert(':::: onSave ::');*/
               AdfCustomEvent.queue(actionEvent.getSource(),
                             "MyCustomServerEvent",
                             true);
           actionEvent.cancel() ;
           actionEvent.stopPropagation();

  • Where does one set space after paragraph in the new Pages 5.0? It used to be under text in the Inspector in the previous version, but I just can't find it in this new version.

    Where does one set space after paragraph in the new Pages 5.0? It used to be under text in the Inspector in the previous version, but I just can't find it in this new version. Paragraphs seem to only be dealt with in styles, and the Formatting window for text doesn't seem to have the space after paragraph contrtol that the older Inspector had. What am I missing?

    Sorry I did this without looking:
    Side panel >Text > Style > Spacing > Turn the triangle > Before Paragraph/After Paragraph/
    This is the trouble with the Peeky Boo Contextual Interface that so many wiser heads than mine love to love.
    Peter

Maybe you are looking for

  • Unable to enter my youtube channel w IPAD,why? using Safari the youtube doesnt open,*** ?

    I am unable to enter my youtube channel with IPAD, using Safari the you tube doesnt even open! IM SERIOUSLY DISSAPOINTED w APPLE IPAD..and getting any help from this site is a seriously frustrating experience this will be my LAST Apple product unless

  • 806 routers don't work

    During my Cisco Academy days I bought the Cisco 806 Broadband Router - a fixed-configuration dual Ethernet platform. I turned the unit off for the summer semester and when it was turned back on - it no longer worked. The TX/RX lights on both the Inte

  • How do I delete a message?  Using Imap and gmail

    I am using imap with gmail in apple mail for leopard. I get the idea that when you press the delete button it only deletes the inbox tag and it is still available for reference in "all mail" on the left window. I like this, it allows me to clear out

  • Hi. how to create Subroutine Pool and call it from sapscript

    HI, Can anyone tell is there any standard subroutine pool available which could fetch the customer number.  how to create an subroutine pool and call it from the sapscript.. please help me Advance Thanks.. Guhapriyan.

  • Best compression of video for use within dvd studio

    i am doing a dvd with lots of 1 min clips to choose from - what is the best method to give me the highest quality of video within the project? do i use compressor's dvd settings or is there a better way to do it. thanks mr C