How to disable row in tabular form when checkbox checked?

Hi.... this is what i want to do....
I created tabular form for offering items... there is a checkbox that is used to select item with lowest price...
But i have also one column that shows item options ( option is for example... i want offer for 22" monitor Samsung, but seller have only 22" LG monitor.... so in my offering will be shown item (22" monitor Samsung) that i want, and in row below item (22" LG monitor) that seller have... both items will have same order id....
Next thing i want to do is when i select checkbox with item (22" LG monitor) as lowest price, i want that row with same order id (22" samsung monitor) is disabled.
Is that possible to do?
This is my code for creating tabular form:
SELECT
CASE WHEN RED_BR_OPCIJE = 0 THEN '-' ELSE TO_CHAR(RED_BR_OPCIJE) END RED_BR_OPCIJE,
apex_item.hidden(1, ID_STAVKE)||
apex_item.hidden(2, ID_STAVKE_IZ_ZAHTJEVA)||           ---order_id
apex_item.hidden(3, ID_PONUDE)||
apex_item.hidden(4, ODABIR_NAJPOVOLJNIJE_STAVKE)||     
apex_item.checkbox(5, '#ROWNUM#', null, decode(ODABIR_NAJPOVOLJNIJE_STAVKE, 'X', '#ROWNUM#')) Odabir,    ---checkbox_lowest price
apex_item.textarea(6, NAZIV_ARTIKLA_TRAZENO, 3, 40, 'readonly="readonly"') NAZIV_ARTIKLA_TRAZENO,
apex_item.textarea(7, NAZIV_ARTIKLA, 3, 40, 'readonly="readonly"') NAZIV_ARTIKLA,
apex_item.text(8, SIFRA_ARTIKLA, 8, 20, 'readonly="readonly"') SIFRA_ARTIKLA,
apex_item.text(9, JMJ, 5, 20, 'readonly="readonly"') JMJ,
apex_item.text(10, KOLICINA, 6, 20, 'readonly="readonly"') KOLICINA,
apex_item.text(11, JEDINICNA_CIJENA, 12, 20, 'readonly="readonly"') JEDINICNA_CIJENA,                                      ---price
apex_item.text(12, IZNOS_STAVKE, 12, 30, 'readonly="readonly"') IZNOS_STAVKE,
apex_item.text(13, IZNOS_RABATA, 12, 20, 'readonly="readonly"') IZNOS_RABATA,
apex_item.text(14, JEDINICNA_CIJENA_NAKON_POPUSTA, 12, 20, 'readonly="readonly"') JEDINICNA_CIJENA_NAKON_POPUSTA,
apex_item.text(15, IZNOS_STAVKE_NAKON_POPUSTA, 12, 20, 'readonly="readonly"') IZNOS_STAVKE_NAKON_POPUSTA
from PONUDE_STAVKE
where ID_PONUDE = :P34_ID_PON
ORDER BY ID_PONUDE ASC, ID_STAVKE_IZ_ZAHTJEVA ASC, RED_BR_OPCIJE ASC
And this is example table with a few column names:
order_id      option_number               item_name                      price         checkbox_lowest price
1086                    -                Samsung 22" monitor              100$                 null                ---this row should be disabled because next row is selected as lowest price
1086                    1                LG 22" Monitor                    90$                 X                   --- both rows have same order_id
1050                    -                Router                            100$                X

Hi snake2903,
{thread:id=998140}
{thread:id=1554583}
{thread:id=2249233}
Hope it helps!
Regards,
Kiran

Similar Messages

  • Delete rows from Tabular form

    Hi,
    Anyone knows how dynamicly delete rows from Tabular Form (on button click, button is as item)?
    Thanks.

    I am in a great fix. We had a test instance.. and we had a version apex 3.2.. But when the same application has been uploaded to prod.. we used apex 4.0.Why on Earth would you do this? The whole point of the testing is to verify that the application will work in the production environment: the first requirement for this is that the test and production environments are equivalent.
    has any body is facing the same issue as mine..Yes, as is easily discovered by searching the forum...see Delete button doesn't work in tabular form after upgrade from APEX3.2 to 4.

  • Disable Item in tabular form in Apex

    I would like to disable items in tabular forms.
    If line status is Draft then all items of tabular form are enable other disable.
    How to write this condition and where should i write because in dynamic action tabular Item is not showing...
    Edited by: 926257 on Apr 9, 2012 12:53 AM

    hi
    926257
    you can do that using java script
    these links may helpful to you
    <a href>Tabular form: how to dynamically enable/disable columns and rows
    <a href>Tabular Form: Enable/Disable a field based on the status of a check box
    <a href>http://www.codetoad.com/javascript/enable_disable_form_element.asp</a>
    <a href>http://www.tizag.com/javascriptT/javascript-getelementbyid.php</a>
    thanks and regards
    pavan

  • How to Disable Row Detail in Sales Module

    Dear Experts,
    how to disable row detail option in sales module. how it is posible. we are using SAP Business One 2007. PL42
    Thanx

    AOA Rahil,
    I have just solved this problem, I was also facing the same one
    I am using B1DE, I have handled this on before menu click when open the form
    <B1Listener(BoEventTypes.et_MENU_CLICK, true)>  _
            Public Overridable Function OnBeforeMenuClick(ByVal pVal As MenuEvent) As Boolean
                'GENERATED CODE
                Me.LoadForm()
    1***            Dim Form As Form = B1Connections.theAppl.Forms.ActiveForm
       2 ***        Form.Settings.EnableRowFormat = False
                Return false
            End Function
    1--Capture the current form
    2--Disable Row Detail Form
    It worked for me
    Best Regards,
    Umer Nasim Mirza
    03004003633

  • How to disable debugger for sapscript forms.

    How to disable debugger for sapscript forms.
    Once activated in se71-Utilities-Activate debugger I do not know how to disable it

    Thank you Rich
    I assigned you points for good answer on my preavious mail)
    . Actually my real problem is a transported the SAP script form “znalepke2” , printer definition ”nale”
    and device type “zststartsp” of a thermal printer.
    On original system (ak1) the printout is ok but on target system(ak2)
    not.
    Lateron I transported also :
    R3TR SCPD 1403(as the device type uses this character set)
    R3TR TABU TSP08 (All entries)
    R3TR TABU TSP1D(All entries)
    R3TR TABU TSP1T(All entries)
    I used also report  RSTXSCRP to traport form and device types. L
    Lately I discovered that when I performe printout preview I get also eronneous printout If I ssue an printout preview in language "EN" on system "ak1"(only on system ak1 and form preview in "SL" is oK. What steps you suggest me to solve the prolem
    Thank you in advance

  • How to save the session states for a tabular form WITHOUT using check boxs?

    Greeting guys,
    As you know that we can use collections to save the session states of a tabular forms, described in the how-to doc of manual tabular forms. However, what I am trying to do ( or have to do) is to provide a manual tabular form, and save the session states for validation, without using the check boxes. Because a user can put contents into some columns in a row without checking the corresponding checkbox, according to the requirements. So basically what I tried is to loop over all the rows and save Every entry into a collection. However, sometimes I got "no data found" error with unknown reasons.
    My current solution is to use the "dirty" Retry button that gets back the history, which IMO is not a good workabout. So, I'd appreciate if somebody can shed some light on a better solution, especially if it is close to the one in that how-to doc.
    Thanks in advance.
    Luc

    The following is the first collection solutin I've tried:
    htmldb_collection.create_or_truncate_collection('TEMP_TABLE');
    for i in 1..p_row_num loop -- Loop on the whole form rows
    if (htmldb_application.g_f01(i) is not null) or (htmldb_application.g_f05(i) <> 0)
    --If either of them has some input values, the row should be saved into the colleciton.
    then
    htmldb_collection.add_member(
    p_collection_name => 'TEMP_TABLE',
    p_c001 => htmldb_application.g_f01(i),
    p_c002 => htmldb_application.g_f03(i),
    p_c003 => htmldb_application.g_f04(i),
    p_c004 => htmldb_application.g_f05(i),
    p_c005 => htmldb_application.g_f06(i),
    p_c006 => htmldb_application.g_f08(i)
    end if;
    end loop;
    Some of columns have null values, but I don't think that's the reason. Because once I clicked all the check boxes, there would be no error no matter what values were in other columns.
    Another issue would be extract the values FROM the collection, which has been tried because I had problem to store the data into the collection. I used "decode" functions inside the SQL to build the tabular form. I am not sure whether it will be the same as a regular SQL for a tabular form, like the example in the How-to doc.
    Also I didn't use the checksum, for it is not an issue at the current stage. I am not sure whether that's the reason which caused the NO DATA FOUND error.

  • Losing data on a tabular form when submitting a page with validation errors

    I have a window that has a regular HTML form at the top that has several items. Then on the bottom of the page, I have a tabular form where the user can enter multiple rows of information. Unfortunately, when the page is submitted, if there are any validation errors, any changes that were made in the tabular form are lost.
    Any suggestions

    Fair enough :)
    Actually what I was meaning was could I use a collection to repopulate the tabular form when I receive errors. It appears as if it may work. However, I am hitting one snag.
    I have created a PL/SQL Process that runs On Submit and Before Computations/Validations. In this process, I have saving the values in the tabular form to a collection.
    I was then hoping to create another process that ran after any errors occur. However, it does not appear as if any processes run when the screen redraws after a validation issue. Is there a process that runs after validations when the screen is redrawing? Will I need to do this using javascript?
    Thanks

  • Disable column in tabular form

    Hi,
    I am working on apex4.1 ,working on tabular form . i want to disable columns in tabular form.
    I Have debit and credit column in tabular form.These columns are multiply by exchange rate.
    if i have multiplication of Debit_prod =debit*Exchange_rate then
    credit column should be disable, and if Multiplication of cr_prod =Credit*Exchange_rate
    then dr column should be disable.
    Thanks in advance.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Sep 20, 2012 4:14 AM

    Hi,
    Thanks for reply.
    I am entering the value in tabular form. As i fill debit or credit column of the tabular form,Then if value in the debit column i have entered ,then on press tab control switch to exchange rate column , credit column should not be enterable and vice versa.
    Thanks & Regards
    Vedant

  • How to disable Withholding Tax in Form Setting

    Hi,
      How to disable Withholding Tax in Form Setting  for A/P or A/R  service invoice document.
    Thank you.
    sridhar

    Hi Sridhar,
    You cannot disable Withholding Tax from Form Setting in A/P or A/R for specifically service invoice only. If you want to disable you have uncheck from General Settings BP master, Item Master.
    Thanks
    Sachin

  • Insert statement in when-checkbox-checked trigger doesn't work

    in a when-checkbox-checked trigger, I wrote the follwing code :
    IF :sunday = 'Y' THEN
    msg_alert('Y','I',false);
    pkg_var.v_day_count := pkg_var.v_day_count + 1;
    msg_alert('1','I',false);
    :schtm_skmk.day_id := '1';
    msg_alert('2 ',I',false);
    INSERT INTO schtm      
    (ROUTE_ID, DAY_ID, FLIGHT_ID)
    VALUES
    (:schmf.ROUTE_ID, :schtm_skmk.day_id, 1);
    COMMIT;
    msg_alert('end insert schtm','I',false);
    END IF;     
    if the checkbox is checked, I assigned value '1' to day_id. Then, I want to insert a row into table SCHTM. But, the insert statement fail. The msg_alert '2' pop up. The msg_alert 'end insert schtm' does not pop up, meaning the insert statement fail. It also fail after I replace the insert statement with the exact value of the item. But if I execute this statement in SQL plus, it insert a row into the database.
    What is strange here is it did work before, I successfully insert 2 rows into database. But when I test it again just a while later, it never work anymore.
    Please help.
    Thanks,
    Shu Wen

    It seems that you have missed ELSE. By the way there is only one INSERT ...

  • Add row to tabular form pagination problem when sorted

    Hi,
    I have a problem with a tabular form that has various sortable columns. If the user tries to add a row when the sort order is set to something where possibly the nulls are appearing first in the list, then the user cannot enter any data (since the last page of results is always shown after clicking the add row button).
    I know the empty record is in the list somewhere since the pagination page count is increased by 1, but there is no way for the user to enter data into that record since traversing back pages then removes the empty record. How can I fix this? Is it possible to programatically reset all column sorting?
    Cheers!

    Hi,
    Sort orders in reports are stored as user preferences - these can be removed using PL/SQL. Have a look at: Need to do column SORTING only when I click the column heading and Re: Default sort and pagination placement not working in reports
    Or, you could try adding a blank row in your SQL statement itself: Problems With "Add A Row"
    Andy

  • How to add a new row in Tabular Form based on a table

    Hi
    I have tabular form based on a table.
    I want the table to have an empty row when there is no data
    in the table so that I can enter data directly.
    But right now whenever the page is launched, its showing a no data found message and I have to press the 'Add Row' button to enter data.
    Can anyone help me out on this?
    Thanks

    Hi Leo
    Your suggestion works fine in the APEX 2.1
    But in 3.0.1 it gives this error :
    Error in add row internal routine: ORA-01476: divisor is equal to zero
    Error Unable to add rows.
    I am not sure why this happens.

  • How to stop insert of new row in tabular form if it's also being deleted

    Suppose you have a tabular form, and one of the fields is a not-null column. A user checks a button to "add additional row", which adds a new row to the form, defaulting that not-null column to null. Assume it's a name or something, so there is no reasonable non-null default value that can be entered here to keep it from being null.
    Now suppose the user makes a series of changes on the page, but then decides they don't want that row they just added, so they mark it for deletion, then click on "Delete Checked Rows". The not-null column was left blank.
    The page is constructed in such a way that the ApplyMRD process runs first, then the ApplyMRU process. (I do this so that the user doesn't lose all their updates if they want to delete a row. I've had a few people complain when they tried to combine both operations, and unexpectedly lost their updates when they hit delete instead of submit.)
    What happens? The page errors out because the ApplyMRU process is trying to insert a row with a null value in a not-null column. The ApplyMRD process ran fine, but because the row marked for deletion didn't exist in the database to begin with, it effectively did nothing. But ApplyMRU still tries to add the row, even though it was marked for deletion.
    Is there any way to prevent this scenario from happening, without requiring the user to Cancel instead of deleting the blank row, which would cause all other changes on the page to be lost? I'd also like to avoid losing the ApplyMRU process when the user clicks "Delete", since it's more effective to combine operations and this will address the UI complaints I'd received otherwise.
    (This is on ApEx 4.0, if it matters.)
    Thanks,
    Keith

    Thinking about this some more, doing the delete and update together may not be an easy thing to accomplish after all.
    Consider the above scenario, but the user puts a dummy value like "ignore-me" into the not-null text field, so the error doesn't come up with ApplyMRU is fired. But if ApplyMRD runs before ApplyMRU, it still doesn't do anything because there is no row in the database with the value "ignore-me". Then ApplyMRU runs and it adds that row, even though it was marked for deletion.
    So you probably need to always run ApplyMRU before ApplyMRD. But then you wind up inserting a row before you delete it, and that may have unintended side effects, if the user really never wanted to add it in the first place.
    Right now, the only workaround I can think of is to:
    1) put ApplyMRU before ApplyMRD
    2) add a pre-commit validation that checks to see if a row is blank AND checked, and if so, put a dummy value into the not-null field
    3) let that row get added and then deleted, and make sure there are no side effects from this (for example, there is an audit table that tracks updates to the base table -- I can add a trigger that does nothing if presented with this dummy value)
    Hopefully, though, there is an easier and more "built-in" way to achieve what I'm aiming for.

  • How to capture number of tabular form rows in javascript

    Greetings All -
    I have a tabular form that I created manually.
    I am looking for a way in javascript to capture the number of rows that are displayed on the page.
    Is this possible?
    Regards,
    Mark

    Bill -
    Thank you for the reply.
    I had thought of your suggestion but I was unsure where I could execute the apex_application.g_fxx.count command without submitting the page.
    I cannot do this on a submit, because I need to now the number of rows displayed in order to do a calculation while entering a row on a manually created tabular form
    Suggestions appreciated
    Regards,
    Mark

  • How to create validation only for created rows in tabular form

    Hi all,
    I have a simple question. Is it possible to create a validation for tabular form which will be fired only for created?
    There is a possibility in APEX 4.1 to choose two types of "*Execution scope*" first is "*For created and Modified Rows*" and second is "*All Submitted Rows*".
    Thanks in advance!
    Regards,
    Jiri

    Hello Jiri,
    >> Is it possible to create a validation for tabular form which will be fired only for created?
    You can still use the scope of For created and Modified Rows and use a PL/SQL Expression condition of:
    :APEX$ROW_STATUS = 'C'You also need to change Execute Condition to For Each Row .
    Hope it helps,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

Maybe you are looking for

  • Noobie - script trying to open classic when it's not needed

    I need some help. I have written a short, simple script that I hope will work to open an index.htm file in a users default browser when it is run from a cd. I have a disk that basically contains a website with links on the disc and links to the web.

  • Redundancy management IP and Redundancy port IP unreachable issue

    Hi, all I got one interesting issue with wireless 5508 controller. we have ordered two WLCs, one is air5508-12-k9, Anther one is air5508-HA-k9. Now, we are going to form HA mode and HA box will become standby mode. One issue we are seeing now. after

  • Iphone 5 order still processing? 14 days later??

    I ordered my iphone on the 15th of sep and its still processing today?? anyone else have this and do you think it will be at my house between the 4-10th of october like it says? (i dont know if this is the right section this should be in, sorry if it

  • How can i get back and app i buy because i delete by mystake

    i need to know how can i get back my application  because i delete by mistake or i have to pay again for it

  • Fluke 5500A Driver does not work

    I am connecting my computer to the Fluke 5500A Calibrator. Using Labview 7.1 and VISA 3.2. The driver from the web does not work. Do I need to download the old version of the VISA? Has anybody facing the same problem? Thanks Lian