Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

LinkComponent in Form

Updated: 21 May 2010 | 8 comments
billyccfs's picture
0 0 Votes
Login to vote

I have a web form that populates a GridComponent. The Grid Mode is set to Select and I have checked Post Form on Value Change. Now in the grid data is a field with urls. So I added a LinkComponent to open the url in a new page. The url in the component is set to ThisFormData.{the url field} of the selected row in the grid data.

When I click on the link component nothing happens becasue presumably the url from the selected row was not transferred into the LinkComponent.

Any ideas on this one?

Thanks for your help. 

discussion Filed Under:

Comments

Dalceon's picture
03
Jun
2009
0 Votes 0
Login to vote

I tried but couldn't get the

I tried but couldn't get the linkcomponent to work either, but I found another way to do it.

Put an HTMLMergeComponent on your form.
Click Text
To the left select  'Variable Web Link'
Drag the thisformdate.xxx to the text pain.

Change the link text on the left.

Works just like you wanted the other thing to work. except you can't really control the window size and features.

billyccfs's picture
04
Jun
2009
0 Votes 0
Login to vote

Interesting workaround but

Interesting workaround but unfortunately not useful in my case. I'd like to keep the url string out of the form (I didn't include that column in the Grid) and just use a label.

Thanks for the help, I'll post if I find a way.

billyccfs's picture
04
Jun
2009
0 Votes 0
Login to vote

Actually...

Actually that would be way way to go now that I think about it. But when I tried it, I got an error because the link cannot be populated until the row is selected.

Dalceon's picture
04
Jun
2009
0 Votes 0
Login to vote

Are you saying you don't want

Are you saying you don't want the end user to see the url?
I may have misuderstood what you are after.
If you describe exactly what you're trying, there may be another workaround.

billyccfs's picture
04
Jun
2009
0 Votes 0
Login to vote

Explanation

I am populating a grid from a sql query (custom component). One of the fields in that grid contains a url to a file on one of my servers. I did not include that column in the grid on the form (but the data is still there, of course). What I would like is a link or button so that if the user selects a row in the grid and clicks the button, the url from that row will be opened in another window.

I would assume this was the intended purpose of the LinkComponent but for whatever reason, it can't pull data from ThisFormData.

Hope this helps clarify.

Thanks

billyccfs's picture
04
Jun
2009
1 Vote +1
Login to vote

Found a viable workaround

I used the SubDialog component. Worked well.

Dalceon's picture
04
Jun
2009
0 Votes 0
Login to vote

The way I described does

The way I described does exactly that.  The link can be set to open in a new window just like the link button.
There's an option that says 'Open in New window' when you setup the variable link
If you want to get fancy with it, you can probably make the subdialogcomponent work too.

Dalceon's picture
04
Jun
2009
0 Votes 0
Login to vote

You entered your response as

You entered your response as I was typing.
good to see we came to the same conclusion