Master-detail-shape; Hide/show columns in the form of details according to the column

Hello

I have a form master detail. In the long form, I have the columns:
ID, MASTER_ID_FK, PC_SOURCE, A_C1, A_C2, A_C3, B_C1, B_C2, B_C3

The PC_SOURCE of the column must be a LOV with values
NULL VALUE
A
B

So if I choose or enter a master record the detailed form appears and I can enter one or more detail records.

PC_SOURCE is the first column.
If I choose one, the columns B_C1, B_C2, B_C3 should disappear as there should be no possible entry.
If I have B, A_C1, A_C3, A_C2 columsn should disappear as there should be no possible entry.

Is this possible?

I tried a bit of my own, but without success. I tried to put in the first column (lov SOURCE PC) in the attributes of the element a javascript call like onChange = "do_Refresh('#PC_SOURCE#'); »

The javascript funktion do_Refresh tries to grab the value of the column and the value of a hidden item P1_SOURCE as document.getElementById('P1_SOURCE').value = v_source;

But this does not work, because there is not the value of the recovered column.
And probably can´t work because of more lines of a detail.

Thank you and best regards,
Matthias

Hello

The html code of your detailed form will be an array of the elements of entry with names f01, f02, etc.. The columns of the key of the fields are normally hidden, so your PC_SOURCE column will probably use the name f03. A_C1 column name will be f04 etc.

Once you have the input names for your columns, you can create a dynamic action (DA) to hide the items you want.

You want the DA to fire when any element PC_SOURCE is changed if you want when to be:
Event: change
Selection type: jQuery Selector
jQuery Selector: input [name = "f03"]
Condition: no strings attached

The action is to hide an element in the same line, if the changed item is a value. The action must therefore:
Action: Run the JavaScript Code
Fires when the event is: true
Code: if(this.triggeringElement.value=="A") {$x_Hide ('f04_' + this.triggeringElement.id.split ('_') [1])}

You then need a lot of real actions for each item that you want to hide.

Rod West

Tags: Database

Similar Questions

  • Is it possible to hide / show columns in the dashboard?

    Hi all

    It is my very first post in this forum OBIEE.

    My requirement is to allow users to select what they want to see answers of columns asking in dashboard. For example in the application of responses he is 10 columns and 5 of them are hidden. Is it possible to change this property hide these columns hidden in the Dashboard?

    Thanks in advance.

    If you are thinking about a multiple selection prompt that has your names of columns as values, then no, you can't. But don't forget to uncheck the "Automatically refresh when a new column is selected" at the top of the display of the column selector. This will allow your users to choose all the appropriate columns before clicking on the button 'Go '. Which ' forget to mark the message useful (s) (at the top right of the post there) If you helped.

    Thank you!

    Edited by: David_T May 21, 2010 07:08

  • Tabluar form hide/show items on the loading of the page

    Hi all

    Apex 4.1

    I use JS to display or hide fields, based on the values of other fields, cela in a tabular presentation. So it is used as a work-around as dynamic actions are not able to do out of the box on tabular forms (that I know of).
    The code I use is something like this:

    In the page header:

    function test (pThis) {}
    get the index of line curren on changes
    var currIndex = $('select[name="'+pThis.name+'"]').index ($x (pThis.id));
    If (pThis.value < 0) {}
    . style.display $('input[name="f06"]') [currIndex] = 'block ';
    }
    else {}
    . style.display $('input[name="f06"]') [currIndex] = 'none ';
    }
    }

    In the attributes of the item in the column 'source '.
    OnChange = "JavaScript:test (this); »

    This fires that when the source column is changed, but not working when you load at the start page when it is filled with already stored reports. So it works only when a field is changed to the hand.

    How can I force this action shot the loading of the page so the rule (hide fields) also gets applied to existing records?

    Concerning
    Bottom

    Down de Klerk wrote:
    Hi all

    Thanks for the comments.
    So far I m unable to make it work. Fire code (debug using alert messages, and these show upwards), but the suggested procedure does not work.

    I tried all kinds of entry points, as for example the test via dynamic when a button is clicked, tried action on loading the page, and also via the $(document) .ready (function
    The function is executed and nothing happends, no error does not code so should be ok.
    I'll investigate further and let you know what happends. Don't know if the class type of the associated field f06 might have something to do with it, but one is LOV/Select list type

    This code is looking for input i.e. text, checkbox etc and will not find a slelect list.

    You must change the jquery like this selector

     $(document).ready(function () {
          jQuery.each($('select[name="f06"]'), function () {
               hide_field(this);
          });
     alert("function executed");
     });
    
  • Hide/show agrregates in the PivotTable based on click of a button

    Hello

    I have a PivotTable in which I view aggregates.

    Is there a way to hide/show the aggregated based on click of a button.

    Thank you

    Anil

    It worked:

    To remove totals:

    cubicEditor.removeLayer (DataDirector.ROW_EDGE, 0);

    Def LayerDefinition = new LayerDefinition("OrganizationCode");

    cubicEditor.addLayer (DataDirector.ROW_EDGE, 0, def);

    To show totals:

    cubicEditor.removeLayer (DataDirector.ROW_EDGE, 1);

    cubicEditor.removeLayer (DataDirector.ROW_EDGE, 0);

    LayerDefinition layerDef = new LayerDefinition ("OrganizationCode");

    TotalDefinition td = new TotalDefinition (AggType.SUM, "OrganizationCode", AggLocation.BEFORE);

    layerDef.setTotalDefinition (td);

    cubicEditor.addLayer (DataDirector.ROW_EDGE, 0, layerDef);

    layerDef = new LayerDefinition ("ItemName");

    cubicEditor.addLayer (DataDirector.ROW_EDGE, 1, layerDef);

  • How to set ' hide / show ' regions during the loading of the Page mode 'hide '.

    How to 'Hide' under regions on a page on the loading of the page, but don't show the region above in mode 'show' on a page?

    I have multiple regions, one under the other on a Page. All models on those who are assigned to the regions 'Hide and Show '. When the initial page loading - my goal is-displays only the Top more Region in "Show" mode, while setting all the other (regions to 'Hide' in low mode).

    Can someone please suggest ideas on how to achieve this? Dynamic action? or other approaches? Examples/steps please would be greatly appreciated.

    My request for a theme is set to 23 Crimson. Apex 4.1.x

    Thank you.

    VSKumar

    Hello

    What needs to be done is:
    Set up the STATIC ID for all regions with the exception of the first region.

    For example:
    REGIONTWO
    REGIONTHREE
    REGIONFOUR
    REGION 5

    Then go to the properties of the Page to the section head and footer. In the footer section, add the following:

    
    

    You can for example see http://apex.oracle.com/pls/apex/f?p=60428:5

    P.S. If you switch to another topic you should check if the classes are the same. Otherwise it will not work.

    Kind regards
    Aljaz

    Published by: Aljaz on 6.3.2012 0:04

  • Advanced DataGrid - you click columns to hide/show based on the level of the child

    I have a Flex application that displays an Advanced DataGrid with three levels in the tree. The default view displays a single column of data. When a child on the floor of the tree is opened, two additional columns are displayed. I want these columns to stay open as long as any kid on the floor is open. I can't find a way to make it work - I can get the columns to be displayed when the user clicks on the 2nd child of level, but I can't find a away from keep them visible until the last child at this level is closed (see my attached code). Is it possible to loop through all the items in the Collection of data to see which ones is open and access data associated to each?

    Attached code (a few pieces that are not connected have been omitted).

    Help, please.

    Thank you.

    Found my answer on my own. I basically loop in the table in the ADG openItems, save the reference that corresponds to the lowest level that is open, then set visibility of each column based on this criterion.

  • Hide/show clips including the Date

    Hello

    I would like to create a Web site "banner" application in flash using action script to show or hide different video clips based on a start and end date.

    Initially, I have to manually download the new banners to a Web site, one at a time. But if I had a file that can contain several banners, I could turn them on and off the base what day it was. Is there a way to do this with action script?

    I also want to create a few small buttons to scroll through the banners that are "published".

    Let me know if it sounds possible, and we'll go from there.

    If you want to use the date of the operating system of the user, you can do it by using only actionscript.  but it will not be accurate in a certain number of users.

    If you use the script server-side, you can use the date/time of the server.  It is more accurate but needs more actionscript.

  • Hide/show function in the toolbar near the Tray Icon

    I created the toolbar again that my 'Personal' file close to tray Icon. then small > arros shows with the name of the folder.

    This folder is located in D: drive, then I created a batch file for attribute with hiddon this folder "staff".

    then close tray icon while browsing this folder it shown as 'Empty' which is correct.

    But when I Unhide once again my folder with the script then this created close toolbar icon is always not browse the contents of the folder.

    Solution: When I open that folder in the D: drive there again that > is below and I can browse all the content of the 'Personal' folder again.

    Concerning

    Kedar

    Hi Kedar,

    The question you have posted in better suited in the TechNet forums.

    I recommend you post your request in the below link:

    Windows 7 IT Pro:

    http://social.technet.Microsoft.com/forums/en-us/category/w7itpro

    I hope that the information above helps you.

  • Hide/show element at the click of another symbol

    Hello

    I want to hide an element by click. The item that is clicked is inside another symbol, which one that should be hidden.

    Please tell me how I can handle this.

    Thank you very much

    // Get the symbol element "kitten_1" and hide the element "kitten_paw"
    sym.getComposition().getStage().getSymbol("kitten_1").$("kitten_paw").hide();

  • Hide / show column for download in CSV format

    Interactive report how to include a hidden column of the report for download file (CSV).

    For example, if I have the 'Note' field, which is hidden in the IR, but what happens if I need this field to downloaded. CSV file.

    Thank you

    Copied OK delete now

  • Hide / Show button at the top or at the end of the form

    Hello

    I have the shape that has 2 buttons, move up and move down, which is used to move the subform upwards or downwards. I currently have to make a message appear: "the current element cannot be moved up" when the user tries to back up this article because they are already at the top of the form

    or "The current element cannot be moved to the bottom" as they are already at the bottom of the form.

    Now, I wish I had a DialogResult.Cancel depend on where the current site instead of the pop-up message.

    Can any advise please.

    Thanks in advance,

    DAO Han

    Hello

    Here is the form to the you: https://acrobat.com/#d=tO5CEU86 * 5yBXTFDilpg.

    There is script in the layout event: loan which was not necessary and this causes the loop.

    Also, I modified the structure slightly, Question number script and added a line of execEvent() to the click event of the button Add. I'd be careful to use names that can be reserved.

    Hope that helps,

    Niall

  • Hide/show columns only when exporting to CSV on an IR

    Hello

    I would not include a column displayed in my interactive report when you export one. CSV.

    I've seen on the blog of andy that it is possible to do it on a region in relation WWV_FLOW.g_excel_format = false;

    Is is it possible to do it also on an IR with something else?

    Thank you

    Published by: Ujitsu on June / 09/2010 20:00

    Hello

    You can set the column conditionally by request.
    For example the condition function body of PL/SQL returning a Boolean column set that you do not export

    RETURN NVL(:REQUEST,'EMPTY') NOT IN('CSV','XLS','PDF','XML','RTF');
    

    I have some examples here
    http://Apex.Oracle.com/pls/OTN/f?p=40323:63
    EMPNO column is not exported by the report

    BR, Jari

  • The hide/show button with the AJAX selection list

    I have the button named "QUERY" and AJAX list selection page #2 'ID'. When my selection list value is 100, I would like to display the button, otherwise hide the button. I checked the session values are defined correctly for the selection list when I change the value, but the following code in one of the messages in the forum does not work. is it different for elements of AJAX?

    Added the following code to select the list - onchange = "disble_enable_button (); »

    function disble_enable_button() {}
    If x$ ('P2_ID') .value = '100'
    x True $('P2_QUERY') = true;
    for other x $('P2_QUERY') true = false;
    }

    Hello

    function disble_enable_button() {
    if ($v('P2_ID') == '100')
    $x_Show('P2_QUERY');
    else $x_Hide('P2_QUERY');
    }
    

    Mike

  • How to play a movieclip at the moment is shown? (Hide/show a movieclip)

    I use: this.flipQ1One. visible = false;  and this.flipQ1One. visible = true; to hide / show a clip, the problem is that the clip is an object that allows to reverse then stops at the time where is indicated (when the condition is met) flip had already come all hide so you don't see it.

    What I need, is that the clip starts to play right now the 'visible' becomes true not before.

    Any ideas? one?

    I can't say movieclip that was visible in the swf files that I'm supposed to be looking at, but in any case, since the small piece of the flip, it seems not to be stopped early, so he will lead in the end where I think you are saying that there a stop() as soon as there are even if it is invisible.  You must have a stop of the first image of her, and when he is supposed to play your code that makes visible will have to say to play();

  • Urgent! Master - detailed with the option/Hide search

    Hello

    I developed a page OFA master / detail with the option/Hide.

    in my search option, I have main and detail columns.


    How can I control query vo level of detail.


    For example. If I pass point not in the search option as well as customer, I could get only this line item for this CUST.


    I created the main query parameters and I'm passing param values in a methos to AM.

    When I click on show details his exception throw.


    Can someone help me please how to do this. Its urgent...



    Thank you

    Hello

    Error is due to the original Version of details may not get the value of the bind variable when judicially.

    Check your steps with this link http://apps2fusion.com/at/51-ps/333-oa-framework-master-detail-region-mandatory-steps.

    If still you face the same thing then let us know.

    Kind regards
    GYAN

Maybe you are looking for

  • HP 15-af131dx: password bios need

    Need password for Hp-15 here is the system off the code 'I 95123667'. Thanks in advance

  • R7000 vs D7000

    Hi, just a question: the only difference between R7000 and D7000 is the modem? The rest is the same (cpu, ram, features?) I ask this because I already have a R7000 + ISP modem and I really love R7000, but I want to change that with the D7000 to remov

  • disable the firewall gateway wirelesss

    Got first one iPhone, but without a plan.  I can use it all default programs, but cannot receive/Send Mail as my wireless modem Motorola SBG900 Wi - Fi put in place of the included firewall is enabled. Is there a way to disable the firewall of my wir

  • Hanging of C++

    When I try to install trend micro antivirus protectionit crashes during the installation of visual c++.  I contacted there support, they were trying to manually install visual c ++ 2005 redistributable and that does not work.   When installing the re

  • Removal of blackBerry Smartphones send using accounts on Blackberry 9780 calendar

    When I get something in my calendar on my Blackberry 9780, it has three accounts.  I want to get rid of two of them, how?   I look everywhere I can think, but couldn't find an answer.