How to read Whole url or Read URL parameters using ZOHO Creator form script? - zoho

Zoho Creator's Question
How to read Whole url or Read URL parameters using form script ?
We need url's parameter for parameter value in form.

If you're trying to read the URL parameter to set a field in the form, it may not be required to read the url. While passing the param, it's enough to mention the deluge name of the field and Creator will automatically set the field value to the param being passed.
Url:
app_url#Form:New_Form?New_field=Creator
Here New_Field is the deluge name of the field and Creator is the value to be set.
Hope this helps.

Related

Web API parameter accept any parameter after valid one

I have API that have one parameter string UserId a but while testing it accept any parameter after the parameter i have defined like this
http://localhost:xxxx/api/get?UserId=43141688 its shows the result I wanted and i have one parameter that is UserId but if I do like this
"http://localhost:xxxx/api/get?UserId=43141688&xyzpqr and also gets the same result on the basis of UserId
and &xyzpqr is not valid
so how to do parameter binding basis of my parameter no additional (? and & )include only UserId?
What I have tried:
I already tried attribute based routing and action-based routing

Jmeter doesn't resolve parameter (from CSV Data Set Config) into request

Is try to use the CSV Data Set Config to insert a different username password for each Thread.
When posting to a login page the value of the password variable isn't resolved. The username variable is no problem. The variable is correctly loaded into the Thread because the Debug Sampler is showing the correct value for the password. I already tried to change the name of the variable, perhaps it clashes with some other variable name, but that didn't work.
Perhaps it's because the password field is a different type of input field?
Please let me know if need to clarify this more.. :)
Screenshot to clarify the situation:
1 - CSV-File
2- CSV Data Set Config
3 - Result Debug Sampler
4 - HTTP Request of the login page
5 - Result of the send request to the login page
Because here the variable isn't translated to the value the login process fails.
In your CSV Data Set Config element, in Variable Names (comma-delimited) field you have usernamecsv, pwdcsv... You need to remove space after comma!
usernamecsv, pwdcsv ---> usernamecsv,pwdcsv
This will solve your problem.

Could you pls let me know how do i pass variable if the URL is dynamic based on your search value in jmeter?

When is search for an item by giving its id the url i get is http://aa.bb.com/bikes/2 or http://aa.bb.com/bikes/3,
the value after bikes is dynamic based on my search results and corresponding page is displayed. How do i parameterize this in Jmeter?
I am using HTTP request sampler.
I added a csv config file, gave different ids and added these values in the parameter part and used the parameter variable in the URL path. But it is not working.
EX: the url path i gave as /aa.bb.com/bikes/${id} but its not working.
You can add 'debug sampler' to narrow down the root cause.
i figured out the way to do this.
I just mentioned the possible id values in a csv file.
Used the variable name in the url.
Ex: I created a idValues.csv file and used this file in CSV data set config.
Gave the variable name as value.
now in the HttpSampler in the path i mentioned as http://aa.bb.com/bikes/${value} and it worked.
Thank you.

access a variable value sent through url in joomla view

I want to access a variable sent through url in the view of a joomla component. How can I achieve it? Please help me.
you can use
$myvar = JRequest::getVar('variablename','defaultvalue') ;
or (only in J1.6+)
$jinput = new JInput();
$myvar = $jinput->getVar('myvar');
There are more methods to JRequest and JInput i.e. JRequest::getInt, getCmd etc you might want to check the docs.joomla.org
With both you can choose to restrict the method from which the values are read, pass 'GET' as a third parameter to any getVar function and the value will be read only if it's from a GET, otherwise you can test COOKIE, POST etc.

MVC3 razor remote validation - Controller argument is always empty

I can call the controller but the argument (string) is always null.
All the examples I have found name the controller argument the same as the property we are validating remotely, sounds good/easy, but if you look at fiddler what is really being passed in is the name attribute from the input statement. Well that is problematic in that it is a subscripted name something like Person.EMailAddresses[0].Address, well I can't name my controller parameter like that.
So how do I get around this? There must be a way to specify the controllers parameter name in the remote() attribute?
It cannot be done using the default RemoteAttribute. This is a link to an example I posted of a reusable remote validation attribute, where you can specify the name of the controller, action and the name of the variable used to pass the value to the action.

Resources