function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Rendering a row within a PageBlockTable

Product          LineType      Removal Reason

    x                      y            

    a                      b          input Field shoul appear

    r                       s     



I want to be able to show the inputField in Removal Reason Column only if the user selects b in the line Type column.


Is there any way in which I can make particular row within a table appear based on what the user selects?







Hi Pooja,


In this case you have to set a Boolean Variable in your controller whenever the user selects a particular LineType.


Also, re-render the inputField after that so that it gets the refreshed value from the controller. This field's rendering will depend on that Boolean Variable'e value.


Hope this helps!!



Message Edited by Cool_Devloper on 03-27-2009 10:48 PM

Hi Cool_Developer,

                                      I have a similar problem like this. After clicking a commandLink in a particular row in the pageblocktable a datatable will appear in that particular row only. But after clicking on the link the datatable is appearing in all the rows instead of that particular row. i have tried what u have written. But still it is coming in all the rows. Please do you have any other suggestion?


thanks in advance,