Problems with slot-shaped table and set the values of column

Hello

I have a problem with a tabular presentation.

I have two tables

P_detail and table v_master

columns of v_master:
v_id
v_Name
v_info

columns of p_detail:
P_ID
p_master_fk
p_name
p_info

I want to have a tabular presentation where I can store permanent data retail values. That's why I want to keep the default main column join the detail columns.
In SQL, I can do this with an outer join:

SELECT m.v_name, d.p_master_fk, d.p_name, d.p_info
OF v_master, p_detail
WHERE v_id = p_master_fk (+)

I get the lines that exist for the master data and can add values for the columns of detail. I removed the "add lines" because that makes no sense, because the amount lines are already offered at the opening of the tabular presentation.

Now, I want to get/save the v_id (main table) in the p_master_fk column value

How can I do this?

Thank you and best regards,
Matthias

Hello

One approach is to use a database instead trigger. If you define a database view using the query:

SELECT m.v_id, m.v_name, d.p_id, d.p_master_fk, d.p_name, d.p_info
OF v_master m, p_detail d
WHERE v_id = p_master_fk (+)

Then, create a trigger on the view that will insert in the detail table if d.p_id is null and update the secondary table if d.p_id is not null instead.

The Apex tabular form is then based on the view (with identifiers like hidden columns) and all treatments multirow Apex should work without modification.

Rod West

Tags: Database

Similar Questions

  • Since Acrobat Reader downloaded DC I can't sign my PDF documents. It does not give me the option more and yes I am connected. On the old version, I got no problem with clicking on "signature" and draw the area where I needed my signature, put passw

    Since Acrobat Reader downloaded DC I can't sign my PDF documents. It does not give me the option more and yes I am connected. On the old version, I got no problem with clicking on "signature" and draw the area where I needed my signature, put the password and "POOF" my signature would be there. With this new version, it won't do that or give me the option. The online help is useless. I need to explain to me how connect you as I used too?

    Hi nicholass35183848,

    I assumed that you had a digital signature created in your player application of old and whenever you use to fill out a pdf with a signature field signed you it. But in order to draw and then sign you must use Acrobat Pro DC no DC drive.

    Thank you

    Abhishek

  • Get and set the value to allow selected rolling Shuffle and facing page

    Hello world

    I work with the page and spread,

    For now, I want to value page spead shuffle and type of document.

    but I just find the function to get and set the value for the Document Pages allow Shuffle using the

    InterfacePtr < IPageLayoutPrefs > iPageLayoutPrefs (static_cast < IPageLayoutPrefs * > (: QueryPreferences (IID_IPAGELAYOUTPREFERENCES, iDocument)))

    It has no function to set and get the value of enable selected rolling Shuffle and facing page

    No one knows about it?

    I thank in advance

    There is no code for this example in the SDK or internet. Just understand and apply the concept.

    Find the code for the shuffle spread and together following spread shuffle...

    // Get active spread
    UIDRef GetActiveSpread() {
        UIDRef spreadRef = UIDRef::gNull;
    
        InterfacePtr layoutData(Utils()->QueryFrontLayoutData());
        if(layoutData) {
      spreadRef = layoutData->GetSpreadRef();
      }
    
      return spreadRef;
    }
    
    // Get spread shuffle of passed in spread
    bool16 GetSpreadShuffle(UIDRef& spreadRef) {
        InterfacePtr spread(spreadRef, UseDefaultIID());
        if(!spread)
      return kFalse;
    
      InterfacePtr iBoolData(spread, IID_IISLANDSPREAD);
        if(iBoolData) {
            return iBoolData->GetBool();
        }
    
        return kFalse;
    }
    
    // Set spread shuffle of passed in spread
    // @param bValue: kTrue = no shuffle, kFalse = allow shuffle
    ErrorCode SetSpreadShuffle(UIDRef spreadRef, bool16 bValue) {
        ErrorCode status = kFailure;
    
        InterfacePtr spreadCmd(CmdUtils::CreateCommand(kSetIslandSpreadCmdBoss));
        if(!spreadCmd)
            return status;
    
        spreadCmd->SetItemList(UIDList(spreadRef));
    
        InterfacePtr iBoolData(spreadCmd, UseDefaultIID());
        if(iBoolData) {
            iBoolData->Set(bValue);
        }
    
        status = CmdUtils::ProcessCommand(spreadCmd);
        return status;
    }
    
  • Can I create a cursor and set the values by myself

    Can I create a cursor and set the values by myself, and it has not been filled by an SQL?

    Thanks in advance

    Yes, you can.
    Use variables with a default value or nvl (some_parameter, some_variable) in your cursor WHERE predicate.
    They provide an example if it isn't clear, since that's all I can think about reading your post...

  • Problem with newest flash drive and restoring the system

    Greetings,

    SYSTEM - Windows XP SP3 with browser Firefox 5.0

    I run an anti-virus scan every day on my PC (Avast free 6.0.1023 with the updated definitions).

    Then I downloaded the latest version of the Flash player on your site at www.adobe.com/downloads/ last night but it was not installed.

    Ran a virus on the plug-in installation file and scan scan has reported that he was not able to scan multiple files because they were protected by password in archive - NEVER SAW THIS BEFORE.

    So I deleted the file from archive.

    This morning when I ran an antivirus scan everyday, he pointed out that several protected files in the last system restore point since the installation of Flash player file.

    So I tried to restore from Friday, the previous week, but the restore operation failed.

    Tried two days last month and the month before that; no notice of restore.

    Finally, I shut down the system, restore and rebooted the PC to erase all data in restore file.

    Then restarted system restore and ran the antivirus and all is well again.

    I used restoring the system previously on this computer without any problem.

    Also, I noticed the name of file to Setup plug-in is not the format of the normal name - install_flashplayer10_mssd_aih.exe

    instead of install_flashplayer.exe.


    I'm confused, why change a system that works?

    Thank you for your time and your help.

    Try to download installers from http://www.adobe.com/products/flashplayer/fp_distribution3.html

  • To loop through the table and use the values returned in another query

    Hello

    I tried to do something very simple, but still can not.

    I am trying to iterate on a table and use each line of a column in a where clause to display a query clause.

    For example:

    I want to retrieve all users of dba_users pass it to a clause where clause in a query to show for example account_status and profile of each user. But I want to do it in a way if I can turn the result in an html table.

    I tried too much really, so I'll post something that does not work, but which I think will show the problem I have,

    BEGIN
     FOR i IN (SELECT username from dba_users order by 1)
     LOOP
     EXECUTE IMMEDIATE 'select account_status from dba_users where username like ''||i.username||''';
     END LOOP;
     END;
     /
    

    Example of what I want to achieve:

    Suppose that there are two users, SYS, and SCOTT:

    USERNAME                       PROFILE                        ACCOUNT_STATUS
    ------------------------------ ------------------------------ --------------------------------
    SYS                            DEFAULT                        OPEN
    
    
    USERNAME                       PROFILE                        ACCOUNT_STATUS
    ------------------------------ ------------------------------ --------------------------------
    SCOTT                            DEFAULT                        OPEN
    

    Thanks in advance for your time,

    OD

    Hi Bill,

    Bill Citad kirjoitti:

    What a join or a sub query going to help me? honestly

    -- join
    select
      s.sql_id,
      h.loads_total
    from dba_hist_sqlstat h join v$sql s on (
      h.sql_id = s.sql_id
    )
    where rownum < 3
    ;
    
    -- subquery
    select
      sql_id,
      loads_total
    from dba_hist_sqlstat
    where sql_id in (
      select sql_id from v$sql where rownum < 3
    )
    ;
    
    -- correlated subquery
    select
      sql_id,
      loads_total
    from dba_hist_sqlstat
    where exists (
      select null from v$sql where sql_id = dba_hist_sqlstat.sql_id
    )
    and rownum < 3
    ;
    
    -- lateral inline view (12c)
    select
      s.sql_id,
      h.loads_total
    from dba_hist_sqlstat, lateral(
      select sql_id from v$sql where sql_id = h.sql_id
    ) s
    where rownum < 3
    ;
    
  • Get the value of the record in the table and set the Disabled property...

    Hello! I have the table in my JSPX page. I search for records and that you press one of the files with a right click, see: http://my.jetscreenshot.com/2677/20120203-fas1-30kb
    I put property disabled like that of my commandMenuItem:
    #{row.GenResGrupa != 'true'}
    But as you can see in my photo above, the disabled property do not work. Where I am wrong with my code:
     <af:commandMenuItem text="#{sampleBundle.pases}"
                                                  id="commandMenuItem1"
                                                  action="adfMenu_pasesDati"
                                                  actionListener="#{bindings.setCurrentRowWithKeyValue.execute}"
                                                  disabled="#{row.GenResGrupa != 'true'}"/> 
    Please correct me! If you need further information, please let me know.

    Best regards, Debuger!

    Dear Debuger,

    Add in your pageDef:





    And in your jspx:
    Disabled = ' #{bindings. " GenResGrupa.inputValue! = 'true'} '.

    NOTE: no disabled = "#{row.bindings.GenResGrupa.inputValue! = 'true'} '"

  • Problems with greyed of leaders and in the design of DW CC 20141 pane editing

    OK, I'm using a MacBook Pro System version 10.9.5. and Dreamweaver CC 20141. I'm trying to follow the introductory tutorial on the Adobe site, which is to create a basic page, structuring of the HTML and then comb it. In the tutorial, the page contains the code and the views live running. There are rules in the Live/Design pane and the instructor is able to enter the Live copy / Design pane as well as the code pane. When I try and follow my rules are not visible and are grayed out under the command of the leaders/view/Show. So, I can not leaders appears. I can only enter in the Code pane, not the design of the layout pane unless I double click on the type. When I double click the type in the design pane I am able to enter and change, but then the pane Code greys out.

    Seems that I have a preference setting wrong or something.

    Thanks for any help you can provide.

    What you describe is normal behavior. So I think that the tutorial should be posting code/design view. Try to switch to code/design and see if that helps.

  • compare a value to the range of values in the table and get the value of corr

    Hi all

    I'm a begineer and glued at one point.
    I have a table that has 2 fields
    number of days and the number of cards with values such as:

    number of days number of cards 20 1

    40 2
    60 3
    I have a SELECT query that returns the number of days, I need to get the number of cards based on the number of days.
    As if the select returns 30 I should get 1 as the number of cards, if select returns 48 I should get 2 and so on.

    Please help me

    Thanks and greetings
    SELECT MAX(num_of_cards)
    FROM   your_table
    WHERE  num_of_days <= X
    
  • is there a better way to set the value?

    It is a very simple application. Here's what I'm trying to accomplish:

    I click on the 'new order' button on page 1, and it takes me 10 page. In the meantime a new empty order is created. order_id is stored in the application element.

    Page 10, I click on 'choose the customer', and takes me to page 11, where I have a list of customers (a report), and by opting for a client (link column), p10_customer_id is defined, and the application navigates back to page 10.

    On page 10, there is a process of page that fires whenever the page is displayed (if order_id is not null), and update the orders table by setting the value of the item p10_customer_id the customer_id.

    What I want is simple: create a command, set the customer_id (and possibly settle the customer_id again if the user wants to change).

    It works now, but I don't like that the customer_id is updated each time this page is rendered. Simply put the customer_id of page 11 only, when the user selects a customer in the list.

    But I have not found a way to do it.

    Also, it would be good to create all of the order, the customer id, order items all in one transaction and post them right at the end, but I did see a way to not make any changes on a page when I navigate to another page. Because now, if something unexpected occurs, for example the user does not complete the order (navigates away, or closes the browser), the orders table will be almost completely empty, unused lines

    I use Oracle10g XE and Apex 3.1.2

    Thank you
    Gabor

    Hi Gee2,

    Have you checked how the collections of the apex? In my opinion, you can create an application of the cleaning by using this technique.
    There is a demand to make orders, created by default when you install APEX. Check the app.

    I hope this helps.
    Kind regards

    --
    Paulo Vale
    http://Apex-notes.blogspot.com

  • Is it possible to use advanced actions to set the value of the question?

    Hi - I am trying to develop a course of Captivate 4 and wish I could on slide enter advanced use of actions to check the value of a user variable, and if the variable is equal to x then set the value of the question (correct) 1. Is there a system variable, that I can use to define?

    This course is to download a package to an LMS (Moodle) SCORM.

    Ideas/suggestions would be greatly appreciated.

    Unfortunately, Captivate is not currently a way to manipulate SCORM score via advanced Actions and the user or System Variables.

    So that you could have OnSlideEnter check and set the value of a variable, you don't have a way to use this information to force sending a question slide.

  • I have problems with Lightroom. I just downloaded the creative cloud with LR and PS PS works fine, but does not open LR. It is stuck on the license screen and freezes. Please advise...

    I have problems with Lightroom. I just downloaded the creative cloud with LR and PS PS works fine, but does not open LR. It is stuck on the license screen and freezes. Please notify.

    reset your preferences-

    Acrobat: http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7feb.w .html

    Adobe media encoder: https://forums.adobe.com/thread/1713540

    Legacy: http://helpx.adobe.com/after-effects/using/preferences.html

    Bridge: https://helpx.adobe.com/bridge/kb/troubleshoot-errors-freezes-bridge-windows.html

    Dreamweaver: https://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs6-cc.html

    Flash: http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html

    Illustrator: http://helpx.adobe.com/illustrator/using/setting-preferences.html

    InDesign: https://forums.adobe.com/thread/526990

    Lightroom: https://helpx.adobe.com/lightroom/help/setting-preferences-lightroom.html

    Muse (mac): https://forums.adobe.com/thread/1246022?tstart=0

    Photoshop: https://forums.adobe.com/thread/375776

    Photoshop elements: https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html, http://www.photokaboom.com/photography/learn/Photoshop_Elements/troubleshooting/1_delete_p references_file.htm

    elements of first: https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html

    First pro: http://www.mediacollege.com/adobe/premiere/pro/troubleshooter/trash-preferences.html

  • Hello, I have a problem with Mozilla Firefox 14 and now also Firefox 15. When I click on .html files on my desktop, firefox will open a new window twice. Where is the th

    Hello, I have a problem with Mozilla Firefox 14 and now also Firefox 15. When I click on .html files on my desktop, firefox will open a new window twice. Where is the problem? Thank you

    That may be a problem with the DDE.

    Try to undo and redo Firefox as default browser.

    Make a different browser like IE browser by default and then let Firefox do it again.

    See:

  • I can't see the pictures in my yahoo email, I did not have this problem with other browsers. I used the safe mode and still no success. Help, please.

    Question
    I can't see the pictures in my yahoo email, I did not have this problem with other browsers. I used the mode 5 firefox safe and always without success. Help, please

    To help other users find solutions, please come back to this Thread and connect you to the
    Forum with your user name and password:

    Click on 'resolved' beside the answer above that BETTER resolved your issue

    DO NOT CLICK on 'Solved It' next to this answer

  • Someone at - he had problems with 9.2.1 and pairing Bluetooth devices?  My iPhone will not be connected or pair of devices.  Devices to recognize the iPhone 6, but the will of the iPhone 6 does not recognize the device.  Is there a problem with 9.2.1?

    Someone at - he had problems with 9.2.1 and pairing Bluetooth devices?  My iPhone will not be connected or pair of devices.  Devices to recognize the iPhone 6, but the will of the iPhone 6 does not recognize the device.  Is there a problem with 9.2.1?

    Kev2012 wrote:

    Someone at - he had problems with 9.2.1 and pairing Bluetooth devices?  My iPhone will not be connected or pair of devices.  Devices to recognize the iPhone 6, but the will of the iPhone 6 does not recognize the device.  Is there a problem with 9.2.1?

    It would depend on what you're trying to link to?

    Here are the supported Bluetooth profiles an Apple device can connect to iOS: Bluetooth profiles supported - Apple Support

Maybe you are looking for