Disable the number of items based on the values of another page/table

Hi people,

I have a form with 15 fields such as:

Form1

id_plan = 1

level 1 = 2

level 2 = 2

level 3 = null

level 4 = null

level 5 = null

level 6 = null

and so on...

Later, in another form that I have:

Form2

ID

id_plan (from 'form1')

account: 10.01 (based on the number of decimal places defined on the level of 'form1')

So, I need to disable page Form1 items if I had some values of Form2. But only the levels where the account is registered. In the example above, only level 3, level 4, level 5, level 6 and so on would be activated.

Any suggestion?

I could put a read only condition for any page in question, is it good? or there is another suggestion?

Thank you

bsalvador

Hi people,

To resolve my issue, I used the read only option. I chose the body of the PL/SQL function returning a Boolean and put

Start

If (CST_RETURN_LEVEL(:P7_ID_PAR_PLANO_GER) > = 2) then

Returns true;

end if;

end;

where CST_RETURN_LEVEL is a function that returns the last filled level. If the point of the page is at level 2, I test, if CST_RETURN_LEVEL(:P7_ID_PAR_PLANO_GER) > = 2 then I returned true for read only and so on for other page elements.

Thank you

bsalvador

Tags: Database

Similar Questions

  • How to change the value from another page

    I'm filtering province in my application based on a province selected in the home page (P16), however the user can submit a form that has a province that and after that, all the content must be filtered according to the selected province 'new '. So I'm in the P7 and after submitting the form, I would need to change the P16_PROVINCE - which belong to another page (P16).

    but do not know how,
    Any help?

    Mehrdad says:
    Thanks, VC, but I need to have a trigger to change the P16_PROVINCE after submitting the form, so that one must be changed according to what the user does on a form...
    After he submit the form, I have my game P7_PROVINCE, which is fine, but AFTER the selection, I need to change the P16_PROVINCE (which is used as a global variable to filter my records...)

    Add a plsql page 7 page process and submit the game it runs - as below

    //assign the value of P7_PROVINCE into P16_PROVINCE
    :P16_PROVINCE := :P7_PROVINCE;
    

    See http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/concept_ses_val.htm#HTMDB03012

  • Fill a field from the value on another page

    Hi all

    I do not have a form, I'm, and I all the other scripts I have written about this work except one. There is a field of calculation based on its value, it checks the box on a page depending on the range. This calculated is read-only. I wrote the following code and put on the output event, but it does not work. Please can someone help me with why it isn't workiong.

    if ((form1. Page5.raterec1.RawValue> =1)& &(form1. Page5.raterec1.RawValue<2)) { }

    rrun1.rawValue==1;

    }

    if ((form1. Page5.raterec1.RawValue> =2)& &(form1. Page5.raterec1.RawValue<5)) { }

    rrsuccess1.rawValue==1;

    }

    if ((form1. Page5.raterec1.RawValue> =5)& &(form1. Page5.raterec1.RawValue< =6)) { }

    rrout1.rawValue==1;

    }

    Thank you

    v/r

    LucPian

    Hello

    I think that we are approaching:

    The user selects dropdown > This sets the value of raterec > script in the menu drop-down looks at the value of raterec and then sets the values for the checkboxes.

    I think what is happening is that the script sets the value of the correct raterec. BUT continues with the script of box BEFORE rawValue of raterec is set to the new value.

    So I share the script.

    Have the script in the box calculate event resembling the rawValue of raterec (see previous post). The rawValue of raterec changes, the script in the boxes is automatically activated.

    Then the script from the drop-down list changes just the rawValue of raterec.

    Box script looks like to > raterec.rawValue

    ^

    ^

    list dropdown script games ^

    (diagram of garbage)

    Niall

    Ensure the dynamics

  • Select list need to pass a value to collect information based on a value in another page

    I have a page product - detail.php which is then sent to a cart.php I have a number of tables that are all United and that you show in the following statement. the results are displayed on the detail page

    $var1_rsProduct = "-1";

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

    $var1_rsProduct = $_GET ['productID'];

    }

    @mysql_select_db ($database_beau, $beau);

    $query_rsProduct = sprintf ("SELECT * FROM beauAW13_SizeList WHERE beauAW13_products.catID = beauAW13_Cat.catID AND beauAW13_products, beauAW13_Cat, beauAW13_products, beauAW13_Stock.") ProductID = beauAW13_Stock.ProductID AND beauAW13_Stock.SizeID = beauAW13_SizeList.SizeID AND beauAW13_products. ProductID = %s AND beauAW13_Stock.Stock! = 0 ", GetSQLValueString ($var1_rsProduct,"int"));

    $rsProduct = mysql_query ($query_rsProduct, $beau) or die (mysql_error ());

    $row_rsProduct = mysql_fetch_assoc ($rsProduct);

    $totalRows_rsProduct = mysql_num_rows ($rsProduct);

    I have a selection list that must demonstrate that the sizes.this is shown below

    < select name = "select" id = "sΘlectionner" >

    <? PHP

    {}

    ? >

    < option value = "<?" PHP echo $row_rsProduct ["StockID'];? > "> <?" PHP echo $row_rsProduct ["Size"]? > < / option >

    <? PHP

    } While ($row_rsProduct = mysql_fetch_assoc ($rsProduct));

    $rows = mysql_num_rows ($rsProduct);

    If ($rows > 0) {}

    mysql_data_seek ($rsProduct, 0);

    $row_rsProduct = mysql_fetch_assoc ($rsProduct);

    }

    ? >

    < / select >

    It currently passes the value of <? PHP echo $row_rsProduct ["StockID'];? >

    which is ok, as it is a so on single number completely the basket page, I need to get all this stockID size information

    Here's an example:-

    I used a stockID of 355

    on the cart.php the stockID resonates on as 355 and size echoed the as 355, which is what I expected.

    the stock table looks like this

    StockID | ProductID. SizeID |  Stock

    ---------------------------------------

    355.    582.   14.    5

    so

    ProductID is jumper blue

    Stock ID is unique number

    SizeID = 14 = once size

    Stock = 5 in stock

    so I need in the basket tell

    355 = 14 = unique size

    I can then echo the correct size in single size and not of 355

    I really hope someone can help

    Thank you

    Thanks for everyone's advice. I managed to make it work

    I sent the stockID; go to the basket page, made a new variable based on the stockID made a request and got all the information based on the new variable stockID

    <>

    $newStockID = $XCart_StockID = ${$XCName} ["content"] [0] [$XCart__i];

    @mysql_select_db ($database_beau, $beau);

    $query_rsSize = "SELECT * FROM beauAW13_SizeList, beauAW13_Stock WHERE beauAW13_Stock.SizeID = beauAW13_SizeList.SizeID AND beauAW13_Stock.StockID = '$newStockID" ";

    $rsSize = mysql_query ($query_rsSize, $beau) or die (mysql_error ());

    $row_rsSize = mysql_fetch_assoc ($rsSize);

    $totalRows_rsSize = mysql_num_rows ($rsSize);

    ?>

    Select the list

  • How to disable a page based on the value of another element on the Page element?

    Hello

    How can I turn a page element using javascript based on the value of another element on the page?

    Eg: P1_TEXT want to be disabled if the value in P1_LCOK = "LOCK".

    How can I do this using javascript. I want this implemt on loading the page.

    Kind regards
    Benz

    Put this function in the page header:

    
    

    and call it in the footer:

    f_disable_item;
    

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • Deactivating a page element based on the value of another element on the page

    Hello
    I have a page element I want to turn off if the value of another article (drop-down list item) is set to a specific value. I followed the example in the book 'Pro Oracle APEX"(p.320) in this regard. He ordered me to do this in the HTML form element attributes for the element section:
    OnChange = "htmldb_item_change (this); html_DisableOnValue (This, 'Closed', 'P3_PRIORITY', 'P3_ASSIGNED_TO'); »

    It works very well. It disables the element I want to disable. HOWEVER, it does not neutralize the article unless the element with the onchange attribute is changed.

    How can I add features to disable the second element, even if the first element does not change, but contains the value 'Closed' when the user of the first load of the page?

    Thanks for your help and your insight!
    -Reid

    Hello Reid,

    The easiest way would be to (also) a Condition only read the item that you want to disable.

    Greetings,
    Roel

    http://roelhartman.blogspot.com/

  • How do I delete an article based on the value of another field


    I have a pdf form that I added to the text fields. My challenge is that of the financial section of the form, if the value of a specific field is empty or null, I blank block of signature financial review.  I've been trying to find a way to cover the area of signature with a white box or have a text box with signature block text appear or disappear depending on whether the value is zero or empty.

    If seen many answers on how to make the field itself disappear based on value, but I did find something that causes another field or shape appear or disappear depending on the value of another field.

    Please try the following script,

    var signid = true;

    If (this.getField("finan").value! = 0) signid = true;

    of another signid = false;

    If (SignID) this.getField("signaturefield").display = display.visible;

    else this.getField("signaturefield").display = display.hidden;

    Please let me know if it solves the problem.

  • Change the Label element based on the value of another element

    Hi guys,.

    I need to put a label of point (A) based on the value of another article (B). I did the following:
    I created a dynamic action.
    When B changes:
    1. present the value of B
    Article 2-updated
    Is element A label: myitem & b.

    Any ideas?

    Best regards
    Fateh

    His work! Check it out now

    Just do it

    $('#mylabel').children('label').children('span').text($v('P1_A'));
    

    Published by: VC on June 9, 2012 11:21

  • Fill a field value based on the value of another field

    Hello
    Could someone tell me what is the problem with the following select statement. For a group of records, trying to fill a field with a value based on the value in another field (problem of status), but the Group of records appears empty just when I put this code in the field.
    Any help would be appreciated
    Thank you


    <? choose:? >
    <? When: IssueStatus = "Open"? >
    <? 1? >
    <? end when? >
    <? otherwise:? >
    <? When: IssueStatus = "closed"? >
    <? 2? >
    <? end when? >
    <? otherwise:? >
    <? When: IssueStatus = "Unresolveable? >
    <? 3? >
    <? end when? >
    <? end otherwise? >
    <? end to choose? >

    Use the following syntax.

    
    
    Display 1
    
    
    Display 2
    
    
    Display 3
    
    
    
  • How can I use highlighting conditional to assign a cell using the value of another cell

    I would use conditional highlighting on a cell based on the value of another cell.

    For example:

    If K2 is 1, then I would than A4 Green

    Any suggestions?

    Hi louis,.

    This approach is to add a cell to compare your target for:

    Highlight the rule in this case:

    Quinn

  • Passing the value from one page to the other page

    Hi gurus,

    I need to pass the value from one page to the other page and two pages use different AMs.
    In the first page I have sellers results region table where the $vendor_name column is a hyperlink that navigates to the page Vendor_Sites. Now after accessing the second page, I want to excute the VendorSitesVO in PR of CO based on the value passed to VendorsVO (vendor_id) of first page.

    can someone help me on this?

    Thank you
    Vincent.

    Published by: user4933347 on December 4, 2009 12:19 AM

    You can set parameters of Pagecontext and transmit values through them. These values can be passed between pages, even if the AMs are different.

    Try:
    pageContext.putParameter ("Parameter1", value1);
    pagecontext.setForwardURL (second page)

    Concerning
    Sumit

  • How can I move these indicator and the control to another page?

    How can I move these indicator and the control to another page? I page Kontrol and those on Installningar page, move!

    Or I want to hide them Kontrol page, how can I do

    Thank you

    Hi q8.

    move: select the controls, move them out of the container tab, drag them into the appropriate page of the tab container

    Hide: Terminal controls (!) right click, select "hide"...

  • To access the APEX_COLLECTIONS on another page

    Use: APEX 5

    One of my app pages (Page 12), I have a dynamic action that calls upon request AJAX callback process.

    The code of the dynamic action has the javascript call:

    var arr_f01 = [];

    () $("input[name='f01']:checked").each

    function() {}

    arr_f01.push ($(this).) Val());

    });

    (apex). Server.Process

    "Lines Checked process."

    {f01: arr_f01},

    {the data type: 'text',}

    Async: false,

    success: {function (pData)}

    $s ("P12_SELECTED", pData);

    }

    });

    The recall AJAX process is:

    Controlled process lines

    declare

    l_f01 varchar2 (2000);

    Start

    APEX_COLLECTION. () CREATE_OR_TRUNCATE_COLLECTION

    p_collection_name = > 'TEST_COLLECTION');

    l_f01: = ";

    delete from lrg_symptoms_select;

    because me in 1.APEX_APPLICATION. Loop G_F01. Count

    insert into lrg_symptoms_select values (APEX_APPLICATION. G_F01 (i));

    l_f01: = l_f01 | APEX_APPLICATION. G_F01 (i) | «, » ;

    end loop;

    APEX_COLLECTION. ADD_MEMBER)

    p_collection_name = > 'SPLIT_SYMPTOMS ',.

    p_c001 = > l_f01);

    Select c001 in: l_f01 of APEX_COLLECTIONS where collection_name = "TEST_COLLECTION";

    HTP.PRN (l_f01);

    commit;

    end;

    I have 2 questions here:

    1. After this process, I call a modal dialog (Page 9) page at the click of a button. The modal dialog box is to have an area of report that is supposed to display the data of this APEX_COLLECTION

    Select c001 in APEX_COLLECTIONS where collection_name = 'TEST_COLLECTION';

    But I get the following error

    Failed to parse the SQL query:

    ORA-00933: SQL not correctly completed command.

    How can I access the collection on the page of the modal dialog box?

    2. the value of the page (P12_SELECTED) in dynamic action element is not visible in the session state.

    The value is displayed on the page but when I check it in the session, it is null. Also when I pass this value to another page, it is delegated to as NULL.

    How to set the value of page element in the session?

    Thanks in advance

    Hina

    844372 wrote:

    Update your forum profile with a recognizable username instead of "844372": Video tutorial how to change username available

    I have 2 questions here:

    1. After this process, I call a modal dialog (Page 9) page at the click of a button. The modal dialog box is to have an area of report that is supposed to display the data of this APEX_COLLECTION

    Select c001 in APEX_COLLECTIONS where collection_name = "TEST_COLLECTION";

    But I get the following error

    Failed to parse the SQL query:

    ORA-00933: SQL not correctly completed command.

    How can I access the collection on the page of the modal dialog box?

    Remove the ';' the query.

    2. the value of the page (P12_SELECTED) in dynamic action element is not visible in the session state.

    The value is displayed on the page but when I check it in the session, it is null. Also when I pass this value to another page, it is delegated to as NULL.

    How to set the value of page element in the session?

    Set the value of the element in the recall process and use it as the return value:

    :p12_selected := ...;

    I can't integrate it in your code because I don't understand. Why the TEST_COLLECTION is created and used in a query, but the data added to the collection of SPLIT_SYMPTOMS?

  • How to automatically complete a transitional according to the value of another attribute when attribute line is questioned in the VO?

    Hello world

    The task seems simple enough, but I have not found a way to populate an attribute transitional according to the value of another attribute when the line is queried. What is the best way to achieve this?

    Thank you.

    James

    Use VORowImpl, if you have any transient attributes defined in the view object, whose value is derived from other attributes of the line, you can override the GET method and add logic there

    Please note that this class represents a row in the results collection in a display object.

  • Set the value to the field on another Page

    Hello

    I'm still a little new to this, through forums, that I managed to learn a lot of things. But I met another difficulty. I have

    I created a form in LiveCycle with two pages. On page 1, the fees are calculated by multiplying Field1 * Field2 and by adding the value of another. I managed to accomplish this with the following code:

    This.rawValue = Field3.rawValue + (Field1.rawValue * Field2.rawValue)

    As I said, that seems to work.

    To Page 2, I have a drop down list with five options. In the object > value tab I checked specify point values but has not changed a thing. If the value of the option range from 1 to 5.

    When option 5 is selected I want to set a value for a field that is Page 1. I tried with the following script:

    If (this.rawValue = 5) {}

    Page1.positionedSubform.field3.rawValue = 149;

    } else {}

    Page1.positionedSubform. Field3.rawValue = 0;

    }

    I'm now writer at all, but it seems to work somehow. Not that I want to :-).

    When I saw the PDF that it auto sets the value of Field3 and the drop to 149 field.

    I want to first Field3 on page 1 to 0 by default (entered in the object > field value tab 3) and set it to 149 if you have selected the option with the value of 5 in the drop down list on page 2.

    Any ideas?

    (Sorry for the bad explanation, don't know how to explain it better is if)

    Hello

    Did you use the calculate event in the drop-down list? If so, move the script to the output of the dropdown event.

    Niall

Maybe you are looking for

  • My computer is safe or it is compromised?

    Hello Please help me I'm not a tech savvy to make me just need your help gives me peace of mind. I was working on my mac pro and a pop screen out telling me that my they blocked my computer because of the risk of having a virus and I need to ring the

  • Get rid of the old songs on my iphone

    I recently bought a new car, and I play my music via my iPhone.  But recently, I noticed that my phone plays old songs that I deleted a long time ago.  How to remove these songs.  These songs are not on my current IPhone. Thank you!

  • Satellite Pro C660 does not start, no screen

    Hi guys I was wonder if anyone could help please. I have a Toshiba laptop Satellite Pro C660 - 2 DR who seems to be defective (just out of warranty).Everything worked fine until we came to a morning market and found that the screen remains off (black

  • AC adapter / CC has a slight split on the new Toshiba unit

    Hello I just got my new Toshiba today. However, I just noticed that on the adapter sector (the end that connects to the laptop) has a slight split inside. This exposes the wires inside. What would be the best thing to do at this point? Thanks in adva

  • Satellite C660 is unable to start for the first time

    I have a Satellite C660 - PSC0AQ-03C019 + 1B194392K For the last year laptop worked fine in the last 2 months, however he had a problem starting. The first starting attempt of the day, it does not start, it is consumed on gets in front of splash scre