Question
Hopkins Software Pvt. Ltd.
IN
Last activity: 3 Mar 2023 6:31 EST
how apply visibility for delete icon in table having more than one row
Hi every one,
My requirements is to create one table and "delete icon" is one of the column of the table. When I'm adding more then 1 row that delete icon is visible. If I add only one column it is not visible. Please tell me the visibility condition. Please below Image
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 3 Mar 2023 6:18 EST
CPF
SG
@Nagarjuna Saidu if your requirement is- "Irrespective of number of rows, first row delete icon should not show" then can add below visible condition
on Delete button add condition as .pxListSubscript != 1
Bits in Glass
IN
@Nagarjuna Saidu you can use LengthofPageList(yourpagelist property)>1 logic.
-
Nagarjuna Saidu
Hopkins Software Pvt. Ltd.
IN
Anoop Krishna I was already tried this logic before post my question. But if I add 2nd row delete icon visible in 1st row also. I need that was not visible if a N numbers added. please refer Images
Bits in Glass
IN
@Nagarjuna Saidu Ok this logic is different. Create a new property DeleteVisible(boolean). Now when you are adding the first row(that is first page in the pagelist), set DeleteVisible=false. Afterwards when further rows are getting added, set DeleteVisible=true. And make your visible condition of delete icon --->when---->DeleteVisible=='true'---->
main logic:-
when LengthofPageList(yourpagelist property)>1
DeleteVisible=='true'
Otherwise
DeleteVisible=='false'
This will fix your issue
Hopkins Software Pvt. Ltd.
IN
@Anoop Krishna. how add condition for first row(that is first page in the pagelist) delete visible ="False". Adding 2nd row first and seconds row having delete icon. my requirement is delete icon not visible for first row if you add N rows are added still first row delete not visble
Bits in Glass
IN
@NagarjunaS16644648 for the delete icon, condition should be isdeleteVisible = true. Let's make a small change. When 1st item is been added, you need to set IsdeleteVisible=false to the current page. For other items IsdeleteVisible=true.
So in the data transform which runs on adding item,
When lengthofpagelist >=1,
IsdeleteVisible=true
Otherwise
False
Bits in Glass
IN
@NagarjunaS16644648 main part is based on logic, we will have to set isdeleteVisible onto the page. So first page will have isdeleteVisible=false and other pages will be having true
Pegasystems Inc.
IN
@NagarjunaS16644648 Hi, Use condition like this @lengthofPagelist(PagelistProperty)>=1
Hopkins Software Pvt. Ltd.
IN
@SrinidhiM I was already tried this logic before post my question. But if I add 2nd row delete icon visible in 1st row also. I need that was not visible if a N numbers added. please refer Images
Accepted Solution
Updated: 3 Mar 2023 6:18 EST
CPF
SG
@Nagarjuna Saidu if your requirement is- "Irrespective of number of rows, first row delete icon should not show" then can add below visible condition
on Delete button add condition as .pxListSubscript != 1
-
Nagarjuna Saidu