Validation on unsaved records of block on oracle form.

In my oracle apps standard form i've approx 8 blocks. i want to write validation on first block(T1) on base of unsaved or saved records on second block(T2).
Data are only on oracle forms not in data base so i cannot use table.
Whenever user moved from T2 to T1 then i've check how many unsaved record are there on base need to write validation.
Its very urgent. Your immediate help would be appreciated.
Thanks

Thanks for replying.
I've checked with GET_RECORD_PROPERTY but i'm getting status like NEW,CHANGED,QUERY.
My questions is i wanna to make validation on T2 block un saved data.
i want data values in T1 block.
Regards,

Similar Messages

  • Forms clause query data source data block in oracle forms

    Hello experts,
                  I am new in oracle forms.I am using oracle forms 11g with weblogic 10.3.5 at windows 7.Through googaling I know how to create a database block,forms clause data block and stored procedure based datablock in oracle forms.I want to know that as in case of  Database based datablock, could we commit form either on editing records or on insertion or deletion in data block.
    I tried this but got error frm 40501.If we can perform editing and creation in such type of datablock then please tell me how.
    Thank You,
    regards
    aaditya

    When I base my datablock on a query using the "From Clause" property of the block query data source in the oracle Forms 6i,
    I get the strange error
    "ORA-00928: missing SELECT keyword"
    The query I see in the Display Error in Help Menu is
    SELECT DAY_NUMBER,CONSULTANT_ID,EVENT_ID,EVENT_NUMBER,SESSION_NUMBER,HOURS_UNPAID,HOURS_PAID,PAPERWORK FROM (EVENT_ASSIGNED_CONSULTANT) WHERE (CONSULTANT_ID=:1)
    What should I do now?????? Please remove the brackets () from the table name.
    Instead of (EVENT_ASSIGNED_CONSULTANT) use
    EVENT_ASSIGNED_CONSULTANT

  • How can i generate sequence numbers to my detailed block in Oracle Forms 9i

    Hi all,
    i have a detail block.
    in that block sno (serial no) (multi row column)is one column.
    What i want is when i enter into that block sno should generate automatically....like..
    1 for first record
    2 for second record..
    i need the code for this can anybode help me.
    Venkat.

    Hello,
    You could use the current record number in a When-Create-Record trigger:
    If :block.sequence IS NULL Then
       :block.sequence := Get_Block_Property( 'block', CURRENT_RECORD ) ;
    End if ;Francois

  • Sorting the data of control block in oracle form 10g

    I have two block....both are the control block..
    in first block i select the date and in second block the data of that date is populated.but the data is populated
    using cursor in when-button-pressed trigger of that first block button...
    in cursor the data is selected and placed in field of detail block using into clause.... each field..
    .and one item of detail block is srno which is create in post-query of detail block using
    :sysyem.trigger_record.
    Now i want after populated the detail block the data is sorted desc one of the field of the detail block...
    Can this possible using set_block_property() of block although the block is control block if yes where i should do
    this??????
    Please explian...????

    but with the cursor of repopulate ...how the block is in desc by one field..because if i use again the same cursor to poulate than whats this benefits???
    if i write a cursor in button when-button-trigger in first block like this code....
    go_block('');
    cursor emp_cur is
    select empno,date,sal
    from emp;
    begin
    for i in cur loop
    select i.empno,i.date,i.sal
    into :empno,:date,:sal
    from emp
    end loop
    end;
    this loop populate the block which is controll block..
    syntax error should be ignored ...i wana to explain what i want to do...
    this is not the actual query i have another query but the concept is that...
    how i can do this...

  • How to create dynamic blocks in oracle forms

    Hi All,
    Is it possible to create a dynamic blocks and items in forms? I mean based on table driven values I want to create a blocks and items in the forms.
    I appreciate the help.
    Thanks
    Srini.

    No, Here is an example.
    Say for example I have a table called docs in that I have three columns col_name, col_type, and table_name the data will look like below
    col_name|col_type|table_name
    empno|     single row|     emp
    empname|     single row|     emp
    I want to create a block pointed emp table and columns (fields on the block) with specified in my docs table. The col name and table name may change based on some rules. So I want to create block (s) based data in docs table.
    Thanks
    Srini.

  • Openscript crashing abruptly while trying to record on Oracle Forms

    Hi ,
    I am having issues with OpenScript tool where it is crashing/closing when I am trying to record some actions on Oracle Forms.It seems like a memory issue but I am not sure how to rectify it or investigate what is the cause.Are there any temp files which needs to be cleared ?Are there any logs which I can check to see what the issue is?I am using a Windows-7 machine and running OATS 9.3.
    Thanks,
    Megha
    Edited by: Megha_Agarwal on 23/08/2012 19:45

    Hello Megha
    You can try the following:
    Go to your shortcut to OpenScript in your Programs menu, and right click on it. Select Properties.
    You will see Popup OpenScript Properties. Ther is Shortcut tab located text box Target. Copy the content of this text box in some notepad file, as a back up, and increase Xmx to 1024 for example
    C:\OracleATS\openScript\OpenScript.exe -configuration openscript_configuration -vm C:\OracleATS\openScript\jre\bin\java.exe -vmargs -Xmx512m -XX:MaxPermSize=256m
    You can try different values.
    Let us know the result
    Cheers
    JB

  • Problem using views containing xpath expressions with Oracle Forms

    Mark,
    Nice to see you back on the forum answering questions.
    This example is based on the standard purchaseorder schema.
    i registered the schema, created a relational table and then created
    a view using xpath.everything works well and i am able to select the data
    using sql*plus. Now this views is like any other view, when i describe the
    view, i can see the all the data types are valid for the columns and also the lengths.
    Now when i try to base a data block in oracle forms using this view, i get error
    "ORA-24324 - service handle not initialized."
    Whereas if i create another view on top of the first view and then base the data block on this view, it works for me. i described the second view from sql*plus and everything seems to be same for me.
    this is the same behaviour from database 9i r2 and it exists in 10g r1 also.
    Any hints as what might be the problem or you would like me to file a tar for this.
    create or replace view purchaseorder_header_xml
    as
    select  id
           ,extractvalue(xml_data, '/PurchaseOrder/Reference') reference
           ,extractvalue(xml_data, '/PurchaseOrder/Requestor') requestor
           ,extractvalue(xml_data, '/PurchaseOrder/User')      po_user
           ,extractvalue(xml_data, '/PurchaseOrder/CostCenter') costcenter
           ,extractvalue(xml_data, '/PurchaseOrder/SpecialInstructions') spl_instructions
    from tab_xmldata
    create or replace view purchaseorder_header
    as select * from purchaseorder_header_xml
    /Raghu

    Not used Forms for years. However I suspect that Forms is trying to poke around behind the view and not understanding what it sees. I expect you'll need to open a Forms Tar to get to the bottom of this. It also appears that you a workaround which is to create a view on the view by the sound of it..

  • How to show a long with database datablock in a small width frame using horizontal scrollbar in oracle forms

    Hello Experts,
                  I am new in oracle forms and  I am  using Oracle forms 11.1.2.2.0 with weblogic 10.3.6 generic at windows 7 64 bit.
    My java version is jdk1.7.0_51.
    I have a database table say as ITEM_MASTER.This table has 20 columns.Now I have to show these 20 columns in oracle form in a single frame.I have used the wizard method to make database block in oracle forms but This datablock takes too much width.
    I wand to show all the columns with in a short width frame in oracle forms using horizontal scroll bar.But I am unable to do this.Please suggest me.
    thank you
    regards
    aaditya.

    This can be accomplished using a Stacked Canvas.  There are numerous examples of how to use a stacked canvase on the web.  For example:  https://www.google.com/search?q=oracle+forms+how+to+use+a+stacked+canvas
    Craig...

  • How to Display Grid in ORacle Forms

    Hi Friends and Experts
    I have a requirement to display the records in Grid in ORacle Forms. This grid is a kind of Java grid. Help on this or any reference material for implementing this would be grately appreciated.
    Thanks in Advance.
    Ahmed

    what forms-version?
    what exactly do you mean with grid? Do you have a special ready-made component you want to use ? Do you have any functional requirements for your grid?
    For a "normal" data grid, you could just layout your data in tabular way, perhaps with a stacked canvas, to have a scrollable area to the right
    If you use forms in web you could use a javabean for this, if so have a look at Francois's blog-page http://forms.pjc.bean.over-blog.com/40-categorie-461064.html
    hope this helps

  • Automated regression tests on Oracle*Forms

    Hi all,
    We're looking for a toolset that allows automated regression tests (record/playback) on an Oracle Forms GUI. Something like QuickTest*Pro (previously Winrunner).
    Anybody having experience with this ? Thanks for sharing it.

    Check tool called DataLoader
    http://www.dbload.com/

  • How to avoid Oracle Form to perform commit action ?

    I have a question.
    The case is: After a user correct some data displayed in text items, he needs to click a button to update the record.
    However, the oracle form the commit the update action.
    I don't want to allow Oracle Form to perform commit UNTIL the user closes the oracle form.
    Is it possible to do so?
    If yes, I should use what kinds of Trigger to realize this.
    Thanks a lot.

    First of all I wanna give you advice that please must specify your forms version with complete precision say 10g 10.1.2.0.1 or if 6i.... then tell everyone what have you done regarding your requirements and what are your errors and problems...
    I dont want to allow Oracle Form to perform commit UNTIL the user closes the oracle formso simple is that make a button with label Exit , in WHEN-BUTTON-PRESS trigger write code
    exit_form(ask_commit);
    you can use NO_VALIDATE if you don't want your form to perform commit anyways. . .
    hope it works

  • Oracle Forms migration to JDeveloper

    Hi everybody,
    We got here a large pool of Oracle Forms and PL/SQL savvy resources. They mainly use Oracle Designer to generate Oracle Forms applications. Occasionnaly, they tweak the generated forms with PL/SQL triggers to adapt the application for special needs.
    Now, they would like to go towards applications with HTML front-ends. With the advent of JDeveloper 10g (9.0.5), it might be the right time. With the ADF framework, screen painter, design time components, etc... there should be an easier learning curve for people with no java experience. Yes, we expect a couple of guys that should be very Java savvy but it should not be required for the entire pool of developer resources.
    Personnaly, I investigate the business tier (or data tier) to identify changes in the development methodology required to address the java environment.
    Currently, a good part of the business rules are defined within the database through the use of triggers. Should it stay the same with the use of ADF BC4J ? I mean, is there some situations where some kind of business logic or validation should reside within the BC4J model for the sake of performance or ease of development with ADF and the design time components? Maybe I should duplicate in java (within BC4J) some kind of validations like we used to do with Oracle Forms (through PL/SQL form triggers) to give the user a better UI response?
    I need some guidelines here.
    Thank you

    Thanks Prasoon for you suggestions.
    We're not heading toward application conversions from Forms to J2EE. Instead, we're thinking development methodology transformation from Designer/Forms to J2EE. But, in the beginning we're trying to minimize the efforts needed to learn the java (and J2EE) complexities. In the middle/long term, the developers should apply the correct techniques to build web applications with the right tools and proven J2EE standards.
    Right now, we're looking at the Designer ADF Business Components Generator comming with JDeveloper 10g to see to what extent we can reproduce in BC4J what we can define in Designer for a module. In the first time, we intend to continue module definitions in Designer (instead of UML Activity or Class diagram). That part should sufice for the database definition and the model layer. For the view layer, I think that the new screen painter in JDeveloper can be used the same way the developers used the screen designer in Oracle Designer. That leaves the Struts Page Flow for the controler layer.
    We know that JDeveloper has not evolved yet to the level of what Oracle Designer can do. There is a certain amount of stepping back in the design of an application. But we think we must step in the J2EE world some day and maybe JDeveloper 10g give us that opportunity. After further evaluation, if we think the gap is too large, maybe we'll wait for a next JDeveloper evolution.
    Yves

  • Updating record in a data block based on view in oracle forms

    hi all ,
    We have two data blocks in our custom oracle form.The first data block is for search criteria provided with buttons 'GO' and 'ADD ROW' and the second data block is based on a view that fetches record when user clicks on GO based on the the criteria specified in the above block. The Below block contains one SAVE button too.
    We have a requirement when GO button is pressed and corresponding records are shown in the below block, user should be able to edit the record. Want to know how to make it editable?
    Help appreciated....!!!

    Your view is based on how many tables and does it include all NOT NULL fields from all tables?

  • Oracle Forms - need to update multi-record block - Help needed asap

    Hi,
    We are using Oracle apps release 11i - Oracle forms 6i.
    I have a field "project_start_date" in project_block in a custom form. There is another multi-record block called role_block in the same custom form and it has a field named start_date. Requirement is when ever I make change in the project_start_date in project_block, that should reflect in role_block.start_date. I tried different means and could update only the very first record of the multi-record block - role_block. I need to update all the records in the role_block with the same project_start_date. Used looping and several other methods. But could not achieve. Any help is really appreciated.
    Thanks
    Akil

    Hi;
    For your issue i suggest close your thread here as changing thread status to answered and move it to Forum Home » Application Development in PL/SQL » Forms which you can get more quick response
    Regard
    Helios

  • Record blocking in Oracle

    can we say that there is no record blocking in Oracle if two users from two session access the same block at the same time even if the select statment
    will occur just before a commit(like writing the select statment in a pre-insert
    trigger at the form level where the select will be performed just before the
    insert is applid to the databse)???
    THANKS A LOT FOR YOUR HELP

    Just a clarification about READ CONSISTENCY.
    Even if first session commits, second session will see changes only if it started after the commit. Let's see an example :
    - time 0 : session2 reads row 1
    - time 1 : session1 updates row 2 and commits
    - time 2 : session2 reads row 2 : it gets old data, and Oracle uses undo segments to do that.
    See
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96524/c01_02intro.htm#44609
    Paul

Maybe you are looking for

  • Itunes 10.5 and 11 cant identify my iphone 4s

    i dont know what happened. my 4s was charging via usb in my computer. itunes usually starts up when my pc identifies my 4s. this time, my 4s was charging but itunes didnt start so i unplugged my 4s and plugged again. nothing happened. i updated itune

  • CSS Bypassing farm traffic based on matching HTTP header

    Hi, I am trying to find out whether the CSS is able to bypass specific traffic. I have an existing content to match all HTTP and send to a farm. However, there are some HTTP flows i dont want to goto the farm, i just want CSS to route them onward to

  • Clean and Pristine AD Migration with same top level domain, possible?

    We had planned on doing a C&P migration of a domain with the initial assumption that the TLD was .local. Turns out it is .com, is it still possible to do C&P? TLD is company.com, no sub domain. We want xxxxxxx.company.com as the AD sub domain.  From

  • Re: CHANGE ANNUAL VACATION BENEFIT WITH HOURS CHANGE

    Hi In annual vacation benifit, an employee having Full time (100%) like say an e.g having 120 hrs quota.for the year say 01.01.06 to 31.12.06. In between middle of the year say 01.06.06 i want to change as part time as 75% in infotype 007 (activated

  • Error in looking who gave kudos to a post

    Forgive me if somebody already posted it: I found no meaningful search criteria to find that post... Several times it has happened to me to look who gave kudos to some post: normally I arrive at the correct user list, but sometimes I ended up giving