Thingworx mashup service execution cases
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thingworx mashup service execution cases
Hi Developers,
I have a service which loads the data on mashup in gridadvanced. I have a textfield which takes searchinput so
if (searchinput !== "") {
then i run the service to get data for that input which is given in text field
}
else if (searchinput === ""){
means i have not written anything in textfield then i am just showing a complete datatable entries on grid
}
Now new requirement came that the user can select startdate enddate and get that entries on mashup. Any suggestions for best practices how can i do that? I think i have limited the existing service to run on only in two conditions. how can i expand it. any ideas or suggestions?
Solved! Go to Solution.
- Labels:
-
Best Practices
-
Coding
-
Examples
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
if (searchinput !== "") { result=me.getEntryWithSerialNumberIntoMashup({
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How do you query the data with Start Date and End Date?
if (searchinput !== "") {
Query the data with the filter "searchinput", "Start Date" and "End Date"
}
else if (searchinput === ""){
Query the data with "Start Date" and "End Date" only
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
if (searchinput !== "") { result=me.getEntryWithSerialNumberIntoMashup({
![](/skins/images/695EE5AD3E567050FEDD72575855ED93/ptc_skin/images/icon_anonymous_message.png)