Home » Developer & Programmer » Application Express & MOD_PLSQL » how to disable a selected row in oracle apex (oracle 4.0)
how to disable a selected row in oracle apex [message #571140] Wed, 21 November 2012 08:11 Go to next message
karthika21
Messages: 7
Registered: November 2012
Location: Bangalore
Junior Member
Hi ,

I have created the apex page and in that i want to disable a row for certain condition. I tried with javascript but its not working fine. Please help me to proceed forward.


[MERGED by LF]

[Updated on: Thu, 22 November 2012 02:36] by Moderator

Report message to a moderator

How to disable a row in Oracle Application Express [message #571200 is a reply to message #571140] Thu, 22 November 2012 03:07 Go to previous messageGo to next message
karthika21
Messages: 7
Registered: November 2012
Location: Bangalore
Junior Member
Hi,
I hane the situation where,Based on the selection of a dropdown , the rows in the table has to be greyed out/disabled.
I mean i have the three options in the drop down list box i.e. option 1, option 2 , option 3. Suppose,
i) if i select the option 1 from the drop down box then the rows(10,20,30) should be disabled or greyed out.
ii) if i select the option 2 in the second row tthen the corresponding row should be enabled.

Here is the code:

<html>
<body>
<table id='tableID' border="1">
<tr>
<td> option </td>
<td> demo 1 </td>
<td> demo 2 </td>
<td> demo 3 </td>
</tr>
<tr>
<td>
<select name="f02" onchange="ob_TableToggleType(this);"

id="type0"><option value="0" selected="selected">- Select -</option>

<option value="demo 1" > demo 1</option>

<option value="demo 2" >demo 2</option>

<option value="demo 3" >demo 3</option>
<td> 10 </td>
<td> 20 </td>
<td> 30 </td>
</tr>
<tr>
<td>
<select name="f02" onchange="ob_TableToggleType(this);"

id="type0"><option value="0" selected="selected">- Select -</option>

<option value="demo 1" > demo 1</option>

<option value="demo 2" >demo 2</option>

<option value="demo 3" >demo 3</option>
<td> 40 </td>
<td> 50 </td>
<td> 60 </td>
<tr>
<tr>
<td>
<select name="f02" onchange="ob_TableToggleType(this);"

id="type0"><option value="0" selected="selected">- Select -</option>

<option value="demo 1" > demo 1</option>

<option value="demo 2" >demo 2</option>

<option value="demo 3" >demo 3</option>
<td> 70 </td>
<td> 80 </td>
<td> 90 </td>
</tr>
</body>
</html>

and the result, i have uploaded it.

Please help me in this issue.

Thanks in advance.

Regards,
Karthika
  • Attachment: sample.JPG
    (Size: 10.95KB, Downloaded 109 times)
How to disable row in oracle apex [message #571288 is a reply to message #571140] Fri, 23 November 2012 00:37 Go to previous messageGo to next message
karthika21
Messages: 7
Registered: November 2012
Location: Bangalore
Junior Member
Hi,

Any Javascript experts please help me in this issue...



Thanks in Advance

Regards,
Karthika
Re: How to disable row in oracle apex [message #571343 is a reply to message #571288] Fri, 23 November 2012 13:30 Go to previous messageGo to next message
Littlefoot
Messages: 19697
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I don't understand the question.

You said you created a HTML page and posted its code. OK, I copied it to an Apex HTML page, ran the page and got the output similar to a screenshot you posted. So far, so good. However, what do you mean by "disabling" the row? What row? Table cells with numbers? There's nothing to disable as you can't do anything with these numbers.

So, what's the question, again?
Re: How to disable row in oracle apex [message #571426 is a reply to message #571343] Sun, 25 November 2012 23:07 Go to previous messageGo to next message
karthika21
Messages: 7
Registered: November 2012
Location: Bangalore
Junior Member
Hi,

Thanks a lot.

Actually if the option,demo 1 got selected in the drop down list box, then demo 1, demo 2, demo 3 rows ( i mean that values) should de disabled but if the demo 2 got selected in the drop down list box, then demo 1,demo 2, demo 3 rows( i mean that values) should be enabled.Based on the selection of the options, the enabling and disabling should occur.

This is the issue.

Thanks in advance.

Regards,
Karthika

[Updated on: Sun, 25 November 2012 23:09]

Report message to a moderator

Re: How to disable row in oracle apex [message #571629 is a reply to message #571426] Wed, 28 November 2012 05:59 Go to previous messageGo to next message
karthika21
Messages: 7
Registered: November 2012
Location: Bangalore
Junior Member
Hi,

Please help me in this issue.

Thanks,
Karthika
Re: How to disable row in oracle apex [message #571655 is a reply to message #571629] Wed, 28 November 2012 10:28 Go to previous messageGo to next message
Littlefoot
Messages: 19697
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Did you try to create a (standard) dynamic action? What would it do: if ITEM is EQUAL to certain value, Apex would DISABLE certain ITEM(S) (I used capital letters to emphasize Wizard keywords).
Re: How to disable row in oracle apex [message #571681 is a reply to message #571655] Wed, 28 November 2012 23:38 Go to previous messageGo to next message
karthika21
Messages: 7
Registered: November 2012
Location: Bangalore
Junior Member
Hi,

Ya you are right but here we are using the javascript.
I am not creating any dynmaic action,because we dont have have any item. And we are creating the table with the javascript and in that how we can create the dynamic action?


Re: How to disable row in oracle apex [message #571682 is a reply to message #571681] Thu, 29 November 2012 01:16 Go to previous messageGo to next message
Littlefoot
Messages: 19697
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Perhaps you should ask for help on one of JavaScript forums?
Re: How to disable row in oracle apex [message #571689 is a reply to message #571682] Thu, 29 November 2012 03:12 Go to previous message
karthika21
Messages: 7
Registered: November 2012
Location: Bangalore
Junior Member
Hi,

okay. Whether there is anyother way excluding javascript?

Thanks a lot.

Thanks,
Karthika
Previous Topic: Getting error webpage cannot be found with apex listner
Next Topic: ID into a procedure argument
Goto Forum:
  


Current Time: Fri Oct 24 16:32:42 CDT 2014

Total time taken to generate the page: 0.18590 seconds