I have a claim form built with RSform.
I need to add 3 informations before validation so I used 3 hiddens fields.
now I need that every user can edit only the field that glows belongs.
For exemple :
field number 1 mut be edit only by user 1
field number 2 mut be edit only by user 2
field number 3 mut be edit only by user 3
Thks
Related
I need to extract the flight booking details from user's end. For example, if user says "need a booking for 2 adults and 3 kids" I need to extract the number of adults and kids separately. How can I do this in watson conversation?
You need to activate the System entity: #sys-number.
But, in your example, the user will types two numeric values, in this case, the values will return one array with the two values:
sys-number[0] = 2
sys-number[1] = 3
And for getting if is the 'adults' or 'kids', you will associate in the order typed by the user. If user types 2 adults and 3 kids, adults will be two and kids will be three. So, you can create one new entity with these values (adults, kids) and get the value in the same condition if the user typed your phrase above.
For example:
Watson: Do you need a book?
condition: #typesUser and #sys-number (with your phrase following your conditions)
response: Ok, you need #sys-number[0] for #typesUser[0] and #sys-number[1] for #typesUser[1]
Images below works perfectly:
Conditions:
Try it out:
Obs.: #typesUser with adults and kids values added and the System Entity #sys-number activated.
See more about dialog conditions here.
See more about System entities here.
I dont think this solution will work. Suppose if some one write book 2 rooms for 3 adults and 2 kids. here it will fail.
Possible solutions can be:
1. You can use regex to extract the no of adults or kids
or
2. Create 2 enitites adults and kids and add values like 2 adults ,1 adults,4 adults. same for kids so that it will automatically identify no of adults and kids.
I just want to say that Create an entity Named #Person and train it with data like 1 Adults,2 Adults,3 Adults and their synonyms. So that if the input is "Book a room for 2 adults" then i will identify 2 Adults in entity and u can use it.Similarly for kids.
I have a Table called Trip where the users can create trips, and on the edit screen I have a button that the users can click on it and create Legs for that selected trip. my question is how do I make a field in the TripLegs domain auto increment?
so lets say the user creates four trip legs, so the stop number field "the one I wanted to auto populate" would be
1
2
3
4
if the user goes back and delete Trip leg 2 so how do I change the stop number in the rest three legs to
1
2
3
instead of
1
3
4
I have to agree with Vahid's comment on the original question. My preferred approach would be to dynamically set that value as a transient value on the domain after I sorted the collection by some criteria.
If you wanted to maintain the same sort order every time based on which Leg was created sequentially, you could add a 'Created_Date' column to your table and sort based on that value when you get the list.
Alternatively, if you would really like to store the stop_number value (which there are plenty of reasons why you might want to) you might want to consider the following approach:
Override the default Delete action for TripLegs:
class TripLegController {
def delete = {
def tripLegId = params.tripLegId as Long
def tripLeg = TripLeg.get(tripLegId)
def otherLegs = TripLeg.FindAllByTripAndIdNotEqual(tripLeg.trip, tripLegId, [sort: 'stopNumber', order: 'asc'])
tripLeg.delete(failOnError: true)
def stopNum = 1
otherLegs.each{leg ->
leg.stopNumber = stopNum
leg.save()
stopNum++
}
}
}
My data/table that appears in the details section is pulled from SQL.
It essentially is a basic table with Row Names in column 1 and dates going across row 1 with the final column being a summation of the data.
The data is 4 rows long and what I am looking to do is create a field that I can put in the report footer that will display the same information as any one of the individual fields that is displayed in the totaled column (last column) of the table / details section.
For example if the 3rd row totaled 12 (in the details section of the report), I would like to create a standalone field that will display the 12 in the report footer.
The details section looks like a table: the report footer breaks out certain things from the details section. I need something that will allow me to reference the individual numbers in the details for example: only pull in the 18 or only pull in the 11 into its own little field on the report footer. Thanks.
Months 1 2 3 4 total
Jack 3 3 4 5 15
Will 4 7 5 2 18
Mike 1 3 3 5 12
Don 3 5 2 1 11
You need to manipulate by storing in the array and retriving one by one.
To store in array:
Create a formula #Total
Shared Numbervar array x;
x:=x+(total);
total
In report footer write one more formula #display
Shared Numbervar array x;
x[1] // first element in the same way 2,3,4 will give you all elements
Let me know in case any issue.
I have 2 fields
Approveuser (lookup to user object)
Approveuserdate (formula field (or) text field)
when i fill the data on Approveuser, i need to diplay automaticlly on this field (Approveuserdate ) date/time.
Please help me
Thank
Your requirement is not clear. Have you already tried something?
When user is creating / editing some record and he selects a value in 2 user lookup fields, you want to set "current date & time" in some other fields?
Try reading about workflow rules in your help & training.
I'd make a workflow similar to this:
Run: every time record is created or edited
Criteria: "User lookup field 1 - not equal to - (leave blank)"
Field to update: "Date/time field 1".
Formula to update it with: NOW()
Remember to activate the workflow.
I have several textboxes and users are entering same data in one of these fields. I have another table which is store machine_no. I would like to restrict user for possible wrong entries. Example if there is no machine_no #4 on table, user will be warn with message box.
Machine_no Value1 In first day
1 500
2 400
3 600
Machine_no Value1 second day
1 8678
2 45645
3 54645
Thanks in advance
If you really want to restrict the available choices, I'd replace the free form textbox with a dropdown list of choices populated from your table.
You could use a NumericUpDown control to let the user enter only integers and validate against a generic List of integers or an array of integers (you can load the list with the existing machine numbers on your data base table), and finally you can use ErrorProvider control to show a warning to the user if enters a not valid number.