Hide / show parts of table?

Hello

I have 2 regions table in page oaf 'A' and 'B' and a choice of message button.

When the user select message' has ' can show the region table 'A' and select what 'B' show the region table "B".

When the page loads the 2 original, two tables made wrong.

Give me suggestions...?

First of all, you should have 2 methods of AOS.

public void initQuery()
{
  setMaxFetchSize(0);
  executeQuery();
  Row rw=createRow();
  insertRow(rw);

  initQuery(null);
}
public void initQuery(String mc)
{
  // Get the VO handle and get the firstRow
  Row rw = vo.getRowAtRangeIndex(0);
  insertRow(rw);
  if(mc == null)
  {
  rw.setAttribute("partial1",false);
  rw.setAttribute("partial2",false);
  }
  else if(mc.equals("EMP"))
  {
  rw.setAttribute("partial1",true);
  rw.setAttribute("partial2",false);
  }
  else
  {
  rw.setAttribute("partial1",false);
  rw.setAttribute("partial2",true);
  }
}

Call the first method processRequest. Which will help you not to render tables when the page load.

A null condition will help to hide tables when you select the null value.

I hope this helps. Let us know if you need more details.

See you soon

AJ

Tags: Oracle Applications

Similar Questions

  • Automatically add delays to the ability to hide/show the bar

    I activated the option to hide/show the bar automatically. I would like it when I touch the upper part of the screen with the mouse, the menu bar will appear with some delays (2 seconds for example). First it is possible to configure the delay?

    NO, but you can offer this feature for Apple

    http://www.Apple.com/feedback/

  • Hide and display a table made by programming based on the State

    Hi all

    I have two tables in my page. I have a requirement to hide and show a table advanced programmatically based on a condition.

    I used the following statement to hide and show the edge table. But still the table appears on my page.

    If (TblBn! = null)

    {

    TblBn.setRendered (true);

    }

    If (TbBn! = null)

    {

    TbBn.setRendered (false);

    }

    Anyone has any idea on this?

    Yes, you could do this using SPELLS.

    Create a VO model with 2 attributes say "RenderTable1" and "RenderTable2" of type Boolean.

    Set the corresponding attributes in the attribute of the AdvancedTable.

    Write methods in AM below.

    public void createPVORow()
         {
              OAViewObjectImpl dummyPVO  = (OAViewObjectImpl)getXXDummyPVO1();
              if(dummyPVO != null)
              {
                   if(dummyPVO.getRowCount() == 0 )
                   {
                        Row dummyPVORow =  dummyPVO.createRow();
                        if(dummyPVORow != null)
                        {
                             dummyPVORow.setNewRowState(Row.STATUS_INITIALIZED);          
    
                             dummyPVORow.insertRow(dummyPVORowRow);
                        }
                   }
              }
         }
    
    public void setDummyPVOValues(String[] name,String[] val)
    {
       OAViewObject dummyPVO  = (OAViewObject)getXXDummyPVO1();
       if(dummyPVO != null )
       {
        dummyPVO.setRangeSize(-1);
        Row row = dummyPVO.getRowAtRangeIndex(0);
        if(row != null)
        {
      for(int i = 0; i < name.length; i ++)
      {
      if("Y".equals(val[i]))
      {
       row.setAttribute(name[i],Boolean.TRUE);
      }
      else
      {
       row.setAttribute(name[i],Boolean.FALSE);
      }
      }
        }
       }
    }
    

    Call the two methods in the PR with appropirate parameters.

    Call the second method with parameters of the useful, likely only in the PFR State-based.

    It will be useful.

    See you soon

    AJ

  • Hide region show how to maintain the status of hide/show on send page

    APEX 4.2.1 using theme 24

    I have several areas on a single page that are defined using the "Hide Show Region" model this model defines the regions to show everything first. If a user chooses to hide a region is there a way to keep this state when the page is submitted? Example region top of page is to hide/show parent to an interactive report, below this area is a relative of region to hide/show for a tabular presentation, if the user chooses to hide the interactive report region and they enter data in the region in a table, when he clicks on save and the page is submitted the interactive report region appears and the tabular form region appears still longer down in the page and the user have to scroll down to access.  I'd rather have the page 'to remember' the State of hide/show that the user has selected for each region and keep this status when the page is sent.

    Someone has an idea how to do this?

    Thanks in advance for a suggestion to work!

    Theresas

    You have almost all the way.

    As you have probably already understood, the problem is that the code requires that regions begin closed and it will 'click' to open.  If you're one of them is already open, you have now two inverse regions.

    I think that it is better to have them both be areas closed, when the cookie should be created (we were a new cookie for that) then "click on" one you want to open and create the cookie with this region in.  From that moment of the code can continue to click on the one that was left pending.

    So, I added more code to the initial opening. I introduced the P2INIT cookie which will be set to YES the first time the page is visited.  Its only purpose is to open the region to report on the first visit.

    After that, the logic can circulate to store regions that can be opened.

    Also, I have completed the static ID of the report to better reference by name.

    Now, I have to say, if you are presenting the same data, but a game is available to edit in a tabular form, something like Page 3 would work?

    When you click on edit the grid it will hide the report and view the form in a table. When you click 'View report' he hide the form tab and view the report.

    I think it's a clean approach and the data are not queried the DB double. It also avoids the flicker of the openness of the region.  Just an idea.

    I use preferences instead of cookies.  The nice thing about the preferences, it's that they are saved in the DB for the user, so if the same user logs on to another computer or a browser preference comes with them.

    Thank you

    -Jorge

  • "Hide / show" regions – how to keep open after send the page

    Hello

    I have several regions ' hide / show ' in my request... when the user submits the page, it closes all the

    is there a way to keep one open that were opened before the page is sent?

    Thanks in advance

    Long answer: forget the hidden item and simply store the values in a cookie.  Use dynamic action, 1 2 plan to store the values when the page is submitted and the 2nd DA to retrieve the value and developing regions.

    Hide and Show parts APEX sticky

    Dynamic action 1

    Name: Save the open areas

    Event: before the Page is sent

    Condition: - no requirement.

    Real Action:

    Action: Run the JavaScript Code

    Fire on Page load: [disabled]

    Code:

    var lOpenRegions = []
    $(".hide:visible").parent(".hide-show-region").each(function()
      { lOpenRegions.push($(this).attr("id")) });
    SetCookie("HideShowOpenRegions",lOpenRegions.join(","));
    

    Dynamic action 2

    Nom : Open saved regions

    Event: Loading the page

    Condition: - unconditionally.

    Real Action:

    Action: Run the JavaScript Code

    Fire on Page load: [disabled]

    Code:

    if (GetCookie("HideShowOpenRegions")) {
      $.each( GetCookie("HideShowOpenRegions").split(','),
                function(intIndex, objValue) {
                  $("#"+$nvl(objValue,"x")+" .hide:first").show();
                }
      );
    }
    
  • Show "hide / show region" after calculations

    Thank you in advance,

    I have a number of parts of the report "hide / show" on my page, and two reports are the research areas incorporated with them. What I'm hoping to do, is show a specific skin and region after calculations when it is clicked on the specific button for this area of research. I created a button with more appearing as its URL:

    JavaScript:doSubmit('GO'),hideShow('region3','shIMG3','/i/HTMLDB/Builder/rollup_plus_dgray.gif','/i/HTMLDB/Builder/rollup_minus_dgray.gif ');

    When the button is clicked, the page begins to update, then the region of h + s displays, but once the page finishes refreshing, the region closes upward. I wondered a better way to reload a page, then call the function hideShow? Thank you.

    Robert

    Published by: tread on April 28, 2009 08:16

    Hey

    Have you looked here?

    [http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html#STICKY]

    See you soon

    Ben

  • Tabular presentation - hide/show the Datepicker calendar

    Hello

    I am toggling of a column of date picker in tabular form wizard based on the value of another column in the same row, using javascript. However, I was unable to find a way to hide/show the associated calendar. Can someone tell me how to proceed?

    Thank you!

    Hello

    The structure on a tabular presentation for a date picker article, is more complicated than for a normal input field:

    <td  headers="Hiredate" class="t4data">
      <fieldset class="datepicker" id="f04_0004_fieldset">
        <table summary="" border="0" cellspacing="0" cellpadding="0" class="datepicker" id="f04_0004_holder">
          <tr>
            <td class="datepicker">
              <input type="text" name="f04" size="7" maxlength="2000" value="01/05/1981"  id="f04_0004" />
            </td>
            <td>
              <a  href="javascript:void($p_DatePicker('f04_0004','0','DD/MM/YYYY','#666666','','','','','1981','en-gb','Y','45958','1683565711731582981','05','210'));">
                <img src="/i/asfdcldr.gif" alt="Calendar" align="absmiddle" />
              </a>
            </td>
          </tr>
        </table>
      </fieldset>
    </td>
    

    While access to the input box by referencing its name attribute, it is impossible to the icon. What you need to do is find the input field, go up to the TR that contains, find indicator A in this TR and hide.

    Try something like:

    <script type="text/javascript">
    function disableDatepickers()
    {
     var f1 = document.getElementsByName("f01");
     var f4 = document.getElementsByName("f04");
     var k;
     var r;
     var a;
     for (k = 0; k < f1.length; k++)
     {
      if (parseInt(f1[k].value) < 7800)
      {
       f4[k].disabled = true;
       r = html_CascadeUpTill(f4[k].id,'TR');
       a = r.getElementsByTagName("A")[0];
       a.style.visibility = 'hidden';
      }
     }
    }
    disableDatepickers();
    </script>
    

    In this example, the first column (f01) contains an EMPNO. If this value is < 7800, I find the datepicker and disable it, then find the A tag that is in the same b and hide. Adjust the f01 and f04 accordance with column names and change the IF test to meet your needs.

    Andy

  • Qosmio G30-126 - how to hide/show the top bar?

    How active hide/show the top bar on the upper side desk, but disappeared how can I return it again?

    You want to have some Flash cards on top of the desktop computer?
    This isn't a problem

    In all programs-> Toshiba-> Utilities-> settings for Flash cards, you can activate this option!

    Check it!

  • Hide/show controls single cluster

    Hi all...

    I'm doing something, but without success...

    I have 2 groups of 20 witnesses

    1. 20 Boolean switches

    2-20 digital indicators (LDM)

    What I want to do is simple when I'm pressing one of the buttons bool I want to hide/show the digital relevant.

    If anyone can help?

    Its a bit quick and dirty, but it don't do what you want.  Digital command allows you to select the item in the cluster and boolean to enable or disable then press run.  He could have put in a loop with stop button

    Ken

  • Why can't hide the part of HP to the web folder?

    Whenever I try to hide I partially through the installation, but then the program is not responding. Please help this is really bugging me.

    When you create a network share, it is visible to anyone browsing the network. While they may not have access to it, they still see it's there. To prevent this, when you name your network share end it with a $. This allows you to hide the part of "network browsers", but can still be drawn up by people who know that it is there.

    IE: \\MYCOMPUTER\share<---- viewable="" by="" all="" people="" browsing="" the="">
    \\MYCOMPUTER\share$<---- hides="" the="" share="" from="" people="" browsing="" the="">

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Hide - show the button field

    Hello

    I display the image one after the other on the screen.

    According to indext of image I want to hide show next previous button,

    How can I do?

    If (current_index == Questions.size () - 1) {}
    _btnnext.getManager (). Delete (_btnnext);
                        
    } ElseIf (current_index == 0) {}
    _btnprevious.getManager (). Delete (_btnprevious);
    } else {}
    If (! _btnnext.isVisible ()) {}
    _hfm. Add (_btnnext);
    }
    If (! _btnprevious.isVisible ()) {}
    _hfm. Add (_btnprevious);
    }

    }

    Currently, I found this solution.

    But I think there must be another way and then add and remove from view every time.

    Thanks in advance.

    bskania.

    You can do this using the setEditable method

    If (current_index == Questions.size () - 1) {}
    _btnnext.setEditable (false);
                        
    } ElseIf (current_index == 0) {}
    _btnprevious.setEditable (false);
    } else {}

    btnnext.setEditable (true);
    _btnprevious.setEditable (true);

    }

  • Hide/show a dynamic field

    Hello

    I'm new to OFA.

    I have a requirement to hide/show a dynamic field based on the operating unit.

    So instead of hard coding UO, I use lookup.

    Now, what I've done, spread the VO and VO query added a new column to validate in relation to research and back 'n' or 'Y '.

    I created a transitional and in VORowImpl attribute. I'm valid against the newly added column VO and assigning the value TRUE or FALSE to the transitional attribute.

    and I'm on SPEL in Customizing the page.

    Now what is happening is when an existing record is asked in the page, the field is hidden/unhinden based on the given condition.

    But when a new record is created, this condition does not work.

    So I guess that the VO don't get initialized when the page is loaded? Is this the reason why the condition is unchecked in VORowImpl?

    My hypothesis is correct?

    How do I get my requirement?

    Pointers would be useful...

    Thank you

    Naren

    Hi AJ,.

    I forgot to update the thread. Reached the requirement.

    Solution,

    Created a transient VO attribute.

    Then in VORowImpl, written the code to set the transient attribute.

    Then using customization, SPELL, set the property to the item.

    It works perfectly.

    Thank you for guiding me to assign to the attribute.

    Kind regards

    Naren

  • How to hide/show a field based on the data from more than 1 field?

    Hello.

    I'm trying to hide/show a based on the data of field2 and field3, Field1

    in fact using dynamic measurements I can only hide/show Field1 Field2-based, but I need a combination, for example:

    If field1 = 'A' and field2 = 'B', then see the field3, other hide field3

    y at - it an easy way to do it.

    I use Application Express 4.2.4.00.08

    Thanks in advance

    Dynamic action

    On the changes

    jQuery selector: #P1_ITEM_1, #P1_ITEM_2

    Condition: JavaScript

    $v ('P1_ITEM_1') == 'A' & $v ('P1_ITEM_2') == 'B '.

    Real Action: show item 3

    Action of false: hide item 3

  • How to set the initial state to hide/show buttons on opening PDF files?

    InDesign offering a wonderful object multi-state capacity which unfortunately does not work in PDF files. It took a bit of research for me to come with this information, the UI program itself gives indications that this should work. (Why not maybe another forum of discussion.)

    So, I create an interactive PDF using buttons to hide/show specific paragraphs (which are also implemented as buttons because only the buttons and forms can be hidden or shown, AFAIK).

    I've set up a PDF created via InDesign using the six control keys and seven paragraphs - one of these paragraphs is the initial state that I want to see when the document is opened. As long as the PDF file that I create is distributed, that's how it works: an initial paragraph appears, buttons can be clicked and the stuff of Heroes appears the mark.

    However, a colleague thoughtfully saved the PDF file (so it could rename something more to his liking). When he does this, he left one of the displayed subsidiary paragraphs, rather than the initial paragraph I intended... and of course, this is the version that came out to the customer.

    Question: Is there a way to set the initial state to hide/show buttons when a PDF document is opened first, regardless of the State in which he could let or saved? I guess it's sort of ON OPEN event that would allow me to define an initial state as a safety net to the way I save the original document. Obviously, the PDF AS I DELIVER IT will pave the way, I want it, but I'm trying to overcome the appearance of the Murphy's law of a document that can be re-recorded in another State. An event which OPENED on that cure.

    Thank you.

    in this case you would have been better if you had locked the PDF file in order to prevent changes ANDS record as actions...

  • customization of presentation vCO (hide/show settings)

    Hello

    I'm trying to customize a presentation of vCO workflow, so I can hide/show the input parameters to the user according to another value selected in the presentation.  The user has a string input parameter called 'Area' that is filled with a predefined list, so he can have the values X and Y. If I want to show/hide another entry during the presentation, I see that you can add a property 'Show the input parameter' and there is an icon of a pencil with the description "Help editing OGNL. Does anyone know how to build this expression to show or hide the input parameter based on the value of the 'area '?

    Thank you

    Juan.

    Hello

    Just click on the text box that contains the value of the property 'display the input parameter"(to the left of the button with the pencil icon) and type the following command:

    #Zone == 'X '.

    This will evaluate to true when the value of the parameter input area (#Zone) is equal to the string value 'X', thus making your second input parameter if the value of the first parameter is X visible and hidden if the value of the first parameter is Y.

Maybe you are looking for

  • Firefox 24 - options not remembered from one session to the other

    When I've upgraded to Firefox 24, all the v23 option settings restore default values. I put them back the way I had them before, but after restarting the browser, all default as before. I use NoScript, and any change to its rules is also lost when I

  • Fan of satellite L making a humming noise

    Just today my laptop fan was emitting an annoying gurgling noise when the fan is on. I got no problem with that before today.Any ideas what is causing this and what are the solutions? Thank you Dan

  • CP2025: Problem of software driver CP2025

    Problem installing software: Windows 7 (64 bit) on printer and custom pc worked fine. Installed the free download of Windows 10 and the problem started. SSD formatted and reinstalled Windows 7. Not able to install drivers CP2025, tried both original

  • How to recover the password of login

    Hi all It comes to siva, I forgot my router password how do I recover my router login password is my router rv042 someone help me please Thank you

  • Need help installing BEFSR41 router

    Hello I need some help configure a router BEFSR41, that I bought recently.  A year ago, I got a WRT54GS router and was able to set it up to my Siemens modem DSL 4100 b without any problem.  (Maybe I was just lucky before when I set up the wireless ro