How to set static item in PL/SQL

I know this may sound like a stupid quesiton but here's the issue.
I need a PL/SQL function that will set a application item, or page item etc. The items that need to be set are static items. Ex: P1_FIRST_NAME
I know if I use a PL/SQL function withing HTMLDB I can use the :P1_FIRST_NAME := 'Martin';... Problem is that you can not use that syntax if you store the function in Oracle itself.
So I need to know the syntax to set items.
Thanks.
M.

HTMLDB will also recognize variables using the format &VARIABLE_NAME. (with the period at the end). Have you tried this variable naming convention? Oracle may store it as it looks like a runtime variable.
I don't know if it will work for your scenario or not...
Adam Cumming
Marion County

Similar Messages

  • Strange Case..!! How 2 set an item as a master block to it's db items block

    Hello All,
    i have a question pls.
    ================
    How 2 set an item as a master block to it's related db items in the same data block; as follows:
    ============
    1-i have to enter the item's value ('LAB_TEMP' ) once then;
    2-the other related items in the same data block r changed record each time i navigate to the next record but this item is never changed in this case only if i re-entered another value as (master-detailed rel.). i tried to copy the value of this item to a display item called 'Temp' but it is changing according to the records frequency by default
    ===========================================================
    I tried the following code on when-new-record-instance & on post-changed Triggers as follows:
    ============================================================
    IF :LAB_TEMP IS NOT NULL THEN
    SET_ITEM_PROPERTY ('LAB_TEMP',ENABLED,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('LAB_TEMP',NAVIGABLE,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('TEMP',VISIBLE,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('LAB_TEMP',VISIBLE,PROPERTY_FALSE);
    :TEMP := :LAB_TEMP;
    ELSE
    SET_ITEM_PROPERTY ('LAB_TEMP',ENABLED,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('LAB_TEMP',NAVIGABLE,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('TEMP',VISIBLE,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('LAB_TEMP',VISIBLE,PROPERTY_TRUE);
    :TEMP := :LAB_TEMP;
    END IF;
    ============================================================
    even this generates unable to set enable property or visible prop. error
    ====================================================
    Someone help me with this pls.??
    ========================
    Thanks in advance,
    Regards,
    Abdetu..

    Hello everyone,
    This issue was solved as:
    ==================
    1-i created a separate db block
    2-created a text item called 'TEMP' with db=NO
    3-In the db block that i want to deal with it as:Master item to it's other related detailed items to that item which is called 'LAB_TEMP' ;
    * Copy value from property: TEMP.
    By this way i could entered a value i the ndb item called TEMP once & consequently this value is entered copyed 4 each new record i entered.
    This is an intial solution works fine at least 4 now, a Fried helped me with this i would like 2 share this info 2 others may be a new idea would help...
    Thanks always,
    Abdetu..

  • How to set the connection parameters for SQL

    How to set the connection parameters for SQL to access the MS Access database
    Attachments:
    Quick_SQL.vi ‏21 KB
    Doc1.doc ‏45 KB
    db1.mdb ‏112 KB

    Right-click the WINDOWS desktop, choose New->Microsoft Data Link. That will bring up a dialog that allows you to configure and test your database connection. You might connect to the Access database via ODBC or directly via Jet Engine. The Jet Enginge saves you the trouble of creating an ODBC connection on your PC. After you leave the dialog, the "data link" will show up on your desktop as text file. Open it and copy-paste the connection string to your VI.
    This webpage is an excellent resource for connection strings: http://www.able-consulting.com/ADO_Conn.htm
    If your application requires users to change the database connection at runtime, you can also include the dialog via ActiveX (MSDASC.IDataSourceLocator).

  • How to set an item when I redirect using OWA_UTIL.redirect_url

    I am using OWA_UTIL.redirect_url to redirect users.
    but I am lost in how do I set an item doing this. I have an item called :P101_MSG and I want to set it to 1.
    I added &:P101_MSG=1 this: OWA_UTIL.redirect_url ('f?p=&APP_ID.:101:&SESSION.*&:P101_MSG=1* ');
    but that was wrong.
    Can someone tell me the syntax to set P101_MSG=1 when I redirect.
    Howard

    Hi
    I'm not quite sure of what you're doing or where you are but this isn't how you set APEX items in the URL.
    See this example
    f?p=:&APP_ID.:&APP_PAGE_ID.:&APP_SESSION.::::P1_ITEM1,P1_ITEM2:A,BThis sets item1 = A and item 2 = B.
    Is this what you mean (make sue you get the number of colons correct...
    Cheers
    Ben

  • How to set the item property to restrict the user to not to copy from above

    Hi Guru's,
    I have a requirement like, There were two items on the form name email Id, Confirm email Id.
    I have to ristrict the user to not to copy from email Id item.. make him/her to enter the value into confirm email id item field manually.
    How to set the item property to restrict the user to not to copy from above item and paste it in this item.
    Please help.
    Thanks!!

    Just an opinion here, but that is about the dumbest requirement I have ever seen.
    I am always annoyed by web sites that ask me to enter my email twice. I ALWAYS copy the email address from the original entry and paste it into the second one.
    People enter their email addresses so often, it takes a real klutz to not get it right. And what makes you think that if they enter it twice, that they won't enter it wrong both times anyway???

  • How to set static IP for C4599 printer ???

    Was afraid if we clicked 'answered' <per 'answer' below> we may never get an answer to a followup question to 'PrintDoc'  at http://h30434.www3.hp.com/psg/board/message?board.id=Networking&thread.id=5277 .
    Hopefully this re-post will help.
    Question/s...
    1. When trying to set 'static IP', and click on 'this' link ( http://h30434.www3.hp.com/t5/forums/replypage/board-id/Networking/message-id/NetGear%20'RangeMax'%20... ) at your email < below> get...
    "An Unexpected Error has occurred."
    2. Also, getting printing error after HP Director shows C4500 wireless connected and starts printing.
    At 'Component Services' / 'Event Properties' shows...
    "The document http://wwwapps.ups.com/WebTracking/processInputRequest?HTMLVers owned by Alan failed to print on printer HP Photosmart C4500 series (Wireless). Data type: NT EMF 1.008. Size of the spool file in bytes: 48960. Number of bytes printed: 0. Total number of pages in the document: 2. Number of pages printed: 0. Client machine: \\AKM. Win32 error code returned by the print processor: 2250 (0x8ca).
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp."
    When click on 'events.aps' link get...
    'Event Viewer' showing 'xpsp2res.dll' file info ?
    Does #2. have anything to do with 'IP' question, and will 'static IP' fix ?"
    Please advise.
    Thanks much.
    Original answer...
    10-13-2009 10:03 AM
    PrintDoc 
    Master's Graduate
    Posts: 1383
    Registered: 08-19-2009
    Message 8 of 10
    Viewed 481 times
    Re: C4599, wireless Error-Printing, unable to 'communicate' with the device ???
    Sure we can set a static IP (actually we are going to reserve an IP address - even better).  But first, please mark the post that helped you solve the problem as "Accepted Solution".
    Connect to the wireless router by typing the IP address of the wireless router in the address field of your browser, then click Enter. 192.168.1.1 is the default IP address of the wireless router. The wireless router will prompt you to enter the user name of 'admin' and the password. The default password is 'password'.
    See the procedure on page 8-16 of this < http://h30434.www3.hp.com/t5/forums/replypage/board-id/Networking/message-id/NetGear%20'RangeMax'%20... > document to reserve and IP address for your printer. 
    You will need the MAC address of your printer (this is on the Network Config Page you printed from the front panel of the printer).
    (Although I am employed by HP, I am speaking for myself and not for HP)
    Original Posters - please mark the post that solves your problem as "Accepted Solution"
    Thanks again for your help !
    akm (XPproSP-3,IE-7,Office2003)
    This question was solved.
    View Solution.

    Thank you for the followup. 
    Just got back to this thread after trying what you suggested re new install program.
    Months ago, when originally tried to install new C4500, spent weekend, literally 4hrs on a Sat and 4hrs the following Sun with HP support on the phone trying to get C4500 wireless to work.
    Finally downloaded a new install program and after installing that and making other numerous setup adjustments, which I cant remember, it worked (the only saving grace for the time spent) for a while.
    But for the sake of trying, we did put in the original disk, just like page 4 (or our original paper manual) instructed (per your last post).
    The disk loaded and the program did its thing and then get...
    "A newer version fo this software is alredy installe on you HP HPPhotosmare C4500 series computer."
    So clicked 'finish'.
    Then loaded...
    PS_AIO_04_C4500_USW_Full_Win_enu_120_210_NB.exe
    ...which we thougth was the new installer program which we downloaded those months ago (same one you suggested).
    Started the '4 step' process.
    Got to 'step 3' and it connected to printer with usb cable.
    Along the way got message from 'network diagnostics'...
    "The PC and the printer are connected to different networks(192.168.1.0 and 192.168.0.0).  They must be connected to the same network.  This can happen when you use the manufacturer's default network name (SSID) and another nearby network is using the same name.
    The gateway address of the printer does not match the network to which the printer is connected. Reconfigure the setting on your printer to match."
    Tried changing ip addresses at network settings, but no help.
    Clicked on disregard and proceed.
    Started 'Network diagnostics' and got...
    HPPhotoshopEssential 'install' bar window.
    Either way, disk or new install program, get pop-up window with message...
    'The feature you are tryong to use is on a CD-ROM or tother removabledisk that inot available. Insert the 'HPPyotosmartEsesential' disk and click OK."
    Moved HP .msi and .cab files to same directory with ...NB.exe file.
    Install went ahead, and then needed 'setup.exe'.
    Opened setup.exe at disk and install went ahead.
    Installed latext updated 'HP Solution Center'.
    It showed both the C4500usb and wireless, but still wireless not 'connected'.
    Ran diagnostics and got same 'diagnostics' message as above.
    Made sure hardware enabled etc.
    How to fix ? 
    Thanks again for your help !
    akm (XPproSP-3,IE-7,Office2003)

  • Help me how to set charset UTF-8 in SQL Server 2000

    Hello guys,
    Pls anyone help me out from "how to set the charset UTF-8" in SQL Server 2000.
    How do i find the default charset in that?

    SQL Server 2000 uses UCS-2/UTF-16 encoding.
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsql2k/html/intlfeaturesinsqlserver2000.asp

  • HOW TO SET A ITEM DEFAULT VALUE  to today

    I have a item using select list and I like to set this item default value as
    today's date , such as "select to_char(sysdate,'YYYY-MM-DD') from dual"
    HTMLDB failed recongnize the default value, or throw error Error ERR-9132 Error in PLSQL expression for item default code, ...". I have tried each of 3 avaialable Default Value Types
    Per http://forums.oracle.com/forums/thread.jspa?messageID=443287, it is used to be doable, but the default value type (sql) is no longer avaialble in HTMLDB 2.0
    I would appreaciate it very much if anyone has successfully done this before, either set to today or current month

    Ching - Did you try a PL/SQL Expression using to_char(sysdate,'YYYY-MM-DD')?
    There have been no changes to the item default types available in HTML DB. The thread you referenced is for Oracle Portal, a separate and unrelated product.
    Scott

  • How to set static IPv6 address/gateway in Arch (NOT tunnel)

    Hey Everybody,
    Today I decided to install Arch Linux. There was only one thing that I did not understand, and that is how to set up a static IPv6 address. I have native IPv6 connectivity at home and in Debian I used to edit /etc/network/interfaces to set up a static IPv6 adress. Since Arch uses rc.conf, what is the syntax to configure a static IPv6 address?
    I used to add something like this in Debian in /etc/network/interfaces:
    > iface eth0 inet6 static
    > address *my static address*
    > netmask 64
    > gateway *my gateway address*
    Or can I still use /etc/network/interfaces in Arch?
    Thank you for help.

    It can be done quite easily using the netcfg infrastructure.
    /usr/lib/network/connections/ipv6static
    #!/bin/bash
    . /usr/lib/network/network
    ipv6static_up() {
    load_profile $1
    ip -6 a a ${ADDRESS} dev ${INTERFACE}
    if ! [ -z "${GATEWAY}" ]
    then
    ip -6 r a 2000::/3 via ${GATEWAY} dev ${INTERFACE}
    fi
    ipv6static_down() {
    load_profile $1
    ip -6 a d ${ADDRESS} dev ${INTERFACE}
    if ! [ -z "${GATEWAY}" ]
    then
    ip -6 r d 2000::/3 via ${GATEWAY} dev ${INTERFACE}
    fi
    ipv6static_$1 $2
    exit $?
    /etc/network.d/eth0static
    CONNECTION="ipv6static"
    DESCRIPTION="Static configuration for IPv6"
    ADDRESS="2001:dead:beef:cafe::1/64"
    INTERFACE="eth0"
    GATEWAY="2001:feed:dead:beef::1" # Comment this out if no route needed
    I haven't tested the gateway part, but I don't see why it wouldn't work. You'll need iproute2, and to read up on netcfg (see http://wiki.archlinux.org/index.php/Network_Profiles) if you have trouble.
    Last edited by gunkaaa (2009-09-02 05:19:36)

  • How to set first Item in combobox

    Hi all,
    I am struggling to find out how to set the first item of the
    combobox as say "Select" because the fields i display in the
    combobox
    are optional for the user to select.
    I have in the dataprovider of combobox set to an
    arraycollection populated by a call to fill method.
    But these items should be displayed below "Select".
    Can anyone help me on this.
    Thanks,
    Lakshmi

    Hi
    Try
    yourcomboxox.prompt = "Select";
    yourcombobox.selectedIndex = -1;
    http://livedocs.adobe.com/flex/201/langref/index.html?mx/controls/ComboBox.html&mx/control s/class-list.html
    HTH
    John

  • How to set static IP for Deskjet Ink Advantage 6525 printer ???

    Hello,
    I try to set static IP address,but when i put the IP address from network configuration page in the browser's address bar ,can't find anything.

    Hi,
    Can you ping it ? It may not have anything in there for browsing.
    Updated: Well actually I use my printer and it shows many things - left side:
    Please refer to the following link:
         http://h30434.www3.hp.com/t5/Printer-All-in-One-Install-Setup-e-g-Windows-8/HP-Photosmart-6525-reboo...
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to set active item in a static combobox

    How can I set a specific item as the current item in a static
    combobox? Can't seem to find the right property/method for
    it.

    I know this is an old posting but the solution here dosen't
    seem to work on the fly.
    What I mean is I've created back and forward buttons to
    enable an alternative selecting method to display impoted swf's.
    I want to update the comboBox display to match the sequence
    that occurs by using the forward and back buttons.
    I have done this in Javascript but don't know how to in Flash
    8
    Thanks Rick

  • How to set the timeout to execute sql by jdbc?

    Connection con = getConnection();
    Statement stmt = con.createStatement();
    stmt.execute("update table1 set colum1='abc' where key = '1' ");before run this java class
    I exectue the sql(update table1 set colum1='abc' where key = '1' ) in sqlplus
    but not commit.thus the database will lock the item .
    then I run the java class.
    so the class will waite the sqlplus commit.
    I want kill the run thread when the java class waite 1000 seconds.
    how can I do?

    o
    I have tried it.
    but it seems the method can not work well
    if I use
    stmt.setQueryTimeout(30) the jdbc operate will be cancled after 4 minutes not 30seconds

  • How to set the CLASSPATH for an  Sql Server 2005 database... help me please

    Hello! Guys I want to access a Sql Server 2005 database from Java.I've downloaded the JDBC 2.0 driver from Microsoft.I've copied the sqljdbc4.jar file to C:\Java\jdk1.6.0_14\db\lib.And I've added this to the classpath C:\Java\jdk1.6.0_14\db\lib\sqljdbc4.jar.The classpath variable is defined as a user variable.Well the point is that I get that nasty exception:Exception in thread "main" java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver.So if you know how to help me,please do so.Thank you :)

    Hi Timo,
    My jdev version is 10.1.3.3.0, this is for R12. By PR i mean to say process request and PFR process form request in the controller.
    In the Process request of the controller, i am finding the checkbox bean and assigning the firepartialaction for it.
    Later in the process form request for the fired event, i am trying to handle the rendered property of the messagetextinput. Is this a right approach?
    my code below
    public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processRequest(oapagecontext, oawebbean);
    OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
    OAMessageCheckBoxBean oamessagecheckboxbean = (OAMessageCheckBoxBean)oawebbean.findChildRecursive("X_FLAG");
    if(oamessagecheckboxbean != null)
    oapagecontext.writeDiagnostics(this, "Message check box Bean found:", 1);
    FirePartialAction firepartialaction = new FirePartialAction("change");
    oamessagecheckboxbean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR, firepartialaction);
    oamessagecheckboxbean.setFireActionForSubmit("change", null, null, true);
    oapagecontext.writeDiagnostics(this, "setting fire event", 1);
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processFormRequest(oapagecontext, oawebbean);
    oapagecontext.writeDiagnostics(this, "Inside Process Form Request", 1);
    if("change".equals(oapagecontext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    OAMessageTextInputBean bean = (OAMessageTextInputBean)oawebbean.findChildRecursive("X_NUMBER");
    if(bean!=null){
    bean.setRendered(Boolean.TRUE);}
    Thanks,
    Malar

  • How to set static value as output

    Hi all,
    It seems like this should be Discoverer 101, but I can't figure out how to do it.
    I'm creating a report that will, in essence, create input for a API interface to load SITs. There are certain columns that will have a static value for all records and others where I just need the column with a null value. Taking a look at the functions, there doesn't seem to be one that will just let me specify the value.
    Can someone help? It seems like this should be easy.
    Thanks in advance - J

    You should be able to create a calculation like:
    'MyStaticValue'or use the static value you want. Include the calculation in the report, and you are all set.

Maybe you are looking for

  • Can I Create A Data Entry Form with iWeb?

    I want members of my club to be able to make data entry selections each week directly to my web site via a data entry form, and have those entries stored for my retrieval and later posting. Can this configuration be set up in iWeb? Thank you in advan

  • Get chart Values

    Hi experts, I want to retrieve the date value from this graph and I've been wondering is there a way to retrieve a chart axis value without using the model? I tried to do this: var model = sap.ui.getCore().getModel("dataQuery"); // dataQuery is my mo

  • Accept IDOC function module.

    Hi Experts, I am new to IDOCS. I have to update one already written function module to accept IDOC in SAP from external system. In the function module I see some IMPORT parameters like 'input_method' and 'mass_processing' and EXPORT parameters like '

  • No Role

    What would be the consequences of implementing the BI reporting without using the role-based approach? Can the workbooks be transported to BIP without using the role? How would you convince the users that they will have to create workbooks and attach

  • Inprocess Inspection - Change of status INSP to REL

    Hi Friends How to change the status of Inprocess Inspection lot from INSP to REL? Waiting for the response. Thanks Sachin