Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
10 replies
Subscribers
4 subscribers
Views
2717 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Reports
148296 - no subject - I am working on the task report which di
vineeta6579
over 9 years ago
I am working on the task report which display tasks in the grid component. I am using processTaskLink to create hyperlink on the task name so that when the user clicks on it. it opens the related task to the user. I dont want to display hyperlink for those task where its status is completed.
how I can disable hyperlink based on my column value!!!
OriginalPostID-148296
Discussion posts and replies are publicly visible
0
sikhivahans
over 9 years ago
Hi vahluwalia, Please do as follows:
Pass only that data to a!dynamicLink ()which needs to be hyperlinked. For example I just want to link only the first 3 rows in my grid. Then the definition of links attribute goes as follows:
links: apply(a!dynamicLink(value: _, saveInto: local!selectedVariable), index(local!itemsds.data.items, {1,2,3}, {}))
Here only, the data present at 1,2 and 3 items will be hyperlinked and the rest renders as ordinary text. Please do let me know if you have any follow up questions.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
@vahluwalia I tried an example just now and it works. So here your indices should be decided programatically, and they should be represent the active tasks.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
Apply the appropriate link component as per your scenario. I just used dynamicLink to give an example.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vineeta6579
over 9 years ago
so for the a!processTaskLink(label: _, task: _) function. i need to pass value only those task where status is 0 or 1(assigned, completed).
I did the same but hyperlink is still coming!!
see the Attached code
data[5]= Task Status (expected values 0,1,2. I need to hide hyperlink if value is 2 )
data[3]= Task id
gridcode.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
No worries, I will take a look shortly.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
Hi vahluwalia, here goes the code and please do let me know if you have any follow up questions:
a!gridTextColumn(
label: local!batchProcessResult.columns[3].label,
field:"Task Description",
data: local!batchProcessResult.data[3].cells.value,
links: apply(
a!processTaskLink(label: _, task: _),
merge(
values from local!batchProcessResult.data[3].cells.value corresponding to active tasks,
/* to-be-hyperlinked task ids corresponding to values of local!batchProcessResult.columns[3].label */
active task ids corresponding to local!batchProcessResult.data[3].cells.value
)
)
)
Also I have attached a code snippet, have a look at it if you want to make the functionality much generic.
Grid links.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
FYI I have replicated the same scenario (i.e. applying a!processTaskLink conditionally) and it worked fine. So you could let me know if you have any questions or issues.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vineeta6579
over 9 years ago
sure..
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vineeta6579
over 9 years ago
Thanks Sikhi ..
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
@vahluwalia No problem.. :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel