Forms doubts

Hi,
I am dynamically entering table name in my form, according to the table entered i want to retrieve number of columns processed by form. e.g count(*)
select count (*) from :tab_name;
this query does not work, what is the other way to retrieve table name dynamically & then process it?
My second doubt is how to display oracle errors like unique constraint violated, referential integrity violated through forms. I have used message(sqlerrm). but it shows, "Nomal, successful completion". Any other in-built function provided by forms?
Regards.

You can use dynamic SQL to pass a table name within a PL/SQL code.
for your second question you can use a form level ON-ERROR trigger with ERROR_CODE, ERROR_TEXT, SQLCODE, SQLERRM and DBMS_ERROR_CODE, DBMS_ERROR_TEXT.
Explanations are found in the forms online help.
Also Steve Cosner has a nice knit code for displaying errors with the ON-ERROR trigger in a custom way. check it out.
Re: FRM-40735:Pre_Insert trigger raised unhandled exception ORA-20011
Hope this helps.
Tony Garabedian

Similar Messages

  • Adobe form doubt???

    Iam new to adobe form..i studied all the documents available on adobe form....but still i have some doubts..plz clarify these.....
    1)if i want to attach one adobe form to one transaction where can i attach my adobe form?
    2)when we write driver program for one form ...how could we call that in program?
    3)how can we calculate totals in adobe form?
    plz help me.....iam waiting for your valuable replies...

    We do allow Adobe Forms questions in this forum only if the question pertains to their usage within Web Dynpro ABAP.  I don't see anything in your question that fits that description.  You seem to have general forms questions and ones that pertain to the usage by print driver programs.  I would suggest that your question is really better suited to the Adobe Forms Forum or the ABAP Print Forms Forum.

  • Form doubt

    hi all
    am newbie to struts, i've started doing my project in struts . am using DispatchAction class . i've a doubt . that is
    can i use separate forms for every page . for example for login-page i've LoginForm. and
    for edit-user page i've EditUserForm and
    for delete-user page i've DeleteUserForm
    in my login form   username,password
    createuser   username,password,role,city,coutry
    edituser       username,password,role
    delete-user  username
    how can i implement my form here . please make me clear. if i use single form for all this fields my validation will get problem..... please any1 help me out of this.....

    hi all
    am newbie to struts, i've started doing my project in struts . am using DispatchAction class . i've a doubt . that is
    can i use separate forms for every page . for example
    for login-page i've LoginForm. and
    for edit-user page i've EditUserForm and
    for delete-user page i've DeleteUserForm
    in my login page got --- username,password
    createuser page got ----  username,password,role,city,coutry
    edituser  page got -----  username,password,role
    delete-user page got ------  username
    how can i implement my form here . please make me clear. if i use single form for all this fields my validation will get problem..... please any1 help me out of this.....

  • Smart Forms Doubt

    Hello All
          I have a little bit problm is smart forms. I have created one smart forms In which I have define a table in Main window.
    The data is Printing properly, But the problm is, I want to print the horizontal line item after  each line item.
    I have try the same with table Table TAB  under the Table property.  Previously I have done the same in SAP 5.0 it is working fine, But here I am using SAP 4.7. it is not working here.
    Can Some One suggest me the some solution for the same.
    Regards
    Swati  Namdev

    Hi, the problm is solve now issue is with the printer settings...
    I am trying with EPSON PRINTER..BUT IT need to be set properly for Laster jet printer.
    thanks to all for there valuable suggestion.
    regard
    Swati

  • Adobe form doubts

    Hi,
    I'm displaying a table in my form. I want to remove the table borders. I've checked none option for the object layout properties.
    But still the borders are displayed. Am i missing something ? ive want the table (row,column) borders as invisible.
    And also the form generated in the spool is protected not able to print it ?
    Do we have any attribute to be set in the output parameter in order to overcome this issue?
    Please advice.
    Regards,

    HI friend,
    Just now tried your scenario.
    Its simple you need to do the changes by selecting each and every field. Select each field and do the same. Also select the option edit individually.
    Also one more thing which we need to notice is we need to enter the program in change mode. If you go into the form in display mode and then switch to Change mode, Some times our code will have effect sometimes it may not.
    I think this will resolve your issue if you face any issues please revert back to me i will help you.
    Thanks,
    Sri Hari

  • Adobe Forms Doubts

    Dear all,
    I am trying to learn about the adobe forms,  I have installed adobe life cycle designer 8.0 and trying to go some of the examples, i didnt see the body pages in here but most of the examples online talk about the body pages . I could see master pages though, so does it mean master pages is body page???
    thanks

    Hi all,
    Thanks all for the reply. Here are my observations that i have found out while experimenting with adobe forms.
    In Live cycle designer 8.0 certain things have been changed. Here are the view available in 8.0
    Design View -
    > this used to be body pages in earlier version.
    Master pages
    XML source
    Preview Pdf
    and yes Master page is not the body Page.
    So to create an body page implicitly in Hierarchy we just need to create a subform under Master Pages node, this will be the body page1, and we can create  subforms under this  page node.
    Please correct me if  I am wrong.
    Points have been awarded.

  • Smart forms Doubts

    Hi,
         i have developed a smartform. when i cheked and activated form it is not giving error. it is ok. But when i see the form in print preview it giving error in address output. pls give solution.
                                             thanx.
                                                          ch

    I think you used an %address in your form. Look what did u write address number ex:&bill-kna1-adrnr& And You want to test your form to see output. After click test two times you see test function module: initial screen .You can enter values to some input parameters here. Look your added parameters and click icon near it. Then structure editor opens. After click column button and find your column then enter real address in it. then test it.

  • Smart form doubt

    Hi,
    Please  guide me the  driver program name  of smartform BBP_PO ,  BBP_SC.
    Regards,
    Savitha.

    Hi,
    Smartform BBP_PO
    Method PROCESS_BBP_PO_PRN of Class CL_PD_PO_PROCESSING_BBP
    Smartform BBP_SC
    Function Module BBP_OUTPUT_SC_PREVIEW_SMART
    Regards, Kathirvel

  • Doubts In Forms 6i

    Hi ,I've got some doubts in forms.
    1) what is the difference b/w commit and commit_form?
    2) When we've to use key triggers?What is the purpose of key-triggers?
    3) When we've to use On-triggers?
    Pls reply me asap...
    Prashanth Deshmukh

    Hello,
    You seem to have some strong problem to read (access) the online documentation...
    Commit and commit_form are the same thing.
    Key-triggers are used to intercept some...... key actions !
    On-triggers are used to replace the automatic/internal form process
    (Yhe code you place in an ON-INSERT trigger replace the Internal Forms code for each based record that have the INSERT status)
    Please, open the Forms Builder and press the Ctrl+H key, then take some time to read and learn.
    Francois

  • Doubts regarding XML Form Builder

    Hi All,
          I am having some doubts regarding XML Forms (Projects) that is created using XML Form Builder. Where are exactly these projects stored. Can I edit these projects and add my own Java Functionality in these. And also the data which I fill using these project where is it stored. Suppose New Project I ve created using XML Form Builder, now I want to feed in the news. Where exactly are these news stored.
    Thanks in Advance
    Anish

    Hi Anish
    You can make the standard settings and modify the XML forms builder in line with your requirements in the options. You can set the standard paths for your project on the <b>Paths</b> tab page.
    To get a clear understanding, please go through this link.
    http://help.sap.com/saphelp_erp2004/helpdata/en/62/ca6f365a6df84e87ba085f9b5fb350/content.htm
    Hope that was helpful
    Warm Regards
    Priya

  • How can i call Web page  from my Forms 6 and Some other doubts.

    Dear friends,
    I am having the following questions and doubts ..If you can share some information with me it will be greatly useful to me..
    Q1. I am using Dev Forms 6i. Can we call a Web Page form from the Developer Form directly with the press of a button..(eg. When button Pressed trigger..? )If so, what the requirement to do so. My database is Oracle 8i
    Q2. How can we send email from a Form picking the address from our Oracle Database..? I have installed only Oracle 8i and Forms & Reports 6i. Anymore has to be installed for this work?
    Q3. Do you know any GIS package that can be integrated with Oracle so that we can know the Latitude and Longtude of a lcation if we give an address..? and what can be done for this purpose.
    please revert with the info...
    Sincerly
    Sajith
    12100 Beech Forest Road,
    Laurel, MD 20708, USA
    Phone : (301) 497-5816
    Cell : (301) 693-6767
    Email : [email protected]

    Here is code I used to send an email from Form 6.0 through Outlook 2000 on a PC. I don't know the answer to you rother questions.
    PROCEDURE maily (p_to_address VARCHAR2, p_cc_address VARCHAR2 DEFAULT NULL, p_subject VARCHAR2, p_message VARCHAR2) IS
         objOutlook OLE2.OBJ_TYPE;
         objMail OLE2.OBJ_TYPE;
         objArg OLE2.LIST_TYPE;
    BEGIN          
         objOutlook := OLE2.CREATE_OBJ('Outlook.Application');
         objarg := OLE2.CREATE_ARGLIST;
         OLE2.ADD_ARG(objarg,0);
         objMail := OLE2.INVOKE_OBJ(objOutlook,'CreateItem',objarg);
         OLE2.DESTROY_ARGLIST(objarg);
         OLE2.SET_PROPERTY(objmail,'To',p_to_address);
         OLE2.SET_PROPERTY(objmail,'Cc',p_cc_address);
         OLE2.SET_PROPERTY(objmail,'Subject',p_subject);
         OLE2.SET_PROPERTY(objmail,'Body',p_message);
         OLE2.INVOKE(objmail,'Send');//Use display to display the email instead of sending it, or save to save in the outbox
         OLE2.RELEASE_OBJ(objmail);
         OLE2.RELEASE_OBJ(objOutlook);
    END;

  • Doubt in forming Query

    Hi,
    I have a doubt in forming query.
    I have a table like this
    Inst_Id port1 sid port2
    1 2300 1 2302
    2 2304 1 2302
    3 2306 1
    4 2300 2
    5 2306 2 2308
    I need a result as for sid = 1(should take union of both port and list out with instd_id)
    Port Inst_Id
    2300 1
    2302 1
    2304 2
    2306 3
    Can any one help to get a query?
    -haifriends

    You simply answer:
    select inst_id,port1 from t where sid=1
    union
    select inst_id,port2 from t where sid=1

  • Doubt in Form Template Customization Using VSTA

    Hi All,
    i have doubt in InfoPath form development using VSTA.
    I have one form template, i want to auto fill(Using Hard coded) some of fields in that form like name,date and mobile number.
    Can any one help me out how to do that.
    Thanks in advance!

    Hello,
    No need to use VSTA if you just want to set hardcode values. You need to set rule on form load event. Refer this link to set field value on form load:
    http://www.bizsupportonline.net/infopath2007/infopath-basics-how-to-populate-form-when-opened-loaded.htm
    Anyway if you want to auto populate user detail from sharepoint then use userprofileservice.asmx service. (YOu will need to create user profile service in your farm to leverage this)
    https://askmanisha.wordpress.com/2013/07/22/how-to-set-current-user-details-in-an-info-path-form/
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Doubt in createing forms in flex ?

    hai all,
    i have doubt in creating forms in flex, how can we validate phone number in form and can we have any script for predefined calender to select date for date of birth. plz help by attaching some references,
              one more doubt how to create my UI(user interface) with good look with dropdown menus and incoprate graphics like .gif,.swf tables ect plz forword or attach some references plz do it fast it very urgent

    Hi,
    Try to use page protection in the Folder. 
    Create a Folder in the Main Area of the table and check the Page Protection Option.  Include all your Line types (Row types) in this folder.
    It will avoid page break and display the records in a set.
    Reward if useful........

  • Doubt with Windows and Oracle Forms 10G and 11g

    Hi
    I have some doubts in installing Oracle Client on Windows.
    a)Can we install Oracle Forms 10g and Reports 10g client on Windows 7?
    b)Can we install Oracle Forms 11g and Reports 11g client on Windows XP?
    c)If we have an Oracle Forms 11g and Reports 11g, can it connect to a 10g Server?
    d)If we have an Oracle Forms 10g and Reports 10g Client, can it connect to an 11g Server?
    Please, Can any one help me in this????

    a)yes it can be installed on win7, may have some issues on 64bit systems but they're solvable
    b)11g had some problems with windows 2000, but didn't see mention of any problems on XP
    c)if you mean a database server then yes - i managed to connect 11g to an 8i database, so v10 should not be a problem. If you mean a forms/reports server..well newer forms/reports builder might not want to run old forms/reports and vice versa, but I don't see the point of operating on the same files from different versions. You can still load old form/report source files with a newer builder and recompile them to run on the new server.
    d) the "client" is effectively your web browser with a java plugin, unless I misunderstood your question. What version was a form/report compiled with should not be an issue.

Maybe you are looking for

  • Elements Organizer will not install correctly

    I recently installed the latest AAM per Adobe's suggestion to solve nother problem of "installer failed to initialize".  Now I can run the Elements setup.exe withough the failure.  However, when I try to install Elements (either Photoshop or Premiere

  • Screen Tips for Hyperlinks in PPT 2007 not working in Presenter7

    I have numerous hyperlinks in my presentation, each with a Screen Tip. Unfortunately,none of these are being carried over in the translation to Presenter7. Can anyone help? thanks Grayley

  • Can I connect Mac mini to Windows laptop?

    I would like to connect Mac Mini to HP windows 7 Laptop as to use the laptop as keyboard and monitor instead of connecting to TV and using separate keyboard. Is this straight forward to do? does it need some workaround? or is it impossible?

  • Issues with layout pages and templates.

    So to save time I have started creating my own templates. For instance I want one with mostly black pages so I have created new 'pages' under the 'layout' bar (the one you have to pull down). this works fine for simple pages of 1/2/3 columns and blan

  • N95 backup errors.

    Hi there! I just updated my N95 and restored the stuff from PC. But now it seems that I can't take new backup from the phone. It seems that I can't backup calendar and phone model-specific ... like: contacts, calendar items, Text messages, Multimedia