cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
answeriver
Helper III
Helper III

Several forms in one screen

Hi all,

Have big problem. I making apps like for user which will take orders to sales product.

 

Data Souruce is SharePoint LIST.

So making it about one week (im newbie in powerapps). In the process of creating ran into problems with positions of fields for input (snap to columns, by the grid)/ And then i did several forms in screen, it was more the less usable. And after all works, today i opened my sharepoint list, and saw mu input records put in the list for different rows 😞

Form one in one rows, form two in second rows, so i very very upset.

 

here is screnshoots results

 

Have any chance to fix it easy, maybe bind 3 forms and put in in one rows in datasource.

 

Sorry for my english, im russian

7 REPLIES 7
Drrickryp
Super User II
Super User II

Hi @answeriver 

The app you are trying to design is not a simple one.  To do a proper job, you will first need to understand some basic principles.  I suggest that you start with my series on database design principles and PowerApps.  https://powerusers.microsoft.com/t5/News-Announcements/Database-Design-Fundamentals-and-PowerApps-An...   

KrishnaV
Super User III
Super User III

Hi @answeriver ,

 

This issue happens if you are submitting all the forms individually to the List. You might be trying as below onSelect of your submit button:
SubmitForm(from1);
SubmitForm(from2);
SubmitForm(from3);
Try this:
SubmitForm(from1);
Patch(SPList,ID=Form1.LastSubmit.ID,{SPField1:Value1,.......SPFiledN=ValueN}); // this is for Form-2
Patch(SPList,ID=Form1.LastSubmit.ID,{SPField1:Value1,.......SPFiledN=ValueN}); // this is for Form-3

 

OR you can do as below also

Patch(
   'SPLIST',
    Defaults('SPLIST'),
    If(Form1.Unsaved, Form1.Updates),
    If(Form2.Unsaved,Form2.Updates),
    If(Form3.Unsaved,Form3.Updates),    
ForAll(CollSpareParts,{SparePartUsed1Description:Name, SparePartUsedQty:qty,SparePartNumber:PartNo}) // Use this for common values
)


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

@DrrickrypThanks for your answer. Anyway the app is fully works and it ok for me.

 

Any chance to repair current situation?

@KrishnaVThanks you. Can explain what i need paste in you proposal 

Try this:
SubmitForm(from1) FORM1?;
Patch(SPList,ID=Form1.LastSubmit.ID,((here is formula or name of my form?){SPField1:Value1,.......SPFiledN=ValueN}); // this is for Form-2 (what does it mean?)
Patch(SPList,ID=Form1.LastSubmit.ID,{SPField1:Value1,.......SPFiledN=ValueN}); // this is for Form-3(what does it mean?)

@KrishnaV can you explain

Thanks for you answer. But I redid my screen in 1 form. So this topic is closed.

Hi @answeriver ,

 

I am very happy that you are able to solve the issue, could you please mark the relevant reply (helped you to solve the issue) as the solution so that new members of the community can make use of it.

 

If you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (43,895)