Question About Feature Links
I posted this in the viewer forum but I think it should be in the essentials forum.
I need to set up a feature link with the following url:
http://www.tad.org/datasearch/re.cfm?gov=m&account=n
There are 2 url parameters:
m = ( currentMonth (two digits) + currentDay (two digits) + currentYear (last two digits) ) MOD 31
n = account number
I will have the account number. Is there a way to calculate the other parameter?
-
Curtis,
You might try something like DateTime.Now.ToString("mmddyy")
0 -
Can something like this (DateTime.Now.ToString("mmddyy") be done in a viewer xml file?
0 -
I have another question about this. Can this be done using the Visual Studio Quickstart project?
0 -
Curtis,
Sorry, I don't use Visual Studio much. And further, it doesn't look like it is supported in Feature Hyperlinks. It looks like it is going to Cold Fusion (re.cfm) - is it a site you have control over? Seems like it might make sense to create another .cfm that would do the calculation if you do...
0 -
We don't have any control over the site.
0 -
It seems odd to me that you have a server resource that expects to find the current date. Doesn't it know the date? The whole point of parameters is variability. If it's expecting a certain parameter to have a certain value, then why is it a parameter?
Notwithstanding that, you could create a server resource that does the redirection for you. For example, a PHP page, JSP, ASP, Cold Fusion etc. The idea would be to take the one parameter that you know, and append the m parameter using the current date (or whatever date you want).
Jeff
0 -
Jeff,
Could this also be done using a workflow?
0 -
Jeff, I don't know for sure but I think the date parameter is suppose to provide security or prevent hacking. The account id comes from the map layer so we are good there. The account id is an id for parcels. If you go to the main url - (http://www.tad.org) www.tad.org - you can actually do a search by id and find the parcel you are looking for. Rather than have the user go to the main page, we wanted to send them directly to the parcel information. We talked to the folks that maintain the web site and they gave us the url formula to go directly to the parcel information.
0 -
Looking at the Quickstart project I think I can get this done. I can get to the FeatureHyperLink property using the Geocortex.Essentials.Client.FeatureHyperLink class. My question is which event do I check? I need to update the link when the user selects the 'View Additional Details' link on the information box.
/customer/servlet/servlet.FileDownload?file=00P6000000e881IEAQ
0 -
I was able to get this working. Thanks for all replies.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
10 kommentarer