cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Safifaruqi
Level: Powered On

Cascading Filters and Connection with SQL Tables

Hi Everyone, 

I am trying to build an app where if I enter a PO number ( dropdown/combobox to look up PO) then all PO related information gets auto populated in the rest of the form, such as, plant name, vendor, vendor ID. The PO information is being pulled from a sql table. Now while the dropdowns load the fields and the line items just fine, cascading drop downs based on the 'depend on' filter is not working at all. Furthermore, when I apply the 'distinct' formula on the PO number, I get a dropped down with invisible or blank values ? thats the best I can describe, but when I hit the downward key on the formula bar, it does show a result but when I play the app it doesnt reflect the same. I have attached screen shots, and any help would be extremely helpful. 

1 ACCEPTED SOLUTION

Accepted Solutions
Safifaruqi
Level: Powered On

Re: Cascading Filters and Connection with SQL Tables

Yes the result preview that you get under the formula bar gives me 'result' as in a list of PO populates but it doesn't when I go into the form mode and pull the information up.

 

Thank you so much for your response!

 

I will go ahead and try the solution shared and get back to you either way. 

 

Thank you!! 

View solution in original post

6 REPLIES 6
Community Support Team
Community Support Team

Re: Cascading Filters and Connection with SQL Tables

Hi @Safifaruqi ,

Could you please share a bit more about your issue?

Do you mean that the Distinct(...) formula result could not display under the PO Number ComboBox?

 

Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:

6.JPG

As an fixed solution, please consider modify your Distinct formula as below (set the Items property of the ComboBox to following) :

Distinct('[sbi].[PurchaseOrders_History]', 'Purchasing Document Num...').Result

 

If you want to retrieve related record based on selected PO number value within the ComboBox, please use the following formula:

LookUp('[sbi].[PurchaseOrders_History]', 'Purchasing Document Num...' = PONumberComboBox.Selected.Result)

 

If you want to populate other data card values within the Edit form, please take a try with the following workaround:

Set the Default property of the Plant Name Text Box to following:

LookUp('[sbi].[PurchaseOrders_History]', 'Purchasing Document Num...' = PONumberComboBox.Selected.Result, 'Plant Name')

 Set the Default property of the Vendor Text Box to following:

LookUp('[sbi].[PurchaseOrders_History]', 'Purchasing Document Num...' = PONumberComboBox.Selected.Result, Vendor)

...

...

 

Please take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Safifaruqi
Level: Powered On

Re: Cascading Filters and Connection with SQL Tables

Yes the result preview that you get under the formula bar gives me 'result' as in a list of PO populates but it doesn't when I go into the form mode and pull the information up.

 

Thank you so much for your response!

 

I will go ahead and try the solution shared and get back to you either way. 

 

Thank you!! 

View solution in original post

Safifaruqi
Level: Powered On

Re: Cascading Filters and Connection with SQL Tables

Thank you so so much for your solution, it worked like a charm. 

 

I cant tell you how much grief this gave me but I am so grateful for your help on this! its such a game changer for my organization this form. 

 

Thank you so much!!

Safifaruqi
Level: Powered On

Re: Cascading Filters and Connection with SQL Tables

Hi,

 

Need some more help now that I have moved further ahead into the form. 

 

I am trying to use the material/part number dropdown (dropdown5) which is being pulled from the 

[sbi].[PurchaseOrders_History]'

 

to pull the Manufacturer Name/description from the '[sbi].[MaterialDim]' table where in the relevant field which houses the manufacturer name is 'Mdm Manufacturer' 

 

I am using the following formula to pull up the info. 'LookUp('[sbi].[MaterialDim]','SAP_Part_Short'= Dropdown5.Selected.Result)'

 

but its not yielding any result. Furthermore the properties tab for 'Manufacturer' looks off ( please refer to the attachment) 

 

I am essentially trying to establish a relationship between two different sql tables which share the same part number, in one table it is being referred to as 'material ID' and the other table its being referred to as 'Sap_Part_Short' and im using that unique ID to pull the name of manufacturer associated with the part ID. 

@v-xida-msft 

Community Support Team
Community Support Team

Re: Cascading Filters and Connection with SQL Tables

Hi @Safifaruqi ,

Please consider take a try with the solution I provided above, then check if it could help in your scenario.

 

If the solution I provided above could achieve your needs, please consider go ahead to click "Accept as Solution" to identify this thread as Solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Safifaruqi
Level: Powered On

Re: Cascading Filters and Connection with SQL Tables

Hi, 

 

I do not know if I am executing this correct, but I tried the solution shared earlier above and its not working, i actually get an unpopulated drop down table under the manufacturer combobox. 

 

I pasted screen shots, and wondering if I am executing the formula correctly. It would be super helpful if you can review my 2nd post and the attachments. 

 

Really appreciate your support. 

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,938)