Hi All,
Very new here. Can someone help me to see what am I doing wrong in this case.
I have a form that captures continuing work until the repair man says done. the rows have an IN and OUT time and i need to copy the same set of rows except the time in and out columns when the OUT column is filled already.
i think that case is very similar to mine, but when i copied the same structure of linking formula i got no result. no syntax error though. form just don’t show up.
heres is my formula:
LINKTOFORM(“Work Order”, “Department”, [Department], “TM Number”, [TM Number], “Work Order Numbers”, [Work Order Numbers], “Items”, [Items], “Description”, [Description], “Parts”, [Parts], “Date and Time Assigned”, [Date and Time Assigned], “Status”,[Status], “Image”,[Image], “Property”,[Property])
Hi Steve,
Thank you so much for pointing that out. I can’t imagine missing that “s” from “Work Order”.
I wish the app formula editor looked and point that there is mismatch in form name and offer a suggestion like the other formula writing assistant of appsheet.
just a followup question on copying and pre-filling up the form. how can i copy just the value and not the formula? in this case the time stamp. i just want the time stamp of the previous value not the new one.
I believe you should be able to wrap your formula with a CONTEXT() function so that the formula only fires when you are NOT in that specific view. When in this specific view then just give back the current value.
For example:
IF (CONTEXT("View") <> "Work Orders"),
<<current formula>>.
[_THIS])
Sorry, I typed this up quickly last night there are some syntax errors. The correct formula should be:
IF (CONTEXT("View") <> "Work Orders",
NOW(),
[_THIS]
)
To be certain I tested this formula and it does work but there are some considerations to be aware of.
I made the assumption that your “Work Orders” Form is a separate Form. If it is AND operating on a DIFFERENT datasource (i.e. a Slice) then the corrected formula above works as is.
If not, your issue is still solvable. But without going into a messy explanation and to advise you on the best approach, we would need a couple details from your app.
What View and Data is used when you Edit an existing record?
You can get this from the sample app display (emulator) on the AppSheet editor as shown below in the bottom left hand corner. Capturing an image is best.
Initial view shows the View as “Tasks” and Data as “Tasks”
What is the “For this data” setting used in your “Work Orders” view?
Capturing an image is best. This is just in case its different than above.
Hi John,’
Sorry for late reply. i have tested multiple time and use it in all same scenario. it is working well. thanks.
I’d like to raise another question on how to show in all the deck view all group of unique value/list on which automatically capturing the latest values if there is a duplicate.
Hi John,
I realized i need to use the same form and the same data source so everytime im creating LINKTOFORM the FORM view is always the same name hence the formula always fires up and replacing the old value.
, number change to “19-53440”
initial value is “randin between”,
then app formula is 'IF (CONTEXT(“View”) =“Create Work Order”,CONCATENATE(MID(YEAR(TODAY()),3,2)," - ", RANDBETWEEN(0,100000)),[_THIS]).
even i changed “=” to “<>” result is constantly changing value (well because Form doesn’t change form name).
Please assist of the way to resolve.
i am planning to use this LINKTOFORM on same FORM throughout the entire APP.
Yes! You can handle that it a couple of ways. There is a Required setting that you can turn on/off for each column. Only the columns with Required set to on will be needed before saving the Form. The other can be left blank.
You can also hide columns you don’t wish to show. If you want them to show sometimes just not on this Form then there ways to conditionally hide the columns using the Show_If property on the columns you wish to hide. There are a number of ways to set these conditions.
Post again if you need help with creating the proper expressions.