Loading...
 
Skip to main content

Features / Usability


webservice with variable parameter from user?

posts: 6 Australia

Hi, I am trying to get a webservice feed working but can't figure out how to get a value from the user on the wiki page instead of having to embed it in the plugin.

The following code works to produce the required output so I know hardcoding the paramater/variable in the URL works:

Copy to clipboard
{WEBSERVICE(url="http://ctcphapp01/showdicom.php?patientid=0000089")} !! Studies for requested patient ||Name|ID|Type|Date|Time|Description {{foreach from=$response.Studies item=study}} {{$study.PatientNam}} | {{$study.StudyID}} | {{$study.StudyModal}} | {{$study.StudyDate}} | {{$study.StudyTime}}|{{$study.StudyDescr}} {{/foreach}} || {WEBSERVICE}


but I want to be able to have a form field for the user to enter the 'patientid' parameter.

I am running Tiki v6.4. I thought of using a plugin alias but could not find a decent description of how to do this for this version (or any version, really)

Any thoughts appreciated.


Thanks,

Gary

posts: 35 Canada

There is nothing to help you as far as the form goes, other than an {HTML} block or a plugin alias to render it for you.

As for reading the argument, you can enable "Wiki argument variables" or something similar to this and the patientid argument from the URL will be entered in the wiki page whereever is found.