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

Tags: Oracle Applications

Similar Questions

  • My Webcam has problems detected by Skype and repeat myself there is another program that uses the webcam. Skype device code 43 usb video.

    My Webcam has problems detected by Skype and repeat myself there is another program that uses the webcam.

    Also got the guests when using Skype as a video device usb was not detected and that it is a code 43.

    Have tried several way sto resolve this problem. CyberLink YouCam HP's running came preloaded on the laptop. The webcam is running when this program is being used separately.

    Inappropriate Feedback Forum of Windows hardware and drivers Forum.

    My Webcam has problems detected by Skype and repeat myself there is another program that uses the webcam.

    Also got the guests when using Skype as a video device usb was not detected and that it is a code 43.

    Have tried several way sto resolve this problem. CyberLink YouCam HP's running came preloaded on the laptop. The webcam is running when this program is being used separately.

    Inappropriate Feedback Forum of Windows hardware and drivers Forum.

    Hello, Aadi467,

    A device driver has notified the operating system that the device failed.

    Run the diagnostic tool of hardware devices do not work or are not detected in Windows on the Microsoft Fix it Center.

    You can also uninstall the software from Cyberlink.  There is a found here download link to reinstall the software after restarting the computer.

    http://h30434.www3.HP.com/T5/notebook-operating-systems-and/lost-my-CyberLink-and-UCAM/TD-p/760367

  • Custom color in display Gantt chart based on the State - Apex 4.2

    Hello

    I need to specify the custom color display Gantt chart based on the State.

    Say: Open - Red

    Progress-yellow

    Cancelled - blue

    Closed - Green

    given that the status column is not part of Gantt chart question, how?

    Option color in table attributes is not helping this requirement.

    Kind regards

    Sanjaya

    Hello

    Finally, the problem is resolved with the help of Hilary Farrell-Oraclefantastic example and help anychart pages. This is useful for this URL.

    https://Apex.Oracle.com/pls/Apex/f?p=36648:30:102588100613368:

    http://6.anychart.com/products/anygantt/docs/users-guide/index.HTML?project-Gantt-chart.html

    http://6.anychart.com/products/anygantt/docs/users-guide/index.html?defaults.html

    -Sanjaya

  • Hide a line based on the State.

    Hello, I have a requirement where I have to hide a line based on the State. I am able to highlight the lines but hide the entire line does not work.

    Condition must be met on a line:

    • Thus, if a sum of EXP5_11, EXP6_11, EXP7_11 and EXP8_11 in a current group is all zeros hide this line. Please refer to the RTF-model.

    Attachments:

    • RTF-model.
    • XML file.
    • Sample output generated when the lines are highlighted the meeting status.

    Any help is much appreciated on how I can hide a line.

    EM-: [email protected]

    If please remove your IF condition and add the following code inside the foreach tag

    This works very well in my test.

  • Trying to convert a trial to paid membership, but the payment gateway is showing the location in India and in Indian currency. I am based in the United States have changed in the account setting too but the gateway payment does not seem to be change

    Trying to convert a trial to paid membership, but the payment gateway is showing the location in India and in Indian currency. I am based in the United States have changed in the account setting too but the gateway payment does not seem to change.

    Hi Khushboo,

    On the bottom of the page of Adobe, you will see an option to change the region, make sure that you have the United States he and on the purchase page to change your currency to the U.S. dollar as well.

    Let me know if it helps.

    Concerning

    Sarika

  • When I try to uninstall a program it says another program is already uninstalled but ITI is never ending and I don't know what program is that the uninstall is

    When I try to uninstall a program, what a popup say please wait program is already uninstall a program, but never stops and I can not know what program he talks

    Hello

    1. what operating system do you use?

    2 did you change on your computer?

    I suggest you to follow the methods and check.

    Method 1:

    Problems installing and uninstalling programs on Windows computers

    http://support.Microsoft.com/kb/2438651

    Method 2:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

  • Excel, Access and Word can't be my program list in the start menu

    Excel, Access and Word do not appear in the list of programs on the start menu or anywhere else. The only way I can use them is by opening a file that uses. It's on a pc bought last summer, using the latest version of Windows, installed programs Microsoft etc. How can I make it appear?

    Matt C

    Hello

    Follow the steps below. It can help to solve the problem
    1. open the Start Menu.
    2. in the area of the white line (search), type regedit and press ENTER.
    3. click on continue in the UAC prompt.
    4. in regedit, go to

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advance

    5. in the right pane, right-click on StartMenuInit and click on modify.

    NOTE: If you do not StartMenuInit, then click on New, and DWORD (32-bit) value. Type StartMenuInit and press ENTER.
    6 type 3, and then click OK.
    7. close regedit.

    8 disconnect and logon or restart the computer to apply the changes

    EDITING REGISTRY WARNING:

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows: http://support.microsoft.com/kb/322756
  • Change the structure of program based on the input file

    I have a program that takes parameters of an input file and then executes a Visual acquisition, using IMAQ, controlling some other hardware at the same time.  The duration of the various stages of this process control settings.

    There is a sequence stacked structure to control the playback of the input file, the initialization of the hardware, and then a while loop on the last image to actual purchase.

    The user of the program now wish to have several games acquisition in the same race, possibly with different time settings.  This would mean different iterations of the final loop, based on the parameters of the input file.  There could be 5 games of acquisition on occasion, 3 on another, etc., in a performance of the program.

    The structure VI already seems a little baroque, and I don't want to make it even more complicated.

    I would appreciate advice on how best to proceed, because I'm really a novice of LabView.

    If you use a "State Machine" architecture, you can do exactly that.

    Instead of having a structure of stacked sequence, it is essentially a case structure in a while loop.

    Each case represents a State.

    So in your case, you would have a State for:

    -reading the input file

    -initialization of hardware

    -data acquisition

    You can have the user controls the number of iterations of the State for the acquisition of data that you want to run.

  • Hide column based on the State in BI Publisher Excel Template

    Hello

    I have a requirement to hide a column based on certain conditions in the Excel of BI Publisher model. I am newbie for BI Publisher excel template. Anyone can provide some advice on this?

    I need this emergency. Any kind of help would be very appreciated.

    Thank you

    Renu

    Hi Renu,

    Recently, I came across a similar requirement, and I went to without BEEP features to hide and show columns during execution, unlike the RTF.

    But I did it in Excel model with the help of the Macro. It works fine for me.

    Please see below

    1. based on a cell value 'A', I have to hide the column

    2 written a simple if statement in macro to get the value of 'A' and do the hide/show

    3. you need to do this only in "ThisWorkbook" macro is executed when the excel output is open.

    Thank you

    Mani

  • In the form of table-update a column based on the other

    Greetings,

    I want to update a column based on the value of another column in a tabular presentation. What should I use? Calculation or validation process?

    -Vatsa

    Yes, get rid of the update of "pims_component" - this is the cause of the error table mutation - and simply set

    : new.state_ind: = Ls_state;

    CITY

  • In the form of table-update of rows based on the selection of the checkbox

    Hi all

    I have a tabular layout with line selector. I need to update manually checked columns, how would write a process audited records updated?

    Something like this:
    BEGIN     
         FOR i in 1..apex_application.g_f01.count LOOP
    
              IF apex_application.g_f01(i) is not null THEN
                   UPDATE TEST_USERS
                        set USER_ID = :P14_TO
                   WHERE rowid = :APEX$ROW_ID;
                   COMMIT;
              END IF;
         END LOOP;
    END;
    Thank you very much.

    You can refer to the line that you want to process through the value stored in the box.

    If you use apex_application.g_f01 (i) to make reference to the line and you want to update the row based on the ROWID in your request, your SQL query should have the box as follows:

    apex_item. CheckBox2 (1, rowid)

    Then your PLSQL process would be like this:

    BEGIN
         FOR i in 1..apex_application.g_f01.count LOOP
    
              IF apex_application.g_f01(i) is not null THEN
                   UPDATE TEST_USERS
                        set USER_ID = :P14_TO
                   WHERE rowid = APEX_APPLICATION.G_F01(i);
                   COMMIT;
              END IF;
         END LOOP;
    END;
    

    I hope this helps.

    Cheers, Pete

  • split a string using any delimiter and display a table

    Hello

    I'm trying to split a delimited string and an array of the output results.

    I come from a background of .net and c# code I would use would be

    Dim myString As String = "mystring\r\nto\r\nsplit";

    String [] myString = mystring. Split (newchar [] {'\n', '\r'}, StringSplitOptions.RemoveEmptyEntries);

    The code above have a line of muli on the input string (where the \r\n) and the output of a table with the following content

    'mystring '.

    « à »

    'split '.

    In addition, I would like to also support comma-delimited files.

    I used the string function

    "Spreadsheet String To Array" that works well enough for the lines of delimited by commas, but not when the delimiter is something funky like '\r\n '.

    vi.llb in the advanced channel folder there are some goodies that do not surrender to the Kroatiens

  • Export and import of table made by extending the schema

    Hello

    I created a new separate table using SchemaExtension tool. Then I exported using databaseTransport tool. And after that I imported to another system, the values inserted in there was not visible. It has not exported certain permissions I think.

    What is a standard way to export a database table?

    How to configure a permissions for the imported table so data can be seen and edited?

    Thank you

    John

    Try this:

    Var bukrsCollection As IColDbObject = Connection.CreateCol ("CCC_MAPPING_TABLE")

    bukrsCollection.Load)
    VID_Write2Log (logfile, "" + bukrsCollection.Count.ToString) "' WROTE THIS REAL number of RECORDS
    For each boss as IColElem in bukrsCollection
    Dim CCC_Obj as ISingleDBObject = bm. Create()
    VID_Write2Log (log file, CCC_Obj.GetValue("CCC_SOME_COLUMN"). (ToString())
    Next

  • Apex on the load display text page 5 article &amp; navigation based on the values in the table bar

    Hi Experts,

    I have a page in which I want to show the textual elements and the crumbs of bread according to the requirement on page load.

    To do this, I gave the condition for navigation buttons and text elements bar as below:

    Condition type: there is no

    Expression 1: select null from ms_contracts where contractor_id = UPPER (v ('APP_USER') and contract_expiry_dt < sysdate)

    The text value of the element (display only): ' your contact has expired, prents get it renewed. Position to renew the update below the new end date '


    Above solution does not work for me. I guess there is no need to create dynamics of Action I want this to happen on the page load.

    Ask that you please guide me.


    Thank you.

    Thierry

    Hello

    Have you tested your query do not return all rows using SQL workshop for example?

    Not the condition watch Object Exists, when the query do not return all the lines.

    BTW, it's better to use bind variable: APP_USER function v. APP_USER is also always capitalized

    select 1
    from ms_contracts
    where contractor_id = :APP_USER
    and contract_expiry_dt < sysdate
    

    Kind regards
    Jari

  • sound controller and vidio has stopped working, I program of uninstalling the c-media ac97 driver, what to do now?

    How can I tell which driver download for my soundm, I have Windows xp home edition

    Hi m hilton,
     
    You should download the drivers from the website of your computer manufacturer.
     

    You can also follow this step to do the same thing:

    a. double-click the type of device you want to update or change.

    b. right click on the device driver specific, you want to update or change.

    c. click on update driver to open the Hardware Update Wizard. Follow the instructions in the wizard.

    More information on:

    How to manage devices in Windows XP

Maybe you are looking for

  • Satellite U940 - keyboard backlight failure

    On my new U940 with backlight on the keyboard, the backlight does not work after the mode 'sleep'. When I restart the computer, it works again. I tried using the fn + z and updated the bios, but it did not help. Is there another way to turn on or is

  • error 2558 with open data storage express vi.

    I have the appropriate Tektronix installed plugin and when I use the Open Data Storage Express to create new vi *. WFM file I get error-2558 indicating that my system does not have the software installed to support the file type. I use the 2015 SP1 v

  • monitor going black

    whenever I'm in the computer of my monitor go black for 15 or 20 seconds, then I have to left click

  • Last row of data in a 2d array is not written, but is written using VI is next time

    Hi all I have problems with writing the data. I'm taking some statistics of a bunch of files .tdm and their record in a master file. I have all this down, but the last part data is not written using the program first. When I run the program immediate

  • Causing the Blue Screen of Death (IRQL_NOT_LESS_OR_EQUAL) wireless adapter

    I had a Linksys WUSB600N Wireless-N USB adapter (dual band ver. 2) for a period of several months now, no problem, running on Windows 7 Pro 32-bit.  So without any hardware or software changes (to my knowledge), have the adapter plugged during initia