Why item level validation can only execute function but not procedure?

Dear all,
When execute my form, some parameter values will be passed to the text items.
Those values are the procedure name or function name for that particular item which are already defined in a package and those items are non-database items.
Suppose a particular item can be validated by a procedure or function. It depends on what value is passed into the program.
If the item when-item-validation is triggered, that corresponding procedure or function will be executed by calling the following codes A) or B):
A) EXECUTE IMMEDIATE 'BEGIN' || procedure || '(:1);END;' USING v_value;
OR B) DBMS_SQL.EXECUTE(...)
Basically, the form is working fine except 2 blocks which can only accept Function, i.e. only fired the function but cannot fire the procedure. Actually these 2 blocks are similar to the others blocks and they are also non-database blocks.
I am using Form10g.
Anyone have idea for that? Thanks for advance.
Regards.

You cannot use Execute Immediate in Forms. You have to do that on the server in a stored procedure.
You should not use DBMS_SQL either. In Forms, you use EXEC_SQL, which is almost the same, except for the error handling. And it is VERY slow, since you make a number of calls to it, plus one for each variable passed.
Now... if you call a function, it must return a value. If you write code to dynamically call a function, this process must be complex enough to handle the returned value. The same occurs if your procedure that you call has any parameters. If there are no parameters, then it would be simpler.
If you want dynamic function or procedure processing, then I would suggest you just pass the value being validated plus the table.column name to a server-side stored procedure or package, and do all the processing on the server.
Good luck... it won't be easy.

Similar Messages

  • I can only import SD, but not HD

    I just got a new iMac for christmas with Leopard and the new iMovie, which supports AVCHD. However, when I try to import my movies into iMovie, it only gives me the option to import my SD videos. I can't even see my HD videos.
    So, I was wondering how I can import my SD videos AND my HD videos, or perhaps, why I can't.

    I have a similar problem....I am trying to import HD footage from my external drive into imovies HD. When I import the footage, I am unable to view it. The clip is there, but it will not display anything other than a black screen. I have a G4 Powerbook. The footage was imported into final cut pro on a G5, then copied over to my external drive for me to use on my computer. I have changed the video type to HD 1080 when creating the movie???
    Any help would be appreciated!!

  • Save a pdf with security so vendors can only import & print but not extract?

    We submit ads to newspapers all the time in pdf format...the newspaper imports the pdfs into their page layout program (Quark) for printing...currently we do not put any security on the pdfs because the vendors can not import the pdf into their page layout program Quark with security on.
    Is there a way we can set security so the only thing the newspaper can do is import the pdf into Quark (or a page layout program) and print?
    We would like to restrict the use of exporting artwork and copy from the pdf as well as saving the pdf as different formats.

    We just launched a new DATING SITE! Meet singles from all over the world! FREE registration for the first 500 users! Register now and find thousands of great singles in your area! Visit www.NYDateNet.com

  • Why a SAN switch can see vHBA WWPNs but not WWNN?

    I have setup UCSM but the SAN switches (EMC) could only see all the WWPN on each server's vHBA, not the WWNN. They are all UCS B200M2 model. I saw the WWNNs are already assign to all service profile as shown in the storage tab.
    Has anyone encountered this before? I am digging my head for more than 2 hours but no clue.
    Rebooted the blades, disassociate/reassociate blades, re-ack blades, unbind/rebind vHBA templates on the server's vHBA had been done but no luck
    Appreciate for any help here.
    kind regards,

    Simon is correct. In UCSM is where you would only see the WWNN under the storage tab. You are only zoning the WWPN. If I may ask, what reason would you need to see the WWNN if the paths to the HBA is being seen?
    Just curious?
    Sent from Cisco Technical Support iPhone App

  • ICal published on a server can only be subsuscribed, but not be viewed

    Hi have built iCal into an iframe on my website. For testing I used MobileMe, which worked without problems. But now I would like to store the .ics on another website. I could upload the file through iCal, but if I visit the website, Safari downloads/subsuscribe the .ics. I cannot view the Calender inside the website. Hope you undestand my problem. Any ideas and suggestions.
    Best regards Martin

    Thanks for your reply.
    What I´ve made first:
    Build an Webside in Dreamweaver. Add an iframe there and an html snippet for my iCal Calender. Then I published my Calender through iCal and mobileme. After that, iCal gave me 2 adresses. One for subsuscribe:
    webcal://ical.me.com/my.name/Calendername.ics.
    And one for viewing in a browser http://ical.me.com/my.name/Calendername
    I copied the secend one and paste it in my iframe. Thats worked great. On my webside I could see my iCal dates. This was by publishing on my mobileme account. If i publish on "another server" I only recieve the message/url for subsuscribe.
    My english is not the best hope it is al ittle bit clearer. Thanks

  • Item Level Validations on Submit

    Hello guys,
    I would like to use Item level Validations but I have a problem. When I submit the page from a button the Item Level Validations automatically fire, can I not run the item validaitons when a specific button is pressed and not 'on submit'? If so how...
    Thanks in advance
    Spam

    Hi "user502286",
    in APEX 4.0 you have more control if validations (also the built-in one for required) should automatically fire during submit or not than in previous APEX versions. It's all about the two new settings
    -) "Execute Validations" which is available in the "Action When Button Clicked" section of a button and
    -) "Always Execute" for validations
    Please consult the field level help for this attribute to find out how they should be set.
    Hope that helps
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Adding item level validation to a field

    Hi All,
    I am new to Oracle APEX.
    I have a field named semester_code in my page and I want end user to enter only alphanumeric values. I want to create item level validation using regular expressions, but I don't know what expression to write for this purpose.
    Any help will be highly appreciated.
    Thanks
    Bilal

    Hi,
    Go to the validations section of the application builder (for the application you are working on)
    -> add item level validation
    -> select the field that you are trying to validate
    ->item string comparison
    -> select 'Item specified is alphanumeric' from list
    Chris

  • Re:  "Item category K can only be used without account assignment"

    Hi,
    while creating PO from PR the following error is coming.
    "Item category K can only be used without account assignment"
    How to solve this
    Regards,

    Hello,
    Item category K cannot be used with an account assignment as the goods are not physically used in the company. The stock is stilla consignment stock and belongs to vendor. Using an account assignment will book the cost in the company's expenses.
    use an account assignment if required when you transfer from consignment to own stock.
    Hope this helps,
    Regards,
    VS

  • Item category S can only be used with account assignment category

    Hello Gurus,
    When i tried to create a PO then error "Item category S can only be used with account assignment category" is coming
    for my plant and material.
    Could you please tell me where i have to maintain the setting of account assignement for a plant or material.
    In TA:-OMG0 item catergory S is maintained for a account assignement F but still this issue is coming.
    I think there is a problem in plant or a material.
    Please help me.
    BR

    Hi,
    How you are creating PO  ,so that you have error "Item category S can only be used with account assignment category"
    Check what t.code used for your PO creation and what document type used for your PO creation- which result defaulting item category S which in turn asking for  with account assignment category.
    Cross check transaction variant or screen variant used for your PO creation!
    Regards,
    Biju K

  • Why Adobe CC software can only show regular font weight for some fonts?

    Why Adobe CC software can only show regular font weight for some fonts?
    I can use those fonts in different font weights in the CS3 in the same computer; however it doesn't work on CC.
    Anyone can help~

    And have you applied the patch at Crash | Launch, selecting Type tool?

  • "Partner function CA can only occur 1 times in procedure TA (Sales Document

    Dear Experts,
    I have a requirement where I need to capture the Partner function more than once....
    Say  i need to capture the two or more commission agents in one sales order....
    But when I enter the second comm agent the system triggers
    "Partner function CA can only occur 1 times in procedure TA (Sales Document Header)
    Cheers

    Hi,
    Go to VOPA....
    1.Create Partner Functions as many as required....say PF1,PF2 and so on...
    2.Assign all the partner functions to the account group.
    3.mark the partners as mand or notchang in the procedure details....
    Once u r done with this u can add the PF1..PF2 .....in the customer master/sales doc....
    Hope this will help u.
    Thanks
    Ivy

  • Why my MDM Server can only communicate with ipads and iphones with logging Junos sslvpn.

    Why my MDM Server can only communicate with ipads and iphones when either of the iPhone or iPad Junos sslvpn?  Any ideas
    Our iPad and iPhones users have to log in to Junos SSLVPN to be able to communicate with our MDM Server (via wi-fi).  Any ideas where users don't have to log in to Junos SSLVPN?

    This bothers me so much. It is absolutely ridiculous. I use my Apple ID as well as a family member's Apple ID to download music.
    Every once in a while I will purchase a song and it won't download correctly or will give me an error that my computer is not authorized, a solution I usually fix by deleting and redownloading the song from the cloud. This doesn't work, however, when it happens to both accounts within 90 days.
    It is incredibly frustrating to me that I have paid for a song, it downloaded incorrectly, and I must wait 90 days to try downloading it again because of these assinine policies.

  • HT201274 why is it i can only see an apple logo on my phone.?please help

    why is it i can only see an apple logo on my phone.?please help

    Try this   Hold down home button and power button at the same time while connected to itunes

  • HT203551 why can't I send E Mail with my I Pad?  Why is it I can only receive?

    Why can't I send E Mails from my I Pad? Why is it I can only receive?

    We need more information, like...
    1)  what email account (is it just iCloud's @me.com/@mac.com or do you have a problem with any other email accounts, like google)?
    2)  What happens when you try to send an email?
    3)  Did you formerly use MobileMe - if so, did you remove the account in the mail app and create a new one to iCloud?

  • "You can only rename functions and variables"

    G’day
    I have this:
    <!--- this comment breaks it --->
    <cfloop from="1" to="5" index="idx">
    <cfoutput>#idx#<br /></cfoutput>
    </cfloop>     
    If I select "idx" and go right click > refactor > rename, I get a popup saying "You can only rename functions and variables."
    If I take the comment out... works fine.
    Weird.
    Adam

    i have a problem to opening my firfox home page . help me please

Maybe you are looking for

  • Since one of the updates of firefox it is not possible to add a document to my email i.e. Telfort.nl

    Since one of the latest updates of firefox it is not possible to add a document to my email account i.e. Telfort.nl I checked with Telfort and no problems of this kind is known.

  • Clients can not obtain an ip-address via DHCP.

    HI all, I would like to share one problem with WLC 5508 . we added a new virtual interface on the WLC. One new SSID is associated with this interface. We created a ACL for this interface to restrict the access via WIFI to certian services. The follow

  • Custom Clickable Charts Objects and Legends

    Hi, The Requirement is a little bit weird but urgent as well . Well all I need is a complete flexible chart where each element on x-axis or each element on y-axis is clickable. Also, considering I am using a bar chart. I would want to click on the ba

  • Forward Inbound - IDOC process

    Has anyone used this option WE45- forward Inbound for  inbound IDOC automatic processing? <b> The help says "Specify a job as a logical address for forwarding the data from an inbound IDoc or from a status confirmation".</b> But need more details if

  • Data Flow Task is not executing in the package

    I have a package in which I have a Data Flow Task which will load the data from Excel file to SQL Table. The Data Flow Task is executing and loading the data if I execute that particular task only. But when I run the whole package, the data is not lo