How can I use the procedure parameters here?

The problem in the following procedure is that the embedded javascript uses the parameter OBJ_NAME and OBJ_VALUE -> that doens't work.. how to solve this? It would be a pleasure for me if this procedure works! greetings Koen
PROCEDURE KOEN.PROC_SET_FIELD (OBJ_NAME IN VARCHAR2, OBJ_VALUE IN VARCHAR2) as
begin
htp.htmlOpen; htp.headOpen;
htp.p('<SCRIPT language = "JavaScript1.2">');
htp.p('for (i=0; i < document.forms[0].length - 1; i++)');
htp.p('{');
htp.p('var v_name = document.forms[0].elements.name;');
htp.p('if (v_name.indexOf("." + OBJ_NAME + ".") != -1)');
htp.p('document.forms[0].elements[i].value = OBJ_VALUE;');
htp.p('}');
htp.p('</script>');
htp.headClose; htp.htmlClose;
end;

Hi,
it looks as if you are creating a new page to hold your javascript.
the javascript must be on the same page as the form for the code to work.
put the PL/SQL to generate the javascript code into the "after generating the form" section in the portal form.
Regards Michael

Similar Messages

  • How can i use the boolean AND here?

    Hi,
    how can i use the boolean expression AND in order to include it in the expression below so as that 2 condition must be true in order to get the respective data from the database?
    java.sql.ResultSet res = statement.executeQuery("SELECT * FROM station9 " + "WHERE P =" + power);
    regards

    java.sql.ResultSet res = statement.executeQuery("SELECT * FROM station9 " + "WHERE P =" + power + " AND FLAVOUR = " + raspberry);

  • How can I use the procedures and functions in my library

    hello, all
    I have a pl/sql library MYLIB.pld, MYLIB.pll and MYLIB.plx.
    How can I invoke procedures and functions there in JDeveloper?
    Thanks.
    Damon

    I am indeed using ADF BC to re-develop the oracle application.
    Here is my situation:
    We have an oracle form application.
    Our objective is to try to re-use the existing sources in the form application as much as possible:
    1. tons of procedures and functions in a pl/sql library(a file with extension name portfolioLib.pll or portfolioLib.plx);
    2. tons of form-level triggers, data-block triggers and item-triggers;
    3. tons of database stored procedures and triggers;
    After doing a research on JDeveloper, we decide to use ADF Swing+ADF BC to re-develop the application.
    My opinion for the above three kinds of sources in our form application is:
    for 1: we try to move most of procedures and functions into database(except Form build-in);
    for 2: we try to wrap those triggers in a SQLJ class;
    for 3: we try to call database procedures and functions with PreparedStatment or CallableStatement;
    I just do a test on a post-query trigger on a data-block:
    I created a sqlj file, named testSQLJ.sqlj in the test.view package;
    I tried to call it in createInstanceFromResultSet of testDeptVOImpl.java which is test.model package,
    I was told that testSQLJ cannot be found there. why?
    How can I call some classes from test.view package in some classes of test.model?
    I read some documents about how to deal with post-query trigger in JDeveloper: create a view with SQL statement, but it seems that it does not support pl/sql statement there.
    Can you give me some opinion about the above stuff?
    I really appreciate your help.
    Damon

  • How can I find the procedures where I use a table?

    How can I find the procedures where I use a table?
    I need to look for it in all the users.

    select name,owner from dba_dependencies where referenced_name='table_name'
    and referenced_owner = 'schema'
    and type = 'PROCEDURE'
    Aravind

  • HT201328 My iPhone is from Japan and I want to activate it here in the Philippines because I'm living here. I have lost the original SIM from Softbank and replaced it with a new SIM card from Globe. How can I use the SIM card from Globe?

    My iPhone is from Japan and I want to activate it here in the Philippines because I'm living here. I have lost the original SIM from Softbank and replaced it with a new SIM card from Globe. How can I use the SIM card from Globe?

    You cannot. The iPhone is locked to Softbank, and only they can unlock it. Problem is that Softbank will NOT unlock the phone, as they do not offer iPhone unlocking.
    Buy an iPhone in the Phillipines.
    PS Before you go on a rant at Apple, be aware that Apple does NOT unlock phones and they do not set unlocking policies. The carriers (Softbank in this case) set the unlocking policy.

  • How can i used the "face time" is facetime is available here in the philippines?

    how can i used the "facetime",is facetime is available here in the philippines?

    Googling shows that FT is avaialbe in the Phillippines.  FT s prohibited in some middle eastern countries and iDevices officially purchased in thos countries eill not have FT and it can't be added back even if the iDevice is moved to a country that allows FT.

  • I have an Apple MacBook Pro with 2 USB ports and a MiniDisplay Port. I also have an HDTV with a HDMI port. How can I use the TV as a display without any tethering wires between my computer and the TV?

    I have an Apple MacBook Pro with 2 USB ports and a MiniDisplay Port. I also have an HDTV with a HDMI port. How can I use the TV as a display without any tethering wires between my computer and the TV? I have a MiniDisplay Port to VGA adapter, but there are two issues with it: The new display doesn't have a VGA port, and even if it did, I wouldn't want to have my mac constantly attached to the display by a cable. I was looking for a way to use the TV as a display without any wires. Is there some type of bluetooth setup I could use? Please let me know if you have any suggestions.

    As I wrote above, I think you should look into the Apple TV yourself. The best place to find information about what it can and can't do and to ask your own specific questions is probably in the Apple TV forum, here:
    https://discussions.apple.com/community/appletv/appletv

  • HT4314 I have a game under one account, now I have an Itunes card under a different account, how can I use the $$$ in the card for the game I'm playing, I need to purchase different items for my game.

    I have been playing a game for a while under an account, now I have an Itunes card under a different account and would like to use that $$$ to purchase items for my game, but it doesn't let me because the game was downloaded under the original account. How can I use the $$$ in my new account?

    same here but i cant purchase a movie or anything

  • How can I use the built-in Isight camera with an external camera (usb/firewire) at the same time?

    How can I use the built-in Isight camera and an external video camera at the same time?
    I'm wanting to stream over Oovoo/Skype/etc. using 2 cameras.
    Thanks

    Simple question with a not so simple answer.
    (a) If you mean that you want to run multiple apps simultaneously using a different camera with each app, you may encounter computing power limitations.  Digital video is processor intensive.  The only way to know if your Mac can do this it to try it.  If the video does not work together but each app works when it it the only app running, you are likely overloading your Mac's ability to process and/or move all the required data in your data bus.  You can get a better indication of whether this is the case by watching your Activity Monitor utility while running the apps you want to use.
    (b) If you mean that you want to have more than one compatible camera connected to your Mac simultaneously for ease of changing between video sources, some, but not necessarily all, apps you are using to operate your camera(s) allow you to select between your cameras.
    How you select among connected cameras depends on which application you are using. Here is how camera selection works in a few examples:
    (1) For iChat, you can choose which iSight you use in the "Camera:" choices bar in iChat > Preferences... > Audio/Video that appears when more than one compatible camera is connected. Although your camera choices will be different, the choices bar will look something similar to the Preferences settings shown here:
    If you cannot see the "Camera" choices bar, your Mac is recognizing only one (or none) of your cameras. In that case, consider the suggestions fromhttp://support.apple.com/kb/HT2090 for iSight problems or refer to your other camera's documentation for help.
    This particular choices bar solution applies ONLY to iChat. Most other applications also have settings that allow you to choose which camera to use. However, they do not all work the same way.
    (2) For instance, iMovie HD's camera choice is NOT set via Preferences. When you have more than one compatible camera connected, iMovie6 HD uses a drop-down menu choice something like this (depending on which version of iMovie you use):
    Note: Because I had no built-in iSight connected when I made this example, and because my external iSight was not connected, the drop-down menu showed only "Time Lapse." Because your Mac has a built-in iSight, your built-in iSight would show in the drop-down menu even when no other camera is connected. Connecting an additional Mac compatible webcam should allow you to choose either camera.
    Other iMovie versions work slightly differently.
    iMovie 9 (from iLife '11) uses a different camera choice button shown in this article:
      http://docs.info.apple.com/article.html?path=iMovie/9.0/en/mov39f84285.html
    iMovie 8 (from iLife '09) is slightly different as explained in this article:
      http://docs.info.apple.com/article.html?path=iMovie/8.0/en/10172.html
    In general, you can use your Mac's help for the application in use to find out how to select among more than one connected camera.
    (3) Photo Booth in Snow Leopard 10.6.x and later uses the Photo Booth > Camera menu command to select which camera to use.
    Note for readers with older Mac OS X: The previous version of Photo Booth that came with Tiger (10.4.x) is such a simple, basic app that it offers no menu selectable choice. Unless your built-in iSight is already occupied as the camera being used by some open application before you launch Photo Booth, Photo Booth will use ONLY your built-in iSight.
    However, you can use the trick from ¶ 4 of http://docs.info.apple.com/article.html?artnum=302781 to let Photo Booth use an external camera.
    (If you have an external Firewire camera connected, it may be used in preference to any USB webcam. If that is a problem for you, merely disconnect the problem Firewire device.)
    (4) For FaceTime, launch the app and click the Video menu item.
    If your Mac recognizes more than one connected compatible camera, a "Camera" section listing the cameras from which you can choose will appear there. Clicking on the desired camera name will let you select the one you want as shown in this image from my Mac Pro and LED Cinema Display:
    If your Mac recognizes only one compatible camera, the "Camera" section will not appear in the Video menu, but FaceTime will automatically use the connected camera that is recognized by OS X.
    (5) I do not use Skype oir Oovoo.  For those or other apps, see Help for each app for info on how to select your desired camera.
    Message was edited by: EZ Jim

  • How can i use the same front panel graph in more than one events in an event structure?

    i want to display the signals from my sensorDAQ in a graph.but i have more than one event in the event structure to acquire the signal and display it in the graph.the first event is to acquire the threshold signals and its displayed in the graph as a feedback.after the first event is executed, i will call the second event,where the further signals are acuired and compared with the threshold signals from the event 1.my question is how can i use the same front panel control in more than two events in the event structure?please answer me i'm stuck.
    Solved!
    Go to Solution.

    Hi,
    I have attached here an example of doing the same using shift registers and local variables. Take a look. Shift register is always a better option than local variables.
    Regards,
    Nitzz
    (Give kudos to good answers, Mark it as a solution if your problem is Solved) 
    Attachments:
    Graph and shift registers.vi ‏12 KB
    graph and local variables.vi ‏12 KB

  • How can I use the battery and let it be perfectly healthy?

    Hello everybody!
    I love this forum because everyone is a great helpful person.. .. However, I'd like to ask you couple things about the MacBook battery...
    I know that now the battery has been improved, it leasts longer and it can support 1000 charging cycles.
    (Right now I'm performing the battery calibration)
    I'd like to know how can I use the battery and let it be perfectly healthy.
    For instance,
    1) If I connect the laptop to the MagSafe and let it charge, when should I remove the plug from the Mac and when should I put it in charge? I don't wanna continously waste cycles and let my battery die too soon (it's too young to die! :-D ) .. I use it mainly at home connected to the MagSafe: someone tell that even if you leave the MagSafe connected after the mac has been charged it stops charging (I can see this), and others say that is not a good thing to let the mac connected to the plug for a long time... with the old model I used to disconnect the battery from the mac so I didn't have these problems but with the new one it's a long procedure...
    2) I usually use to calibrate the battery once a month... Is it a good thing?
    Thanks!
    Andrea

    Everything you need to know about your battery is contained in this User Tip from frequent poster neuroanatomist:
    http://discussions.apple.com/thread.jspa?threadID=1764220

  • I have a short 3d video with a separate black/white alpha pass, how can I use the alpha pass as a mask?

    I have a short 3d video with a separate black/white alpha pass, how can I use the alpha pass as a mask? I want to add a heat wave distortion to the whole video but not on the alpha pass area. How do I set this up?

    Track matte:
    http://helpx.adobe.com/after-effects/using/alpha-channels-masks-mattes.html#track_mattes_a nd_traveling_mattes
    Start here to learn After Effects:
    http://adobe.ly/AE_basics

  • HT4847 i have 5gb of icloud storage, used 2.5gb but it wont let me unlock the other 2.5gb of storage. How can i use the remainig 2.5gb of storage?

    i have 5gb of icloud storage, used 2.5gb but it wont let me unlock the other 2.5gb of storage. How can i use the remainig 2.5gb of storage?

    I got rid of AMDS, ASU ,QuickTime and iTunes from control ones I also found folder in Vista with D:\Users\Rick\Music\iTunes\Previous iTunes Library and there is one dated 2009-03012.itl. I moved this file up one folder and delted existing iTunes Library.itl. iTune still failed to identify my iPhone. There are other files iTunes Library Extras.itdb, iTunes Library Geniyes,itdn and iTunes Music Library,xml date dtd 06/18/2009 after upgrade except the latter which is date 06/23/2009. So something is not allowing me to pull or put everything back to when it worked.
    YES this is my only iPhone and only PC I have access to with iTunes.
    Here is what Apple gave to someone Sunday 28 June:
    http://discussions.apple.com/thread.jspa?threadID=2035950&start=75&tstart=0
    I checked these out too and they appear the same printed out nearly a week prior. I agree with Coach TO, if I had bad drivers or Vista errors it would not have shown up only when I updated to latest Version of 8.2.023. My Phone was identified on a PC with iTunes at the local AT&T store. He suggested I get phone into Recovery made while connected to iTunes and that resolves the problem 9 out of 10 time. Weak spot was he tried to get phone into Recovery without iTunes connection and thought I may have iPhone problem, then changed his mind when it worked while connected. He also stated it could take an hour. I have not tried to put my iPhone in Recovery lately, I think I did a while back and it failed to go into Recovery as error "iPhone detected by, not identified..."Has anyone tried forcing phone into Recovery? I understand you may lose all that is on phone. If iTunes still fails to identify would we not be in worse shape even if iTunes holds a recent backup which it does not for many of us? Will Apple take back or exchange phone if yours is not identitifed, AT&T today told me I had to go to Apple Store for this or anything to happen.

  • How can I use the CAN MODULE in LABVIEW 6i?

    How can I use the CAN MODULE in LABVIEW 6i?
    HELP ME! PLEASE

    Not sure what your real question here is, but I'll take a stab at it.
    The NI-CAN drivers (module) only work with the NI CAN cards. If you have a different vendors card, you'll have to contact them to see if they have LabVIEW drivers.
    If you do have a NI CAN card, then you just need to install the NI-CAN drivers and you're ready to go. Have a look at the examples for help in getting going.
    If you're having a specific problem, please give us some more details and we may be able to help out a bit more.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • How can i check the procedure execution time..?

    Hi All,
    Can any one of you tell me how can i check the procedure execution time..?
    Thanks in advance.

    if running it from SQL*Plus,
    SQL> set timing on
    Or from PL/SQL, use DBMS_UTILITY.GET_TIME before and after the call and calclate the difference.

Maybe you are looking for