Problems of forms for beginner

I am new to orcale portal. Here is some simple questions. I hope someone will help me. Thanks in advance.
How to detect duplicate records when insert or update?
e.g. I created a form based on table/view. My requirement is when I am doing insert or update, it will check the database for duplicate record. If duplicate is found, It will generate a user defined meaningful message and stops processing else submits the form. Can this be done by adding PL/SQL codes with 'insert' button?
Another question is, I want a 'preview' button to show the user the content that he just filled in before submitting the content. e.g, if a user put some HTML codes in one field of the form, he is given the preview before he submitting the content. My question is, if I use javascripts event handlers for the 'preview' button, how to get the value that the user put in from the session?

This first problem is solved by using 'p_session.get_value' and 'select' in PL/SQL Button Event Handler to check the value.
For the second problem, if JavaScript Event Handlers is used, how to get the input value (is there any function such as 'p_session.get_value')? Or, if PL/SQL Button Event Handler is employed, I am able to get the input value, however, htp.script does not work here.
For example, I put such a simple line in the 'PL/SQL Button Event Handler' for a button, say 'CLOSE',
htp.script('window.close();', 'Javascript');
It does not work. I checked the source for the displayed page, there's no 'onClick' event for button 'CLOSE', which means no javascript is generated from htp.script(). What's the problem?

Similar Messages

  • Problem - Define Forms for Check Deposit List - Need Help

    Hello Experts,
    I want to extend the logic of T Code FP20 (Prog RFKKCK01),
    Hence, I have created a 'Z' prog with the appropriate extension in the logic.
    Now to take these change effectively, i have made corrensponding changes in the attached SAP Script (FKK_CHECKDEPOS) also.
    Now, when I go to
    Contract Accounts Receivable and Payable -> Business Transactions -> Payments -> Processing Incoming and Outgoing Payments ->Define Forms for Check Deposit List.
    In this, I create a new Entry after removing the existing Entry of the same Company Code [1000     | ZRFKKCK01 | SapScript | ZFKK_CHECKDEPOS ]
    it gives me an Error "Specify the key within the work area".
    Specify the key within the work area
    Message no. SV033
    Diagnosis
    You have attempted to create an entry whose key is not in the range defined for this area.
    System Response
    The entry cannot be created.
    Procedure
    Please check your entry.
    Please Help me solving this problem.
    Thanks!!

    Thanks sbaranga. This code won't work for me.
    <select>
    <option value="P"if (statusIndicator.equals("Pending")){    selected}>
    <option value="A"if (statusIndicator.equals("Approved")){    selected}>
    </select>
    In above code statusIndicator is ID I believe. I need to show selected item based on statusIndicator in database. Also it has to pass updated status to database incase if user changes status thru form.
    If they select Pending then "P" will be passed to servlet and if they select Approved then it will pass "A" to servlet.
    I will be receiving "A" or "P" from database when I am trying to retrive status value from database. Based on value "A" or "P" I need to change selected information on form.
    Update and Retive form are same. this one form does everything display and update.
    I hope this help to understand my question.
    If you have any question then email me at [email protected]
    Thank you.

  • Problem on forms for serial number generation with last record next_record.

    Hi Experts,
    currently i'm facing one problem like :
    i'm populating one receipt detail in Multi block , like when user key in one receipt number that time record should go in first record ,and if they key in second receipt number then record should go in second record . mean to say every time record go in last record ..but the problem is i want to generate Serial no correspondence to every last record ..
    here is my approch :
    cursor c1 is
    select * from table
    where cname =:blk_name.clm_name.
    Last record;
    next_record;
    for v1 in c1 loop
    processed record;
    next_record;
    end loop;
    last_record;
    go_block(___);
    first_record;
    :sno := system.cursor_record ;
    next_reocrd;
    end loop;
    first_record;
    And in block level i'm writing code for Serial number generation when user key in manual entry for receipt detail:
    :blk_name.coulumn_name := :system. cursor_record;
    so in this approach their is no problem it is working properly but the problem is that
    when user fetch one receipt automatically and then after he want to enter next record manually and he decided to go in detail block ,
    and once he reached in detail block that time block level trigger i firing .ans serial number 2 generated and then suddenly he came to know no i want to fetch next record automatically mean to say now user going again master block and fetching next receipt detail ,
    but the problem is when user leaving seccond sr no and going in master block and population next receipt detail that time cursor going on 3 record
    but logically have to replace the second Serial no and generate the again serial number 2 record population .mean to say its not refreshing last_record..
    so i'm appreciating is anyone if came accoross this type of issue please corrrect my code and send updated code ..plsssssssssssssssssssssssssssssss
    Thanks
    Abhishek
    [email protected]

    hi
    I put this below code on when_new_record_instance on block level..
    :blk_name.column_name :=system.cursor_record;
    so can you please help me.....
    Thanks
    Abhishek

  • Flash Contact form for beginner

    Hello,
    I have been searching online for a tutorial to create a contact form on my flash website. I am using Flash CS3 and ActionScript 3. I am not fluent in ActionScript. I was looking to copy and paste the code and change the information to my own. Any help would be really appreciated.

    You should be able to find a number of tutorials if you search Google using "AS3 contact form tutorial"
    https://www.google.com/search?q=AS3+contact+form+tutorial

  • Problem viewing forms.This form is not supported with the current version of Adobe Reader.Upgrade to the latest version for full support. That does that mean exactly?

    Problem viewing forms.This form is not supported with the current version of Adobe Reader.
    Upgrade to the latest version for full support.
    What exactly do I need to do?

    That means you were probably using Adobe Acrobat to view PDF's. Acrobat is totally unnessary, you can view PDF's in Preview (Applications - Preview).
    BTW PLEASE complete your profile. It's very difficult to help  someone when they don't provide any information about their system. You can easily do this by clicking Your Stuff in the upper right of this page, then click Profile and fill in the pertinent information.

  • Form for password changing. code problem

    hi dears,
    i am using forms6i. i was making a form for password changing purpose. i've written this code this is successfully compiled but it is not changing the password. wil u plz tell me where is the problem.
    declare
         v_user varchar2(50);
         v_oldpassword varchar2(50);
         v_var2 varchar2(50);
         v_leng number(3);
    begin
         v_oldpassword := get_application_property(password);
         v_user:=user;
         v_var2:=upper(:password_old);
         if v_var2<>v_oldpassword then
         message ('Old Password Is Not Correct...');
         message ('Old Password Is Not Correct...');
         raise form_trigger_failure;
         end if;
         if :password1<>:password2 then
              message ('Typed Passwords Are Not The Same...');
              message ('Typed Passwords Are Not The Same...');
              raise form_trigger_failure;
         end if;
         v_leng:=length(:password2);
         if :password1=:password2 and v_leng<=3 then
         message ('Password Must Have Four Characters...');
         message ('Password Must Have Four Characters...');
              raise form_trigger_failure;
         end if;
         if v_var2=v_oldpassword and :password1=:password2 then
         FORMS_DDL('alter user ' || v_user || ' identified by ' ||:password.password2);
         message ('Password Is Changed... Please Restart The Oracle Applications...');
         end if;
    end;
    COMMIT;
    LOGOUT;
    thanks

    Hi dear,
    Please use this code to change your password:
    declare
    v_user varchar2(50);
    v_oldpassword varchar2(50);
    v_var2 varchar2(50);
    v_leng number(3);
    begin
    v_oldpassword := get_application_property(password);
    v_user:=user;
    v_var2:=upper(:password_old);
    v_leng:=length(:password2);
    if v_var2 != v_oldpassword then
    message ('Old Password Is Not Correct...');
    message ('Old Password Is Not Correct...');
    raise form_trigger_failure;
    elsif
    :password1 != :password2 then
    message ('Typed Passwords Are Not The Same...');
    message ('Typed Passwords Are Not The Same...');
    raise form_trigger_failure;
    elsif
    :password1=:password2 and nvl(v_leng,0) <=3 then
    message ('Password Must Have Four Characters...');
    message ('Password Must Have Four Characters...');
    raise form_trigger_failure;
    elsif
    v_var2 = v_oldpassword and :password1 = :password2 then
    FORMS_DDL('alter user ' || v_user || ' identified by ' ||:password.password2);
    message ('Password Is Changed... Please Restart The Oracle Applications...');
    end if;
    end;

  • I am having trouble with the handle bars for music fade in and fade out.  It doesn't work.  I also cannot see wave forms for music.   Cannot select - it is grey.  On a deadline and really having problems.

    I am trying to finish a video and I want to fade the music in and out.  I have read every tutorial I can get and the help info in iMovie.  Nothing helsp.   I cannot get it to fade by just sliding the handle bars.   Other times, the music mutes completely when I try to add a fade.   I try to view wave forms for music and it does not allow me to select .   it remains grey.   I am getting frustrated.  I had no problem with 11 version.   I now have 10.0.2 version.   Can anyone help?   my computer is latest Mac Book Pro 2013

    This is described in:
    http://help.apple.com/imovie/mac/10.0/#mov3b5ded23e
    A tip though - if you have a transition at the start or end of a clip it often obscures the fade handle.  Trick is to temporarly move the transition (or delete it), move the fade handle then replace the transition.
    Geoff.

  • Regarding Adobe form for development but the ADS always has a problem

    Hi,
    Currently we are using Adobe form for development but the ADS always has a problem in EC6 as below.
    Test Program: Version Information (for Analysis Only)
    System Error
    ERROR CODE: 100.101
    ERROR MESSAGE: SOAP Runtime exception: CSoapExceptionTransport : HTTP receive failed with exception communication_failure
    SOAP Framework error: SOAP Runtime Exception: CSoapExceptionTransport: HTTP receive failed with exception communication_failure(100.101).
    Would you pls help to figure it out?
    Thanks & Regards,
    Suneetha

    Hi,
    It seems that you ADS settings have not been maintained,
    check the note
    944221 Troubleshooting if problems occur in forms processing
    Hope this resloves your issue,if not revert back.
    Regards,
    Vamshi.

  • Problem  with Fonts for my Dunning form using SO10

    Hello Gurus,
    I have developed a Form for Dunning and have assigned 2 different standard texts (using SO10) for 2 dunning levels and I assigned the same paragraph format for both.(in my case P5 is paragraph format). I am using the same printer to print both the forms but the <b>font on the printout is different for both</b>....
    Could you please tell me what might be the reason for it and how do i resolve it?
    Thanks in Advance
    Ravi

    Hi..
    When u r using the <b>INCLUDE TEXT</b>..
    and if you are using the <b>STYLES</b> then the style formats will be applied to the <b>FIRST INCLUDE</b> onli..
    for the <b>second INCLUDE</b> the default format of the <b>FORM</b> will be applied..
    After first INCLUDE implicitly the STYLE FORMATS will be switched of..
    again Include the style after the first include .. then u will get the required output !!
    <b>
    reward if it helps u..
    sai ramesh</b>

  • F4 help not working in mss requisition form for erec

    HI,
         I am getting a problem while filling a mss requisition form for E recruting Ehp 4 . F4 help is not working for position id & org unit.it is not returning values while searching.I am using form scenarion sqr03.Plz suggest any solution.

    HI,
         I am getting a problem while filling a mss requisition form for E recruting Ehp 4 . F4 help is not working for position id & org unit.it is not returning values while searching.I am using form scenarion sqr03.Plz suggest any solution.

  • Outlook 2013 with Exchange Server - Changed custom form for contacts is not shown

    Hello,
    Our infrastructure:
    Exchange Server 2010
    Outlook 2010
    Outlook 2013
    Windows 7 Pro, Windows 8 Pro and Windows 8.1 Pro
    The situation:
    We've used an old custom form for contacts, worked perfectly fine
    I've updated the form (adding some new custom fields and checkboxes) using Outlook 2013 and publishing the form (with a new name) to the Exchange folder
    I've set the form as default form in our contacts folder
    I've used this Script to set the new form for the existing contacts  and the name of the new form is saved correctly
    BUT if I open a contact in our Exchange contacts folder, Outlook 2013 (Outlook 2010) still shows the old form
    Steps I've taken so far:
    Cleared Outlook forms cache
    Repeated the above steps 1-4 in Outlook 2010
    Switched Cached Exchange Mode off and back on
    Allowed Scripts in Trust Center Settings
    Used a new clean Windows installation with a new Outlook 2013 installation
    Used different Exchange users on different systems, but some behavior when opening contacts
    I'm out of options I can think of, so maybe somebody else has some new view on this problem. 
    Thank you very much in advance!
    Greetings,
    Karl

    Hi,
    Is the Exchange folder in which the custom form is published available to all users?
    From the description, the script used to work for the old custom form, correct? Which version of Outlook did you use with the old custom contact form? Outlook 2010/Outlook 2013 or an earlier version? If you used the script with an earlier version of Outlook,
    we can't make sure it will still work with Outlook 2010/Outlook 2013.
    In addition we may also try creating a new contact form and test the steps to see if it will work.
    Please let me know the result.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to keep the field value in the forms for one week

    I have an application that when the user logs on to it , it shows all the documents that are in the current dept.
    the form has the following fields:
    document no
    sent date
    assigned to
    dep_LOV
    and a check box
    if a user clicks the check box and assignes the document to another dept by cliking the LOv then the assigned to field should be populated with the new value and the sent date should be today's date(sysdate). the requirment is that once the user assignes the documnet to certain depts (for example sales dept) the assigned to field and the sent date should show up in the form for one week and the user should be able to see that data in the form the next time she /he logs onto the application. the one week time is to make sure the documcnt has reached the assigned dept. after one week from today's date the updated assigned_to field and the document no should not display on the form. During the one week if the user logs on to the form again that particular document and the assigned to and sent to fields shoould be grayed out and shhould not be updatable. I will greatly appreciate any suggetion as of what to do to solve this problem. it is urgent. Pleade help

    -> so you are saying that I should have a block level post_query trigger and put the where clause in it?
    No. Post-query trigger runs AFTER the query has been executed, and it runs once for each row fetched. It is for other purposes, NOT for setting a where clause.
    -> Plus i want to be able to gray out the field once populated with the sales dept.I have come up with the following code:
    Your Set_item_instance_property is almost correct. And THAT line would go into the Post-Query trigger. This is what you might use:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy"> Set_item_instance_property ('docs.assigned_to',:system.trigger_record, Enabled,Property_False);</font></pre>
    Please watch your use of underscore, dashes, commas and parentheses: _ - , ( )
    The way to set your default where clause would be the following, and you should do it in the key-exeqry trigger, or someplace similar:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy"> set_block_property('DOCS', default_where,
    'NVL(sent_date,sysdate) >= sysdate-7' );
    Go_block('DOCS');
    Execute_Query;</font></pre>
    I used the NVL function so your select will show rows where sent_date is null OR sent_date has a value that is within 7 days prior to the current date.
    What is the field :docs.assigned_to used for? If you want to include ONLY rows that are assigned to a particular person, then your where clause might be:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy"> 'assigned_to = :ctrl.assigned_to and NVL(sent_date,sysdate) >= sysdate-7' </font></pre>
    and you should have a control block with the assigned_to field in it, where the user can enter a value before querying the DOCS block.

  • Adobe Muse CC Form for third party hosting servers

    I start using the new adobe muse cc forms for third party hosting servers and i have this website for one of my customers i create a CONTACT FORM on the website and when try to submit it says "server encontered an error" i chat with adobe support they send me a URL with the options to fix my problem and then when i run this URL "http://mistercoffeediaz.com/scripts/form_check.php" everything is working fine. Please any somebody help me how to work this issue around. THKS..

    Responded to your other thread - http://forums.adobe.com/message/5555450#5555450.
    Thanks,
    Vinayak

  • Spain: Statutory forms for the Spanish Government Fiscal Authority

    Hi
    We are implementing FI in several
    Spanish companies. Our client has requested to produce directly from SAP some fiscal statutory forms for the Spanish Government Fiscal Authority, and they need to produce them in the exact format that the fiscal authority request. We mean that our client wants SAP to print a form that can be sent directly to the Spanish Fiscal Authority. 
    We have made a research (help.sap.com, OSS notes…) in order to identify what of those forms are produced (or may be produced) and printed directly from SAP, and for what of those forms SAP just produce a report with the information needed but NOT in the exact format that the Spanish Fiscal Authority request.
    We have also propose our client to send the information with an txt file produced by SAP, but they request not only the DME but also to produce the form directly from SAP for some companies.
    We will really appreciate if you can tell us if SAP can produce the exact format that Spanish Government request for the followings tax statutory forms:
    ·     300 - Régimen General. Declaración Trimestral. We know that S_ALR_87100833 is used for that form, but we need to know if SAP printout is valid for the Spanish Tax Authority.
    ·     320 - Grandes Empresas. Declaración mensual. We know that S_ALR_87100833 is used for that form, but we need to know if SAP printout is valid for the Spanish Tax Authority.
    ·     349 - Declaración recapitulativa de operaciones intracomunitarias. We know that S_ALR_87012403 is used for that form, but we need to know if SAP printout is valid for the Spanish Tax Authority.
    ·     390 - Declaración resumen anual I.V.A.  We know that S_ALR_87100833 is used for that form, but we need to know if SAP printout is valid for the Spanish Tax Authority.
    ·     392 - Declaración resumen anual I.V.A. grandes empresas. We know that S_ALR_87100833 is used for that form, but we need to know if SAP printout is valid for the Spanish Tax Authority.
    ·     110 and 111 - Retenciones e ingresos a cuenta. Rendimientos del trabajo, de actividades profesionales, de actividades agrícolas y ganaderas y premios. Declaración – documento de ingreso.
    ·     347 - Declaración anual operaciones con terceras personas. We know that RFUSVS14 is used for that form, but we need to know if SAP printout is valid for the Spanish Tax Authority.
    ·      349 - Declaración recapitulativa de operaciones intracomunitarias. We know that RFASLD11B is used for that form, but we need to know if SAP printout is valid for the Spanish Tax Authority.
    Thanks a lot in advance and best regards

    Hello Rafael BV,
    Have you read the SAP note 929649? It explains how to send model 347 via internet.
    We send 347 and 349 files via internet and it works. About the other models that you ask for, we generate the information with the report and complete it in the web site manually.
    We have another problem with the 347 model, some customers that send us invoices with IVA soportado and in this model, the system checks if it is a customer and appears as IVA repercutido. The program doesn't check the type of task, check only if it is a customer or vendor.
    Do you have any idea?
    Thanks in advance.

  • How do i create a multirecord Form for Display only.

    Hi,
    I am trying to create a multirecord form for display only.
    The form is based on one table only so when i try to create
    it using based on a Table or view i get the option of Tabular or
    custom.
    So if someone has faced or worked on a similar problem of creating
    multirecord form pls do reply.
    Thanks,
    Amit.

    Hi
    You can check this one. The previous link in turn points to this.
    Re: .NET application works OK on infrastructure, but has problems on midtie
    Thanks,
    Sharmila

Maybe you are looking for

  • Insert SQL does not work properly when called using CALL

    I have a stored procedure (TEST_SP) which is used to insert a record in this perticular case. The SQL statement is 2526 characters long. I'm using dim Params : Params=chr(1) & "Insert query" & Chr(1) & "=300" runsql=&"{call TEST_SP(?,?)}"&Params  dim

  • Variance Report between G/L Actual Balance v/s G/L Budgeted amount.

    Dear Sir, I have G/L Account wise company budget. I want to compare the same with G/L actual balance and arrive at a variance report. While executing the financial report at F.01 if I select Plan version as 0 the report is displaying the actual figur

  • Disappearing GB's

    just wondering if this is normal: even though i have not added anything to my Mac G5, that is, no new software or updates,I find that my GB allotment has gone down the last few times I awoke my machine from sleep, from 211 to to 210.5 to 209.8. it's

  • I have started to receive some emails that can not be deleted... what can I do?

    I have started to receive some spam messages in my Mail that can not be deleted... any suggestions?

  • Flash V9 Won't Work?

    I downloaded Flash V9 a few days ago and have seen some things that dont work, i dont remember all the pages but this is one page with a flash that wont work, it just keeps telling me to go to macromedia.com for the newest version of flash player. Eu