Forms standard coding technique

Hi:
Thinking in terms of efficiency I need to check for the existence of a value in a database table E.g. in a W-V-I trig
CURSOR c1
IS
SELECT 'X'
FROM TAB_A
WHERE COL_A = :blockA.itema;
IF ( c1%NOTFOUND THEN )
show_alert('Does not exist...blah blah blah....');
CLOSE c1;
RAISE Form_Trig.....;
END IF;
Now in a Post_query trigger I would usually place a function in a Package to return a description for say Cust_Id.
But is it worth creating a BOOLEAN (packaged) function just to check for the existence of a row like in the example above ?
I am of the opinion that no client side explicit cursors should exist in forms modules no matter how simple they are. Does anyone agree ?
Let us know your comments.
Pradeep.

By the way are you a forms developer for Oracle Corp?Nope. Just a government (university) employee.
I like to use a Form Level W-V-I .. depending on trig
block then fire a seperate unit for validating items
in that block e.g.Yes, I sometimes put all of a block's WVI triggers into one at the block level. Don't know, though... it gets ugly sometimes. I usually create separate procedures within the enclosing Declare-Begin, and name them Edit_Name, Edit_Street, Edit_Phone, etc, and then call them from a main processing block in the trigger.
Declare
v_it VARCHAR2(50) := :SYSTEM.TRIGGER_ITEM;Sometimes, I add this:
Val varchar2(100) := Name_in(:System.Trigger_Item);
Then I can check
If VAl is null then...
---- Second message:
Just to go ‘deeper’.
What about when an implicit cursor checks for
TOO_MANY_ROWS ?
So firstly the implicit cursor checks for row
existence and then checks again for
uniqueness(TOO_MANY_ROWS). Where as an Explicit
cursor will only check for existence once. Is an
Explicit cursor still inferior considering this ?I saw a discussion a year or two back that Oracle had tightened that up a bit, so that they can do it all in one round trip -- or something to that effect. Anyway, if you create yourself a benchmark test both ways, I believe you would find that the implicit cursor will process faster than Open-fetch-close.

Similar Messages

  • Requesting peer review of coding technique.

    Hello, I'm curious if anyone here can review my flash to see
    if my coding techniques are proper.
    To start, here's the site:
    Example Site
    If you click on the top row of buttons corresponding to each
    section, you'll notice a slight transition before the section is
    loaded. Each section is a separate .swf file, which is loaded via
    actionscript to a MovieClipLoader. (See livedocs for the
    MovieClipLoader API reference)
    The transition animation is responsible for passing calls to
    the MovieClipLoader for loading/unloading movies, and does so
    during keyframes in the animation's timeline. For example, when a
    button is clicked, and "the curtain is down" the MovieClipLoader is
    unloaded, and then loaded with a different .swf.
    I don't have access to a screen reader to test how accessible
    the flash is. However, I have been told that accessibility
    standards suggest animations be hidden from a screen reader via the
    "wmode" property. Assuming the animation is disabled in the screen
    reader, will the transition animation still fire events it incurs
    on the timeline?
    Should I not control loading/unloading of movie clips on the
    timeline? I believe my technique is robust enough to work in a
    non-accessible environment. It locks input while the animation is
    playing, and ensures a small memory footprint by unloading unused
    .swf files. However, is it the right approach with accessibility in
    mind?
    Thanks for any input,
    -Jonathan

    it would look better if instead of a white dropdown covering
    the previous content and then a black dropup revealing the next
    content, you used a dropdown that changed the previous content to
    an alpha of 10% until the bottom is reached when the next content
    is loaded with an alpha of 10% and the dropup revealed the next
    content with 100%.

  • How to use Adobe LiveCycle Forms Standard / Pro to leverage features in Adobe Reader

    Can someone please tell me how to use the Adobe LiveCycle Forms Standard or Pro module to leverage features in Adobe Reader? Do you also need to have the Reader Extensions Module?
    The forms data sheet says that it is possible to leverage features in Adobe Reader but does not go on to detail how.

    Depends on your deployment pattern.  You can just use Reader Extensions if you're publishing forms on a site, if you need to prefill or perform other processing on the template then LiveCycle Forms is needed.  If you want to render to HTML5 for tablet support then Forms Pro is needed.

  • Standard coding practise in ABAP

    Could anyone provide me the parameters for standard coding practise in abap before implementing any process ???

    Hi,
    you can use a IFRAME and run a Portal transaction Iview for IB52 inside the WD-IFRAME.
    For that you first have to create an iview for the Transaktion IB52 inside your Portal.Then call the preview of the Iview. This Preview-URL(or the PCD) you can call as source inside the WD-IFRAME. For me this works fine.
    Regards
    Frank

  • Hard-Code address on 1099 Forms (Standard Report)

    Hi All,
    We need to do the Hard-Code address on 1099 Forms (Standard Report) in Payables module.
    Is there any way do this?
    Thanks in advance.
    Thanks,
    Astik Mondal

    It allows only 30 characters of the address.
    Refer 5th question in the Note 110390.1 where they suggested a workaround.
    Regards,
    Srini

  • How to use mp3 files on a form standard button, instead of wav-files. Need to save space.

    I would like to use mp3 files instead of Wav-files on the standard button, in the forms edit menu. I know it is possible in the interactive menu to add buttons with mp3 sound. But those buttons has not the same options and appearance as the forms buttons. We create learning books with lots of sound files in each PDF, so with wav-files the PDF gets quite heavy in Gb.

    Smokerz – Thanks for the feedback. I managed to get iTunes to find the movie files on my TC by simply dragging the icons of the files on the TC into the Movies folder in iTunes. This immediately made them available for streaming on my Apple TV. Also, I learned with great relief that, despite their large size, dragging icons of my movie files into iTunes did not copy them to the C: drive on my desktop computer. Thus, it looks as if the job is pretty much done. Thanks again for your advice.

  • Oracle forms standard/default menu - Record Delete option

    Hi ,
    Oracle forms provides a standard menu with the below options.
    Action , Query , Block , Record , Help etc.
    Under each of these Menu options there are sub options.
    Eg: Under Record we have Previous , Next , Insert , Delete etc.
    Can someone please tell me how to control this menu item options for different forms.
    Eg: for 1 form i want to allow the Record - Delete option but for another form i dont want to give this option.
    How to do this ??
    Please help....
    I tried to search for the solution but couldnt get the right answer. Hope someone will help me out here.
    Regards,
    SRT

    Hello,
    The Oracle Forms documentation states:
    The Default menu is built-in to every form, and is not a separate menu module.
    You cannot change the structure of the Default menu or edit the menu items it
    displays.
    If your application requires
    unique menu functions, you must create a custom menu module and attach it to
    your form.
    If the internal default menu almost meets your needs, you can attach the
    "menudef.mmb" approximation of the default menu to the form. You can then
    rename and edit this menu.
    You can download the demo version for 10g R2 and menudefs_10g.mmb is included with the demos.
    http://download.oracle.com/otndocs/demos/Forms_Demos_10gr2.zip
    You will get menudef_10g.mmb and menudefs_10g.mmb.
    If needed check metalink note:
    Differences between menudef.mmb and menudefs.mmb menu files. [ID 1081136.1]
    Kind regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly.

  • Need help with PHP form processor coding

    I posted my first question on this forum earlier today and got help quickly. I'm going to try again and see who can help me this time.
    I have a customer feedback form that I designed and I am using Spry validation on the fields and I'm use Recaptcha as well. Now I'm trying to get the form handler working. I know there are some canned procedures out there but I hate using too much code that I don't understand at all.  I'm sure my first attempt at PHP coding is horrible but we all have to learn. My processor is working in some areas but there are holes I don't know how to fill in:
    1. When I validate the Recaptcha input, if it was entered correctly, I go on to send an email to the appropriate person BUT how do I send them a message and get back to the form if the recaptcha validation fails and still have their entries in place?
    2. Assuming the recaptcha validated correctly, my procedure sends an email  and it writes the comments to a file for historical purposes. These parts seem to be working (by some miracle). Once I do this, I think I would like to open a little window to send the customer a confirmation message, have them click the box to confirm and close the window and then take them back to the feedback form but now have it be reset. I'm not sure how to do these steps.
    Does anyone have a SIMPLE example to accomplish these steps?
    Thanks much!!
    Donna

    It would be hard to give you substantive examples of how to accomplish your goals here without seeing your PHP code, but in general the following methods would work:
    1.  To return to the form with the fields populated, is easiest when the processing script and the form code are on the same page.  The idea is that when the form is not properly completed, you fall back into the form code and use the data from the posted values to repopulate the fields, e.g.,
    <input type="text' name="whatever" value="<?php isset($_POST['whatever']) { echo $_POST['whatever']; ?>">
    or
    <select name="whatever2">
    <option<?php if(isset($_POST['whatever2']) && $_POST['whatever2']=='this_option_value') { echo ' selected="selected"'; } ?>>this_option_value</option>
    </select>
    Each field is set to repeat the posted data (if the corresponding $_POST value is set - to avoid error messages when the page is first loaded).
    2.  You can place the confirmation message on the page with CSS that hides it.  When the form is submitted successfully, just set a variable that is used to show the previously hidden message, e.g.,
    Assume the following CSS -
    #message { display:none; }
    and the following HTML -
    <p id="message">Congratulations</p>
    and the fact that you have set a PHP variable called $success to be true when the form is successfully submitted, you would just modify the HTML like this -
    <p id="message"<?php if($success) { echo ' style="display:block"; } ?>>Congratulations</p>
    Make sense?

  • How to define variable for smart form in coding

    hi all,
    i have to create a variable for smart form which is i already created in  smart form but facing some sort of difficulties.
    for example:
    DATA:  formname  TYPE ZCCCL_GOODS_RECEIPT.(SMART FORM NAME)
    DATA:  formname  TYPE ZCCL_RETURN_VENDOR. (SMART FORM NAME)
    DATA:  formname   TYPE ZCCL_GOODS_RESERVATION.(SMART FORM NAME)
    CASE in_mseg-bwart.
      WHEN '101' or '105' or '321'.
      formname = 'FORM_RECEIPT'.
      WHEN '122' or '124'.
      formname = 'FORM_RETURN_VENDOR'.
      WHEN '201' or '261'.
      formname = 'FORM_GOODS_RESERVATION'.
    ENDCASE.
    So this the logic im using but it gave me error like:
    Type  ZCCCL_GOODS_RECEIPT is unknown.
    Kindly tell me if this coding is wrong than what should i use.
    Thanks.

    Declare variable name for smartform as
    Formname type TDSFNAME in import tab.

  • Forms Standard Canvas/Window Sizes for

    Hello:
    What are the standard sizes of Window and Canvas for Oracle Forms to run on 1024/768 Pixel or higher resolution? We like to size the screens such a way that the users can see the whole Form Window/Canvas in both Client Server as well as Browser Based (deployed using Application Server).
    Thanks

    Steve's values were the sizes for the web-application.
    I myself test this so:
    I have a parameter-table with width and height. The WHEN-WINDOW-ACTIVATED trigger gets this parameters and resizes the window.
    Now I change the values of the 2 parameters in the db with Oracle Raptor (e.g.) and after that I return in my runform - the trigger fires and resizes the window to the new parameters.
    If you found the 2 parameters for your environment, you should place them for example in property classes in a reference template. All your new forms then reference this properties and so all your forms have the same layout.
    that's it
    Gerd

  • Adobe Interactive Forms - Standards & Naming Conventions

    Does anyone know where I can locate any documentation pertaining to recommended standards and naming conventions for interactive forms within the SAP NetWeaver '04 platform?

    Hi David,
    I suggest you start here: https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=AdobeForms.htm. This is where we have collected background information, demos, eLearning materials, and links to the standard documentation for the integrated forms solution. We work together with Adobe on the content of this site.
    In due course, we will provide more tips & tricks and best practices.

  • Adobe Interactive Form Standard Layout Type

    Hi,
    We are on SAP ECC 6.0 system with ADS patch level 7.
    We are failing the FP_TEST_00 test.. It does not produce any output. System just hangs as if into some infinite loop. 
    Also noticed that, in SFP in form properties, we just have "Unknown" - "ZCI" and "xACF".. there is no "Standard Layout Type" option. Thus all forms currently have "Unknown Layout Type" in this field, including for FP_TEST_00.
    When we call form function module in the application program after FP_JOB_OPEN, it does not give any result.. system hangs as if into infinite loop.
    Can anyone tell, how do we resolve these 3 issues? are they linked? 
    Thanks a lot.

    Hi,
    The basic difference is:
    1) ActiveX Dropdowns requires ACF to be installed on each client machine to get back the data from interactive form back to context.
    2) While, the use of Native dropdowns makes a form to ZCI type, so that does not require any xACF component to be installed on each and every machine that uses the Interactive forms.
    So, it is recommended to use Native dropdowns in your forms,
    Also, for the population of dropdowns of type native you can go through SAP note: 1013227.
    Hope this helps,
    Thanks,
    Amita

  • Forms: Standard vs Pro

    I have been doing forms in the standard version of Acrobat for some time. i.e. creating text boxes, changes tab through settings etc. Does the Pro version offer any more features or make this process any easier? I see language on the Professional version page that implies that it does but want to quantify it before I buy.
    gbs

    It was part of 3 and 5. However, the original release of 5 did not have it. It only took about 3 months for it to be added as I recall. In fact the AA5 update list at Adobe still lists the plugins as
    Save As XML Plug-In for Windows (beta 2) 1.7MB 11/2/2001
    Paper Capture Plug-In 14.3MB 6/7/2001
    Make Accessible Plug-In 1.9MB 4/13/2001
    I don't remember the comments on the forum back then, but I do remember a lot of complaints about the Paper Capture missing. As I say, I think it was only for the initial release (5.0). After that it was probably included.
    As I recall, the Acrobat product was a set of products back with AA2 and you had to purchase a package, not just Acrobat. Oh well, enough for history and weak memories (mine that is). Bill

  • Adobe Form (standard) how to set paper weight?

    We realized an Adobe Form related to deliveries. The form is printed on a paper with the weight of 160g (which is the double of a normal paper).
    When the printer settings are put correctly to 160g the print out releases an error message.
    Apparently the form message does commit a paper weight parameter to the printer. The missmatch (form: "normal" paper / printer: 160g) does release an error message. Where does the parameter for the paper weight in the Adobe Form can be found? Where can we change it?
    When we change the printer settings to normal paper the form is printed. But with a low printing quality due to the false settings.
    Printer is a RICOH Aficio SPC430DN.

    Hi Claudine,
    in the form itself you are able to set the specific paper. You should change it here to A4 Special and afterwards modify your XDC-File to this special output-format. To do this you may need someone of the basis-guys also.
    Paperformat must be located somewhere when you click on masterpage in your tree. I do not got a system available at the moment
    ~Florian

  • Proper init coding technique

    Basic object oriented coding question using init.
    The following code works, but is really not proper (or is it).
    Can someone point out the best way to code initWithType:buttonType properly?
    The instantiation of a button using a custom subclass buttnView:
              UIView* buttonView;
              buttonView = [[ButtonView alloc] initWithType:buttonReset];
              [self.view addSubview:buttonView];
    ButtonView.h - really basic:
    @interface ButtonView : UIView {
              int myType;
    @property (nonatomic) int myType;
    - (id)initWithType:(int)buttonType;
    @end
    ButtonView.m
    - (id)initWithFrame: (CGRect)frame {
        if (self = [super initWithFrame:frame]) {
            // Initialization code
        return self;
    - (id)initWithType: (int)buttonType {
           if ( buttonType == buttonReset ) {
                [self initWithFrame:CGRectMake(buttonResetX,buttonResetY, buttonSize,buttonSize)];
                myType = buttonReset;
           else  {
                ... a bunch of different button-types ...
           else
                return nil;
           self.userInteractionEnabled = NO;
           self.opaque = NO;
           return self;
    As I said, this "works", but Analyze complains:
    Instance variable used while 'self' is not set to the result of '[(super or self) init...]'
    And while I recognize, yep, I'm not doing this quite right, I don't seem to be able to think of the right pattern.
    The code puts custom buttons at pre-defined locations type'X, type'Y each at size buttonSize.
    Thanks.

    No, it's happy with initWithFrame.  It just complains about every line which calls it in initWithType, e.g.
    [self initWithFrame:
             CGRectMake(buttonResetX,buttonResetY,buttonSize,buttonSize)];

Maybe you are looking for

  • How can i use a digital camera as webcam?

    the iSight camera *****. I have a 12mp canon digital camera, can i use that in lieu of iSight to use in iChat and Facetime? if so, what's the procedure? i have a macbookpro on snowleopard 10.6.8

  • Does the mac mini have air drop? the newest verison

    Does the model MD387LL/A mac mini have air drop?

  • Using Macbook as a HTPC, should I keep the battery in it?

    So today, I had a quick brown out from the wind. Since the macbook I use connected to my TV as a HTPC doesn't have a battery, it instantly turned off. I took the battery our cause it got real real fat. There is known issue with these batteries that f

  • Where to search for  R3A* queues in status SYSFAIL in my system.

    Hi Experts, Can anyone tell me in which Tcode or table I can search for the below entries. I am trying to find out these entries  as one of  CRM team member had mentioned the below one. R3A* queues in status SYSFAIL were detected in your system. As a

  • Battery/Em​ail not working

    Hi, I bought a blackberry a few weeks ago and then this week my battery began dying within 20 minutes of it being charged so I took it back and got a new one but now it is doing the same thing after having it for 3 days. As well this time my alarm do