Hi It is very helpful tutorial and I followed the same. I'm facing an issue when I'm previewing the app, it is not showing attributes on tab change but when I;m closing the preview, it shows tab content in editable canvas mode. Can you help me with this? Thanks
Hi, Nice post. I followed this video and created tabs, I am able to create a new item and using view I saw data in all tabs. But the issue is: When I edit, Modify and save the data, it is creating a new item in SharePoint instead of modifying the current record. Kindly help. Thank you so much!
I solved this by using a switch statement to detect the formMode of the default form and using different patch statements in each case: Switch( Form1_SharePointForm.Mode,
Thank you for posting this video. However, when using the default option within patch you are creating a new record. This meant for me the form only worked to create a new record and not edit an existing record. In order to fix this I replaced the OnSave code with something in the following shape. If(IsBlankOrError(Value(DataCardValue[X].Text)), Patch('[List Name]',Defaults('[List Name]'),MainSharePointForm.Updates,...), Patch('[List Name]',LookUp('[List Name]',ID = Value(DataCardValue[X].Text)),MainSharePointForm.Updates,...) ); RequestHide() Where DataCardValue[X] was a view only instance of my lists ID which I added to the first form.
Excellent!
Thank you! Cheers!
Thanks for sharing this. Is it possible to make the tab 2 visible only if a field value in tab 1 is "FA"? How to show/hide tabs?
Thank you very much
Thanks for your comment
Hi
It is very helpful tutorial and I followed the same.
I'm facing an issue when I'm previewing the app, it is not showing attributes on tab change but when I;m closing the preview, it shows tab content in editable canvas mode.
Can you help me with this?
Thanks
Hi, Nice post.
I followed this video and created tabs, I am able to create a new item and using view I saw data in all tabs.
But the issue is: When I edit, Modify and save the data, it is creating a new item in SharePoint instead of modifying the current record.
Kindly help. Thank you so much!
Let me check
Even i did face the same issue..
I have the same problem when I edit existing item it creates new one
I solved this by using a switch statement to detect the formMode of the default form and using different patch statements in each case:
Switch(
Form1_SharePointForm.Mode,
FormMode.Edit,
Patch(SharePointList, SharePointIntegration.Selected, Form1_SharePointForm.Updates, Form2_SharePointForm.Updates);
FormMode.New,
Patch(SharePointList, Defaults(SharePointList), Form1_SharePointForm.Updates, Form2_SharePointForm.Updates)
);
ResetForm(Form1_SharePointForm);
ResetForm(Form2_SharePointForm);
RequestHide();
@@rickifyful I will try this and see, Thanks!
Thank you for posting this video. However, when using the default option within patch you are creating a new record. This meant for me the form only worked to create a new record and not edit an existing record. In order to fix this I replaced the OnSave code with something in the following shape.
If(IsBlankOrError(Value(DataCardValue[X].Text)),
Patch('[List Name]',Defaults('[List Name]'),MainSharePointForm.Updates,...),
Patch('[List Name]',LookUp('[List Name]',ID = Value(DataCardValue[X].Text)),MainSharePointForm.Updates,...)
);
RequestHide()
Where DataCardValue[X] was a view only instance of my lists ID which I added to the first form.