Linktoform not showing anything

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 read a case solved by Steve Coile Suggestions for GROUPED ACTIONS with copy row needed.

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])

appreciate the help

Mario

0 11 1,113
11 REPLIES 11

Steve
Platinum 4
Platinum 4

In the UX >> Views tab of the app editor, do you have a view of type form named Work Order?

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.

thank you again.

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])

Hi John,
Sorry tried to getting this structured right. Current formula is Now(). canโ€™t get it to work.

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.

  1. 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โ€
2X_0_0542d834176ca1429ccfeaa839313e4534b4cc8e.png

Editing a row, View used is โ€œTask 1 Formโ€ the Data is still โ€œTasksโ€
2X_2_286ee0cb611d36740fda0cbf4ef588ef058fc1f7.png

  1. 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.

2X_4_42fdad18b9bbdbb557039b6e92579a498a877d65.png

If you can get these two things then I can provide you an appropriate solution. And Iโ€™ll explain why.

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.

Should i raise another question /topic?

If you havenโ€™t already, I would raise as another topic. And be sure add a little more detail. Iโ€™m not exactly clear what you are trying to do.

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.

. Here the number โ€œ19-46136โ€ the original.
When I invoke action to LINKTOFORM, it will be changed
please see image.2X_e_e40ee6fcb644150569b3bd0aee62b813880d2008.png , 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.

I donโ€™t understand what it is you are trying to do. But I wonder if there is some confusion.

A Form is meant for NEW entries or updating of an existing record.

When you use LINKTOFORM, it will ALWAYS be treated as a NEW entry. So any Initial Value formulas you have entered will be applied.

Describe what it is you are trying to do?

Hi John,
I have found a way around my issues and its done.

thanks.

just would like to ask, if i use LINKTOFORM, can i reduce the column that comes out of it?

example; if there are 5 columns in the form and i only need 3, can i invoke the form to come out with 3 columns only?

thanks much.

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.

Top Labels in this Space