Hi,
Here is a closer look at what I am doing as its still not working. I should make it clear, the reason its being difficult and this is not forms out of the box is that there is more to do after saving so I want it to stay on the same page. On that page after saving the user can walk away and come back another time or straight away submit the form for processing by a manager. That causes email and more workflow, most of which is working but this part I cannot get working soon will mean I haveto create a new screen where the form is displayed and workflow continues, but this would just more elegant! (currently elegant = very painful and obtuse).
In AppStart
Set(myID, 0)
Then in SharepointIntegration.OnSave I have,
SubmitForm(SharePointForm1);
If(
IsBlank(DataCardValue14.Text),
Set(
myID,
First(
Sort(
ResourceRequest,
Descending
)
).ID
);Set(ItemData,LookUp(ResourceRequest,ID=myID))
)
The OnSave always calls the Form OnSuccess after where I have no particular code.
On Visible has no particular code for the screen.
All editing works, saves etc.
New get created and saved with an ID correctly, but I cannot get it to stay on the same record, it jumps off to the first record in the list.
Any help appreciated
Nigel