How to prevent navigation (action) based on the result of actionListener

Hello

JDev 11.1.2.4

I have a command with an actionListener and an action button. In my actionListener I check certain conditions and if they are met, I want to access. If this isn't the case, I don't want to come back (the property of the action).

Is there a way to stop the cycle of life after the actionListener under certain conditions?

Thank you

You can set a property in the earpiece of the action that you want to navigate or not. Based on this property, you can define action programmatically.

Reference:

http://www.adftips.com/2010/10/ADF-UI-navigating-to-next-page.html

Thank you

Tags: Java

Similar Questions

  • How to add dynamic items based on the results of a dynamic query?

    Hi all

    I'm quite new to ofa, here's my problem.

    I have a table 'interventions', each intervention have actions stored in the table "actions".

    I want to show the actions of an intervention in a list, based on the id of the intervention. the response ID value is dynamic, so does not know the number of shares that you want to display in the list.

    Can someone tell me the steps to create a region that has dynamic elements to display names of action?

    Thank you

    Kind regards

    Afaf

    Afaf,.

    Take a look on the link below to see how to create dynamic VO:

    Blog of Anil Oracle Application Framework: create VO when running at the controller or dynamically created VO

    You could add messageStyled text like the code below:

    OAMessageStyledTextBean newMessageBean = (OAMessageStyledTextBean) createWebBean (pageContext, MESSAGE_STYLED_TEXT_BEAN, null,"" ");

    Links to dynamically create elements below:

    Add columns to the table advanced in OA Framework Programatically by Extension

    OPS KNOWLEDGE HELPER

    Let us know if you get any errors when creating.

    See you soon

    AJ

  • Creating conditional actions based on the results of the quiz

    I have a quiz at the end of my captivate file and I try to get to show different based on images if you have passed the quiz, or if you failed. For example if you pass, I want to show an image of the tick, and if you do not have an image of the cross, on the results slide.

    I tried to create this by implementing a conditional action. I put the two images on the slide and they hid. Then I have a conditional action value:

    IF
    cpQuizInfoPointsscored greater than or equal to 70

    ACTION

    See the Image_tick

    ON THE OTHER

    See the Image_cross

    When I play the quiz or image shows that I have success or failure (the quiz is set to a 70% pass - there are 10 questions, and all are worth 10 points)
    I am new to Captivate so that any help would be appreciated!
    Thank you

    Each action must be triggered by 'something', which is an event. You must attach to an event, I suspect that the event on enter score slide is one that suits. Select the slide of score, look in the properties panel, tab Actions, perform actions on enter, choose the action.

    In addition, there is a difference between the system variable cpQuizInfoPointsscored and cpInfoPercentage. Personally, I would use the simpler cpQuizInfoPassFail:

    IF cpQuizInfoPassFail is equal to 1

    See the tick

    On the other

    See the cross

    Download the tables in these two articles:

    System variables in Captivate 8/9 - Captivate blog

    Events / Actions (Advanced) - Captivate blog

  • How to create a report based on the item selected from the list of selection?

    Hello

    I created a tables_LOV based on:

    Select table_name table_name user_tab_cols r, d

    where column_name like '% _type % '.

    Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.

    I run the page, and I can choose the table I want in the drop-down list.

    How to create a report based on the selected element? (ex: select * from selected_table)

    Thanks in advance

    Salah

    Hi Salah,

    Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report

    I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.

    The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION

    To recreate my example, you should:

    (1) create a report (interactive) on your collection

    SELECT *
       FROM APEX_collections
     WHERE collection_name = 'MY_COLLECTION'
    

    (2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")

    (3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:

    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
    
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
        );
    end;
    

    Make sure that you add your page_item 'Page to send items' section.

    (4) add a real extra action that makes an update of the report area.

    Here are two photos describing the da:

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG

    Good luck and greetings,

    Vincent

    http://vincentdeelen.blogspot.com

  • dynamic action turns an article based on the result, and checks the database!

    I use Apex 4.1

    I do not know how to accomplish the following:
    If a pick list is changed, a function is checked and based on the results of a another field is disabled or enabled.

    I created a dynamic action (change) that executes a PL/SQL code, now I need to disable the other element.

    the problem is that I can't save the dynamic action because of the sign #.

    example:
    Start
    HTP.p ("< script type =" text/javascript"> '");
    HTP.p ('$('#P35_FT_00010_DOC_NO').attr ("readonly", "true")');
    HTP.p ("< /script >");
    end;

    I tried document.getElementById, but an error occurs also when I try to save.

    I think the wrong way?... Help, please

    1. create a step forward (not the simple/standard one) dynamic action.
    2. create initially unconditionally (the wizard will not let you take the PL/SQL expression as a condition but we will go back and change it later)
    3 assume that TRUE from your PL/SQL will lead to disable the item, then choose 'Disable' and the item you want to disable.
    4. Once created, go back in the DA and change the status of PL/SQL expression and put your PL/SQL in there (suppose you have a function returns boolean called MY_FUNC and TRUE to him means disable).
    5 copy the DA in its entirety to a new DA will be FALSE to activate the element.
    6. Once copied, go into the new DA and change the status of PL/SQL to NOT (my_func).
    7 change the REAL action of the DA to activate the element.

    So now you should have two similar DAs... one for when MY_FUNC is true and disables the element, a when "NOT (my_func)" is true and allows the element.

    If you do not disable, you can run javascript instead to set readonly. It seems that this is kind of what you tried to do, but you seem to use a jQuery selector, I suppose that (I did not recognize your syntax to off the bat)?

    Try to use the javascript API instead Apex:

    if ($v('P35_EN_DIS_DOC') == 1 )
      $x('P35_FT_00010_DOC_NO').readOnly='true';
    else
      $x('P35_FT_00010_DOC_NO').readOnly='';
    
  • How to replace filtering engine based on the Windows Component?

    HI - how to replace filtering engine based on the Windows Component?

    See the link below.   This fix is well worth trying, but if your system has been damaged by malicious programs such as Sirefef there may be more issues involved.

    blogs.technet.com/b/asiasupp/archive/2011/12/27/error-code-0x80070424-with-Windows-Firewall-and-quot-base-filtering-engine-service-quot-not-available-in-services-database-list.aspx

  • Auto fill cells with color based on the result in the cell

    Is it possible to automatically fill a color in an excel cell based on the result that is displayed in a cell

    for example, if the result is in (0.00 - 1.00 = green), (superior to-2.00 orange)...

    -1.00
    0.54
    -2.50

    Hi CP.

    If you use excel 2007
    Use the conditional format in the home TAB
  • Report based on the result of the sorting function?

    Dear all,

    I will make this issue in general terms:

    We have a report based on a query that reads data from a single table (P). It will take to provide a field more (X) in the report which is obtained using more than two tables (E, 1 m approx).

    I wrote a function that produces this extra field based on a join of tables E and P1. Please note that this function depends on the report query variables. This output is correct and provides all the necessary information, but it is necessary to sort the report based on the result of this function, i.e. the value of field X.

    Is this possible?

    I appreciate your comments.

    Note: I've tried incorporating pictures E, P1 in the request report (I can then sort on the required field) but gets reduced the number of lines in the report. This is because the join between the tables, P, E and P1 reduces the number of lines (which is not the correct result).

    Yes, it is possible. If you have ended up above a formula column.

    Create the formula column. For example, CF_SALARY_TOTAL. Place a level to the top of the query and set your desired sort (Asc/Desc)

    Hope this helps

    Hamid

    Move or

  • How to read multiple channels based on the external clock

    Hello

    Normal 0 false false false MicrosoftInternetExplorer4 / * Style Definitions * / table. MsoNormalTable {mso-style-name: "Table Normal" "; mso-knew-rowband-size: 0; mso-knew-colband-size: 0; mso-style - noshow:yes; mso-style-parent:" ";" mso-padding-alt: 0 to 5.4pt 0 to 5.4pt; mso-para-margin: 0; mso-para-margin-bottom: .0001pt; mso-pagination: widow-orphan; do-size: 10.0pt; do-family: "Times New Roman"; mso-ansi-language: #0400; mso-fareast-language: #0400; mso-bidi-language: #0400 ;} "}

    I use 6254 multifunction for playback of tension with VC ++ 6 as the development tool.

    Based on the documentation NOR I created tasks like this.

    DAQmxCreateTask (_T ("Voltagetask"), & taskHandle);

    DAQmxCreateAIVoltageChan(taskHandle,sChannels,,DAQmx_Val_NRSE,0,10,DAQmx_Val_Volts,);

    DAQmxCfgDigEdgeStartTrig (taskHandle, "PFI2", DAQmx_Val_Rising);

    DAQmxCfgSampClkTiming(taskHandle,"PFI2",303000,DAQmx_Val_Falling,DAQmx_Val_FiniteSamps,nSamples);

    DAQmxStartTask (taskHandle);

    After the generation of clock finished thanks to the DAQmxReadAnalogF64 function, I tried to read samples of each channel.

    DAQmxReadAnalogF64 (taskHandle, DAQmx_Val_Auto, 10, DAQmx_Val_GroupByScanNumber, read, m_nStates & sampsPerChanRead, NULL);

    Total number of samples (nSamples) available in the buffer when the task is created with a single channel and several channels are still to come as even. In several modes of channel returns total sample by channel, which is equal to the total number of samples divided by the number of channels at once.

    For example, if a total number of clock 8000

    With single channel, it reads all the 8000 samples (m_nStates = 8000, sampsPerChanRead = 8000)

    When two tracks he read 4000 samples per channel and so on. (m_nStates = 8000, sampsPerChanRead = 4000)

    If any body know, on every clock how to take samples of all of the configured channels.

    Thanks in advance,

    Renjith.

    Renjith,

    Please note that the behavior, I explained is in line with the provisions should only if you use your clock as I convert clock. You can find information about the different types of synchronization of the analog inputs using NOR-DAQmx; the element to search for is "clocks".

    Since you do not set the clock to convert MY (should be DAQmxSetAIConvSrc()), the fact that I mentioned above is only informative for you, but does not apply to your question.  Sorry for responding too quickly without looking in your code between quotes...

    In order to answer your question, we take a look at the approach to programming DAQmx:

    If you configure your task to be "finished", the task will stop running if the number of samples per channel is acquired. In the case of an external clock (not configured as I convert clock), served it in the sampling interval. The sample clock will automatically receive a sample for all channels with a single clock pulse. From this point of view, the installation program you have in your program seems correct.

    If you do not get the number of samples that await, the fault must be somewhere in your playback function. Do you get any error messages?

    DAQmxReadAnalogF64 (taskHandle, DAQmx_Val_Auto, 10, DAQmx_Val_GroupByScanNumber, read, m_nStates & sampsPerChanRead, NULL)

    If you set m_nStates set to 8000, it's here. You say the Read function to retrieve 8000 samples. None. So if you have two channels, DAQmx acquires 2 x 8000 samples, but read you only 8000 samples... Please change m_nStates to

    m_nStates = #channels x #samples by channel

    This should solve your problem.

    hope this helps,

    Norbert

  • How to prevent a user to call the system recover?

    I managed PCs in a small office. SCP is Dell and Sys. Recover partition. When you do updates recently, I noticed one of the PCs of the employee had a COMPLETE system to recover well and played course the employee now has admin. account. (If you are interested, said employee PC started acting a weird day, then reset to the recovery screen... done this sound possible?)

    How to prevent this? (The PC is Windows Vista)

    If you have a recovery cd (you can get one from the manufacturer of your pc), and then delete the volume/partition system recovery, so that no one will be able to do a restore system without your permission.

    Also set a password for the BIOS and disable boot CD, so that you are the only person who can start on the recovery cd.

    hope this helps

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • [ADF, JDev 12.1.3] How to hide menu items based on the logged in user

    Hallo,

    When the user logs on successfully, the applitacions led him to the main.jspx page.

    The main.jspx page has a menu bar that contains all of the available menus, submenus and menu items.

    After the connection, when the main.jspx page loads I would hide all the menus, submenus and menu items that the user is not qualified to see/use (I read the database).

    You kindly tell me which is the way the cleaner to achieve?

    Thank you

    Federico

    user10709360 wrote:

    Hello rohanwalia,

    Sorry, but I need more help

    I guess that the solution is to create a method in the AM who - reading form the database - returns a structure that indicates for each menu item should be visible or hidden.

    • How can I use the data returned by this method?
    • I call in a managed bean specifically dedicated to the management of the menu? Can I also use the already existing media bean, I created for the page?
    • What scope should have the bean?
    • Don't you think that it is better to define a 'visible' variable Boolean (initilized depending on the result of the AM method) for each menu item and how to bind the Visible property of each menu item to the variable respective in the bean in the bean?
    • Or I can loop the result of the method AM setting the Visible property of the menu items? In this case, I guess that all the menu items must be mapped into the bean by user interface variable. Am I wrong?
    • Is it not possible to write a method which, of the AM directly, hide the menus not necessary on the page (so without using a bean)?
    • In general, which are the correct always to hide menu items:
      • (1) before the page is sent to the browser (as "I can do it with PHP);
      • (2) once the page is loaded in the browser (as I can do it with JavaScript)?

    If you could give me some more detailed advice... I would be very happy.

    Thank you

    Federico

    (1) its best to make the treatment inside the method. You can return the parameters as normal java method.

    (2) Yes, you can use bean already exists in the project. But better to create a separate bean for this task of menu.

    (3) scope should be request unless you need to persist the attributes between requests.

    (4) Yes it is possible. You can define and initialize a Boolean variable with the results you get from the table based on the menu items should be made visible.

    (5) If you use the approach to point 4, then also you have to loop through the table menu items and set Boolean variables of bean. Yes you are right for the second part.

    (6) I'm not sure about this approach. How will you map it to your menu mode. It takes research.

    (7) before the page is loaded. I share with you links in above post with which you can do this.

    I hope this helps.

    Thank you

  • How to show/hide div based on the value of mysql

    I have a dataset that contains a 'locked' column, which is a Boolean value that I want to use to remove a button on a form.  The idea is that it will be fixed to 1 after a period of time, thus eliminating the buttun that connects to an update form and prevent the data being edited.  Currently I have the field bound to a checkbox at the top of the table.  How can I use this to hide the button (or any other html element) when the value 1 and show the item when the value 0?  I understand that I need to create a php mysql boolean variable and then use a loop if/else statement to hide/show the html code but I don't know how impliment that?  Thanks for any help.

    Here is the code:

    <? php require_once('Connections/testmypms.php');? >

    <? PHP

    $currentPage = $_SERVER ['PHP_SELF'];

    $maxRows_spec_rx = 10;

    $pageNum_spec_rx = 0;

    If (isset($_GET['pageNum_spec_rx'])) {}

    $pageNum_spec_rx = $_GET ['pageNum_spec_rx'];

    }

    $startRow_spec_rx = $pageNum_spec_rx * $maxRows_spec_rx;

    $colname_spec_rx = "1";

    If (isset($_GET['pxID'])) {}

    $colname_spec_rx = (get_magic_quotes_gpc())? $_GET ['pxID']: addslashes($_GET['pxID']);

    }

    @mysql_select_db ($database_testmypms, $testmypms);

    $query_spec_rx = sprintf ("SELECT spec_rx.spec_rx_id, spec_rx. FK_px_id, DATE_FORMAT (spec_rx.spec_rx_date, ' % d-% m-% Y') as formatted_rx_date, spec_rx. FK_user_id, spec_rx.spec_rx_rsph, spec_rx.spec_rx_rcyl, spec_rx.spec_rx_raxis, spec_rx.spec_rx_rhprism, spec_rx.spec_rx_rhprismbase, spec_rx.spec_rx_rvprism, spec_rx.spec_rx_rvprismbase, spec_rx.spec_rx_rnadd, spec_rx.spec_rx_rnhprism, spec_rx.spec_rx_rnhprismbase, spec_rx.spec_rx_rnvprism, spec_rx.spec_rx_rnvprismbase, spec_rx.spec_rx_rintadd, spec_rx.spec_rx_rinthprism, spec_rx.spec_rx_rinthprismbase spec_rx.spec_rx_rintvprism, spec_rx.spec_rx_rintvprismbase, spec_rx.spec_rx_lsph, spec_rx.spec_rx_lcyl, spec_rx.spec_rx_laxis, spec_rx.spec_rx_lhprism, spec_rx.spec_rx_lhprismbase, spec_rx.spec_rx_lvprism, spec_rx.spec_rx_lvprismbase, spec_rx.spec_rx_lintadd, spec_rx.spec_rx_linthprism, spec_rx.spec_rx_linthprismbase, spec_rx.spec_rx_lintvprism, spec_rx.spec_rx_lintvprismbase, spec_rx.spec_rx_lnadd, spec_rx.spec_rx_lnhprism spec_rx.spec_rx_lnhprismbase, spec_rx.spec_rx_lnvprism, spec_rx.spec_rx_lnvprismbase, spec_rx.locked, users.user_id, users.user_firstname, users.user_surname FROM spec_rx, users WHERE %s = spec_rx. FK_px_id AND spec_rx. (FK_user_id = users.user_id ORDER BY spec_rx.spec_rx_date DESC, spec_rx.spec_rx_id DESC', $colname_spec_rx);

    $query_limit_spec_rx = sprintf ("%s LIMIT %d, %d", $query_spec_rx, $startRow_spec_rx, $maxRows_spec_rx);

    $spec_rx = mysql_query ($query_limit_spec_rx, $testmypms) or die (mysql_error ());

    $row_spec_rx = mysql_fetch_assoc ($spec_rx);

    If (isset($_GET['totalRows_spec_rx'])) {}

    $totalRows_spec_rx = $_GET ['totalRows_spec_rx'];

    } else {}

    $all_spec_rx = mysql_query ($query_spec_rx);

    $totalRows_spec_rx = mysql_num_rows ($all_spec_rx);

    }

    $totalPages_spec_rx = ceil($totalRows_spec_rx/$maxRows_spec_rx)-1;

    $colname_demographics = "1";

    If (isset($_GET['pxID'])) {}

    $colname_demographics = (get_magic_quotes_gpc())? $_GET ['pxID']: addslashes($_GET['pxID']);

    }

    @mysql_select_db ($database_testmypms, $testmypms);

    $query_demographics = sprintf ("SELECT demographics.px_id, demography. FK_title_id, demographics.firstname, demographics.surname, DATE_FORMAT (demographics.dob, ' % d-% m-% Y') as formatted_dob, title.title_id, title.title FROM demographics, title WHERE %s = demographics.px_id AND demography. (FK_title_id = title.title_id", $colname_demographics);

    $demographics = mysql_query ($query_demographics, $testmypms) or die (mysql_error ());

    $row_demographics = mysql_fetch_assoc ($demographics);

    $totalRows_demographics = mysql_num_rows ($demographics);

    $queryString_spec_rx = "";

    If (! empty($_SERVER['QUERY_STRING'])) {}

    $params = explode ("&", $_SERVER ['QUERY_STRING']);

    $newParams = array();

    {foreach ($params as $param)

    If (stristr ($param, "pageNum_spec_rx") == false & &)

    stristr ($param, "totalRows_spec_rx") == false) {}

    return ($newParams, $param);

    }

    }

    If (count ($newParams)! = 0) {}

    $queryString_spec_rx = '& '. htmlentities (implode ("&", $newParams));

    }

    }

    $queryString_spec_rx = sprintf ("& totalRows_spec_rx = %d %s", $totalRows_spec_rx, $queryString_spec_rx);

    ? >

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 ">"

    < title > Spec Rx3 < /title >

    < script language = "JavaScript" type = "text/JavaScript" >

    <!--

    function MM_goToURL() {//v3.0

    var i, args is MM_goToURL.arguments; document. MM_returnValue = false;

    for (i = 0; i <(args.length-1); I += 2) eval(args[i]+".location='"+args[i+1]+"'");

    }

    ->

    < /script >

    < / head >

    < body >

    Rx Spec < p > < /p >

    < p > <? PHP echo $row_demographics ["px_id"];? > < / p >

    < p > <? PHP echo $row_demographics ['title'];? > <? PHP echo $row_demographics ["FirstName"];? > <? PHP echo $row_demographics ['name'];? > <? PHP echo $row_demographics ["formatted_dob"];? > < / p >

    < p >

    < input name = "Add_spec_rx" type = "button" id = "Add_spec_rx" onClick = "MM_goToURL ('parent', 'add_spec_rx.php'); return document. MM_returnValue' value = 'New Rx' >

    < /p >

    < p > < a href = "<?" PHP printf ("%s? (pageNum_spec_rx = %d %s", $currentPage, max (0, $pageNum_spec_rx - 1), $queryString_spec_rx);? > "> previous < /a > < a href =" <? PHP printf ("%s? (pageNum_spec_rx = %d %s", $currentPage, min ($totalPages_spec_rx, $pageNum_spec_rx + 1), $queryString_spec_rx);? > "> Next < /a > < /p >"

    <? PHP {? >}

    < table border = "1" cellspacing = "1" cellpadding = "5" >

    < b >

    < td > < table >

    < td > <? PHP echo $row_spec_rx ["formatted_rx_date"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_id"];? > < table >

    < td > locked:

    < input <? PHP if (!) ((strcmp($row_spec_rx['locked'],1)))) {echo 'checked' ;}? > name = 'locked' type = "checkbox" id = "locked" value = "1" > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < table >

    SPH < td > < table >

    Cyl < td > < table >

    Axis of < td > < table >

    HPrism < td > < table >

    HPrismBase < td > < table >

    VPrism < td > < table >

    VPrismBase < td > < table >

    NrAdd < td > < table >

    NrHPrism < td > < table >

    NrHPrismBase < td > < table >

    NrVPrism < td > < table >

    NrVPrismBase < td > < table >

    IntAdd < td > < table >

    IntHPrism < td > < table >

    IntHPrismBase < td > < table >

    IntVPrism < td > < table >

    IntVPrismBase < td > < table >

    < /tr >

    < b >

    < td > < table > R

    < td > <? PHP echo ($row_spec_rx ['spec_rx_rsph'] <>null)? sprintf ("%+4.2f", $row_spec_rx ['spec_rx_rsph']): null;? > < table >

    < td > <? PHP echo ($row_spec_rx ['spec_rx_rcyl'] <>null)? sprintf ("%+4.2f", $row_spec_rx ['spec_rx_rcyl']): null;? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_raxis"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rhprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rhprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rvprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rvprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rnadd"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rnhprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rnhprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rnvprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rnvprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rintadd"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rinthprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rinthprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rintvprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_rintvprismbase"];? > < table >

    < /tr >

    < b >

    < td > < table > L

    < td > <? PHP echo ($row_spec_rx ['spec_rx_lsph'] <>null)? sprintf ("%+4.2f", $row_spec_rx ['spec_rx_lsph']): null;? > < table >

    < td > <? PHP echo ($row_spec_rx ['spec_rx_lcyl'] <>null)? sprintf ("%+4.2f", $row_spec_rx ['spec_rx_lcyl']): null;? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_laxis"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lhprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lhprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lvprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lvprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lnadd"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lnhprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lnhprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lnvprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lnvprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lintadd"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_linthprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_linthprismbase"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lintvprism"];? > < table >

    < td > <? PHP echo $row_spec_rx ["spec_rx_lintvprismbase"];? > < table >

    < /tr >

    < b >

    < td > < table >

    < td > user ID <? PHP echo $row_spec_rx ['user_id'];? > < table >

    < td > <? PHP echo $row_spec_rx ['user_firstname'];? > < table >

    < td > <? PHP echo $row_spec_rx ["user_surname"];? > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < td > < table >

    < /tr >

    < /table >

    < p > < / p >

    <? PHP} while ($row_spec_rx = mysql_fetch_assoc ($spec_rx));? >

    < p > < / p >

    < p > < / p >

    < p > < / p >

    < / body >

    < / html >

    <? PHP

    mysql_free_result ($spec_rx);

    mysql_free_result ($Demographics);

    ? >

    barrydocks wrote:

    I don't know there must be a more elegant way to do it!

    <>

    If ($row_spec_rx ['locked'] == 1) {}

    echo 'button html goes here ";

    }

    else {}

    echo "something else";

    }

    ?>

  • Dynamic action based on the value in a table

    Greetings,

    I would like to use a dynamic action to disable a button depending on the value selected/entry in a field in tabular form. Thus, for example, if someone enters the value "LKSG", then a button is disabled (in this case, the 'Add Row' button).

    How I would do this using the tools of dynamic measurements? When I create a dynamic action, I see that my choice of Type 'selection' for dynamic action of shooting is point, area, button, object DOM, jQuery Selector. I don't know how to use a field in a presentation of tabular to firing. Or if it is possible.

    I use APEX version 4.1.1.00.23

    Thanks in advance!

    John

    jfosteroracle wrote:
    Tom - it's very useful! A few questions:

    -J' use a 'button of the model '. To use the static code for the button, I see that the model must include the #BUTTON_ID # in the model. I added the #BUTTON_ID # in the template like this:

    #LABEL#

    Where is the the BUTTON_ID should go, in the

    ?

    After adding this, it does not for a button of the model. But if I change the touch of a button HTML, your method works great!

    It is of course the difference between the two buttons: how they react and, above all, how they are marked upward. An HTML button is a real