Master detail form: block details query by description field

Hello

I have a form master detail where detail block has LOV by querying the master block, the block of retail is filled with the values of description not code values in the secondary table which I am able to do using Post-requete trigger on block of retail.

When go to mode query in detail block and enter the description and the query I get not all records. How to do the query mode works by description

Help, please

Thank you

Yes... you have to...

((table_col_desc comme: m_desc ou: m_desc est null))
and (as table_col_desc: m_desc_1 or: m_desc_1 is null)
and (as table_col_desc: m_desc_2 or: m_desc_2 is null)
)

or include the clause to exist...

Guess it works for you... Post the result

Published by: Dora on December 15, 2009 08:25

Tags: Oracle Development

Similar Questions

  • Delete the Message to save Oracle Forms in a block of master / detail

    Afternoon and Happy Friday people.

    I use Oracle form 6i.

    I have a master-detail block in my form. They both have several records. When I make changes to the block of retail and I navigates to another record of the block Master, he asks me "do you want to save the changes that you have made?" Yes/No/Cancel options. This is the message embedded in Oracle and not our custom save the message. I also noticed that when I say 'Yes' to this message, it does not in the trigger key - Commit who defeated the purpose of having the trigger key validation.

    Now, this message is coming due to a relationship of the master / detail? Also, what trigger I would seek to trap this message?

    Finally, I also noticed that this message (oracle save message) appears after our own custom message when I said 'No' to our personalized Message to register.

    Any help would be appreciated.

    I was wondering why forms brings the Message of the Oracle of inbulit when I'm sailing up to recording the Master block next

    The retail block must be erased when you navigate to another master to "make room" for the details of this new form of Basic. So, if there are changes in the retail block, forms asking the user what should happen with the changes. If you want to manage this situation yourself, put your own code in the WE-CLEAR-DETAIL-trigger before the call to CLEAR_ALL_MASTER_DETAILS;

  • Master detail form based on single Table

    Hi all.
    I have a table like

    daily_transaction
    (
    TRANSACTION_DATE DATE,
    LINE_ID NUMBER,
    ITEM_CODE VARCHAR2 (10),
    NUMBER OF BALANCE,
    DESCRIPTION VARCHAR2 (500)
    )

    Now, I want to build form master detail

    master form have only transaction Date all in the form of retail have row id, item, balance, date of transaction, description code

    I join date of the main transaction with the date of the transaction in detail

    now the problem is when I enter two archives in the form and save it, it save 3 record in the table, an empty line except transaction date
    Please guide me how to save two archives:

    Secondly when I update / edit date of master on the date of the operation blank line change, how do I update details form

    In order to perform an update on a view - it must be a "editable view. You try to update the MASTER block (based on the view)? Otherwise, make sure that you change the property update block allowed to 'No' as it is default to 'yes '. If you do not update the MASTER block, make sure that your point of view is "can". Read this article from Tom ask article on editable views. http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:5226026422731.

    Craig...

  • Unique constraint in the form of master detail error

    Hi all

    I need help, the following requirement.

    I have a master detail form developed on master-child table. the tables have the composite key.

    Old masters has a composite key on columns (A, B)

    Children table has a composite key on columns (A, B, C)

    Child block look something like below

    C       A          B

    10 AAA 1000

    20 1300 BBB

    30 CCC 1400

    40 DDD 1200

    Increments of column C with 10 for each record, and if a new record is insert in intermediaries the records it is incremented to 5.

    My requirement is when an end user attempts to insert record between 20 and 30 or 30 and 40 and clicks on save, the value of the C column must regenerate as shown below

    C       A          B

    10 AAA 1000

    20 1300 BBB

    XXX 30 900

    40 CCC 1400

    50 DDD 1200

    Button Save I wrote the following code

    Declare
      ln_Count NUMBER :=0;
      ln_c number :=0
      cursor c1 is
      select c
      from child
      where a=:child.a
      and b=:child.b
    Begin
      Go_Block('Child');
      First_Record;
      LOOP
      ln_Count:= ln_Count+10;
      :child.C := ln_Count;
      EXIT When :System.Last_Record = 'TRUE';
      Next_Record;
      END LOOP;
    
    
      For c_cur in c1 Loop
      update child
      set c:=ln_c+10
      where a=:child.a
      and b=:child.b 
      and c=c_cur.c
      end loop;
      Forms_DDL('commit');
         
         commit_prc('Commit');  -- We have our own program unit to call commit_form
    
    END;
    

    I tried above in a way because, before approving the changes to the table, I update the existing values in the table of the C column so I would not get unique constraint error.

    When you click the button Save, I get a constraint exception. Hope I made my requirement clear.

    Can someone give me a clue to this implementation.

    Thank you

    malandain

    With this update, all your C-columnvalue became negative. When you post the form thereafter, forms update agaion records one by one the new positive figures. Because the numbers of 'old' in the db are now negative, there will be no violation-UK.

  • How to create the column of the table for long-form Master detail relationship

    Apex 4.1

    Oracle 11g

    I created a form master detail and see the main table hotel_list and table hotel_mapping as detailed below.

    Hotel_list

    ID HOTEL_NAME

    1 Holiday Inn

    Hotel Hilton 2

    Hotel_mapping

    ID HOTEL_NAME MAPPING_NAME

    1 Inn Holiday Inn Select hotel

    2 holiday hotel Holiday Inn Select

    3 hotel Holiday Inn Holiday Inn Hotel

    4 Hilton Hotel Hilton Hotel chain

    Hotel Hilton 5 HiltonHotel

    Table Hotel_name Hotel_list is a linked table Hotel_mapping

    When I add a line to the Hotel_mapping table for the selected row in the hotel_list table, mapping_name of column is null, therefore impossible to create the relationship between the main table and the secondary table.

    I would like to know, how to create the relationship?

    Thank you very much

    Best regards

    Yong Huang,

    simple step see creating a form detailed master with APEX - Assistant Master retail

    and check how to maintain the relationship between two tables,

    simple return the packaged application «Sample of Masters details»

    and try to understand this concept...

    In your example, use Hotel_list.ID as a foreign key in the table Hotel_mapping

    and maintain the relationship with the column ID...

    and choose the display type of the column Hotel_list.ID in table Hotel_mapping as List(Query Based LOV) select.

    otherwise the best way is to create sample on oracle.apex.com

    I hope this helps...

    Leave.

  • How to display two dept details at the same time in the form of master-detail

    Hi Experts

    In Forms 6I, using the Scott schema, table DEPT & EMP has created a simple form of master-details relationships.

    Currently when user Dept Block shows all lines dept and EMP block display data based on the selection of deptno.

    It's only a deptno both.

    If the user in the No. 10, block EMP Dept will display all the data related to 10

    If the user moves to 20 Deptno, block EMP will display all the data related to 20.

    And so on.

    But our requirement, what happens if we want to see the 10 and 20 at once (both several deptno)

    Thank you

    Thanks for your information.

    In fact, our requirement is only to display data, he own be no matter what update of data/insertion.

    So below and working for our requirement

    • Remove relationship
    • Additional box on master block.
    • Write code cursor on the box selection - which will fill/clear data block information based on the checkbox selection on block Master.

    Oracle Apps training: how to display two Department employee details at the same time in the master/detail relationship

  • Master detail form can not insert foreign key

    Hello

    I Master detail form, in the data block master, I Header_ID primary key and it is generated through trigger on the main table and this field is found in the data block but is hidden on the Web, this Header_ID is a key in another table, on the form, I created the main form and has also created the good relationship. now, when the new record is inserted, the Header_ID in the main table is filled properly while in the secondary table that goes with the NULL value. I have no idea how to solve this problem, any help will be appreciated

    Rather than use a database trigger, select INSERT before triggering in the basic data block to fill the HEADER_ID.

    In the before INSERT trigger, you'd have a line like:

    select seq.nextval into :MASTER.HEADER_ID from dual;
    

    When you do this in the before INSERT trigger will fill the element in the block MASTER that feeds in turn the question into the DETAILS or blocks.

  • How to determine the ROWNUM in a Master detail form

    Hello

    I work in a master detail form with controls and information in order of points; I have created a process that allows users to select a product on a tabular presentation ID and the next column is filled automatically with the Product Description.

    To achieve this, I followed some instructions by Denes Kubicek (http://apex.oracle.com/pls/otn/f?p=31517:241), but my case is slightly different:

    < ul > I use a form tabular-created by Wizard, instead of manual tabular form; and < /ul >
    < ul > instead of using another page as a Popup to pass the parameter of the ROWNUM, I use a plugin called "tabular form Super LOV" which is a modified version of Super LOV the SkillBuilders who works on tabular forms. < /ul >

    The product ID is returned in the line by the plug-in; but in the case of the Description of the product, it is always returned in the first row; and my problem is that I don't know how to determine the line where the user clicked to call the plugin.

    I created an example in apex.oracle.com in case someone wants to look at:
    Workspace: ediazjorge
    User name: test
    Password: test
    App name: Sample App
    The app number: 1550

    BTW, I use Apex 4.1.1.00.23 and Oracle DB 10.3.2.

    Thanks in advance,

    Erick

    See what {message identifier: = 10436048}

    OR

    {message: id = 10458307}

    You must use something like below

    //in your case currIndex means the ROWNUM value you have
    $('input[name="f03"]')[currIndex].val('some thing')
    

    And for the jquery selector try this

    $('img[alt="Popup Lov"]')
    
  • Is master detail in cascade LOV possible for details on a form?

    I have a form master detail to assign levels of skills to employees. Skill levels fall within areas. I have a LOV on the level of skills in the details, but I want to filter LOV skills by area, using a LOV cascading as follows:
    --------------------------------------------------------------------------------------------------------
    Master region
    Data on employees, etc..
    ---------------------------------------------------------------------------------------
    Detail region
    * [LOV domain] * {it is page-level element.  He appears only once on the page}

    * [skillset LOV] *... and other skills related fields {}
    * [skillset LOV] *... and other skills related fields {}
    * [skillset LOV] *... and other related skills fields {here are the details, many on each page}
    * [skillset LOV] *... and other skills related fields {}
    * [skillset LOV] *... and other skills related fields {}
    etc.

    [buttons, etc.]
    --------------------------------------------------------------------------------------------------------

    I added the page level [area LOV] element as part of the selection list. It works and is called P45_DOMAINS

    I then modified the query on the [skillset LOV] to add a where clause for the item clause:

    where DOMAIN =: P45_DOMAINS

    It does not work. [Skillset LOV] returns no data.

    Hello
    What version of Apex?

    If on 4.x then you did P45_DOMAINS LoV the Parent of the child LoV?

    If your form detail is a tabular form then LoVs cascading are not supported. You must build your own LoVs cascading using the technique from Denes Kubicek example here.

    See you soon,.

    Published by: Dominique on 23 August 2012 09:29

  • Get details about the form master / detail

    Hello
    I use forms6i.
    I have a clarification on master form / retail.
    If suppose a form with 2 revenge (block master / details) inside.
    We run the form and enter a few details in the main block, and then in the block of details, and so we try to navigate to the record next to the master.
    If he asks "do you want to save the changes?" before moving to the next main record?

    Why I ask, this is where we use the model, and she asked you want to save.
    (Even without a model also I get the same).
    Just to confirm if it is the default customer forms and may be in my forms goods are prepared, so that it can behave this way.

    You can issue a MESSAGE in the on-CLEAR-DETAILS-the trigger, this "will save" data in the database, without actually committing.

  • issue of block master / detail

    Hello
    I have questions about the display of data in a block of master / detail. I've downloaded an image: [http://img13.imageshack.us/my.php?image=54741983.jpg]
    I think it's clear
    also, the first block and the PROFIL_ANSCOLAR are blocks of master / detail. Help me please if you can

    Thank you

    No, you do not have a loop, and you should not do.

    The code with the slider that fills the: profil_anscolar.den_profil must be placed in the POST-QUERY-trigger of the retail block. The POST-QUERY-trigger fires once for each row in the PROFIL_ANSCOLAR block and therefore meets the den_profil for each record.

  • master detail forms

    Hi experts,
    Now what I want is that I have two differnet forms in a same canvas and two GEC is referring to the same table. I want that when I'm going to give entry to the first form and after having pressed a button, I'll find the details in the second form.

    The two forms are connected to the same table that is why there is no ship master details of relationship between them.

    can you please suggest something.

    Concerning
    Rajat

    By "form" you mean right blocks?
    Try to make a self-join relationship between the two blocs, but ultimately depends on your data structure, you can and maybe aren't able to use self join, but it is worth the try.

    Tony

  • Form master / detail apex 5 tries to update the lines of details without apparent change

    A form master / detail of Apex default 5.0 creates buttons back and forward on the main table. When you move between records, the detail region launches a message: update 0 row (s), 0 or the inserted rows.

    Glance in occasional of the user, it will look like a mistake: I, what has changed and why it has not been saved?

    If nothing has changed, why is a MRU statement update being generated?

    How do I remove this behavior? Is this a bug?

    You can see in https://apex.oracle.com/pls/apex/f?p=74308:LOGIN_DESKTOP:113903018138704:, the application of MasterDetail Claim_Charge. Credentials are of assistance/Viewer.

    Thank you!

    Hello

    Create a new hidden element Px_RUN_MRU and the value of

    Source used "Always replace the value that exists in the session state."

    Source of Type ' static assignment (the value corresponds to the source attribute) ' and

    Value of source or phrase "N".

    Then create new PL/SQL process for tabular and use the code

    if :Px_RUN_MRU = 'N' and :APEX$ROW_STATUS IN('C', 'U', 'D') then
      :Px_RUN_MRU := 'Y';
    end if;
    

    Make sure that this process is captured in the form of process MRU.

    Then change tabular MRU to love affection

    (:request like ('SAVE') or :request like 'GET_NEXT%' or :request like 'GET_PREV%')
    and :Px_RUN_MRU = 'Y'
    

    Kind regards

    Jari

  • Create a form master detail.

    Hello

    I am creating a form master detail following this tutorial: Blog of Zeeshan Baig: master form design / detail in Oracle ADF

    However, I'm stuck at this stage where I need to create a link to the view. I'm not able to add the departmentview departmentid. The Add button is not turning on.

    Please refer to the screenshot below. Thank you.

    cvl2.jpg

    You have chosen DepartmentsView in both places.

    You must choose the DepartmentsView to the source and the EmployeesView in the destination.

    See you soon

    AJ

  • Master / detail Edit - any form of detail is displayed on the page?

    I have a simple application, built on a master of table BPR_PROC (a single column, PROC_NM). And a secondary table BPR_RUN (PROC_NM columns and a few others). There are only 4 pages: (1 House, Master 2, 3, 4 Login details). I did this as a standard form - create selection master / detail.

    When I create or edit a master (PBR_PROC), the mounting happens on details page - well, very well so far. But no form is displayed with the detail rows exist (according to the BPR_RUN of detail table) or whatever it is for me to go into details. (I'm sure I've done app M - d. before and the change of details form appears at the bottom of the details page but I am noit do here).

    Question: How can I fix to add / modify detail rows?

    WS: APEX_EXAMPLES_01
    User: demo
    PW: demo
    Appl: BPR_991203

    Thank you
    Howard

    (For later: Question: is there a simple way to do the master editing on master rather than on the detail page?)

    Howard (in training) wrote:
    Ah! I've recreated the problem - this time on pages 12 & 13 and as before

    the point value / Expression 1 Is NOT NULL column condition on the detail region seems to lack a little:

    So, it's a "bug"?

    Probably something to do with the creation of forms of master-detail using ROWID instead of a real process of generated by the wizard of PK. APEX theory. PKs relational DB meaningful, immutable like immutable PKs. Despite the bug condition region of detail, is why your column editable PROC_NM if it is used as the PK? It is a good way to break things. (I created now orphaned detail rows).

    If you want to take advantage of the built-in features of APEX as ARP and MRU wizard-generated process, then go with the flow: use surrogate keys. Otherwise you'll spend your time to write a lot of code manual.

Maybe you are looking for

  • 10.11.6 updating making my battery not charging?

    Is anyone else finding this happens after they update to 10.11.6? I went through all the remedies suggested for this problem with no change. The only thing I have not tried is back to 10.11.5. Already done: Reset SMC Reset the PRAM Reboot into recove

  • How can I find out which of my pictures have not been put in albums?

    I just put all the photos from my iphone into my iphoto macbook. They're not going in the new import location that they are all in "all photos". I would like to know which photos are not in albums already so I can organize them into albums easily. Pl

  • ENVY 17-j067ez: SSD hard drive for hp envy 17-j067ez

    Can I put disc hard patriot ssd in hp envy 17-j067ez as well as my hard drive of 1 TB? And if I can put this ssd what is the top speed of this drive in my laptop? SRY for bad English and tnx a lot. Link to SSD drive hard description https://patriotme

  • Wireless not connect Dell Inspiron N5010.

    I've had this computer for 2 years now. Last night the wireless off randomly, so I thought that was the internet. But when I tried to connect to a different internet, I noticed it says that my wireless is turned off. So I thought I fell just the wire

  • The phones call log smart blackBerry, connection cables and several SMS

    Hello... Using a Blackberry Curve 8900, bought about 10 days back. Can you please advise me how to put the call on log settings... I can't see the fact/received/missed calls in the morning, when I check in the evening... Pls advise. Also, I have a ca