I have added a data view for a baq and created an event to load data into the data view.
If I want to use a Text Box to show a field from a BAQ i can do this perfectly fine if i have one relationship +Company relationship in the data view. (IE CustID or PartNum)
If i try to use a relationship from both CustID and PartNum then the results are blank. If I put the criteria direct on the baq it gives me 1 row and shows that data I require. Is there a way i can do this in App studio?
I have tried to use WHERE PriceLstParts_PartNum = ‘?{PriceListInquiryCriteria.PartNum}’, Customer_CustID = ?{PriceListInquiryCriteria.CustID} when the event runs to load the dataset as well as using relationships to the BAQ from the DataView page.
@hmwillett you helped me out in my last App Studio quest, is this something you could help with?
I guess I’m not 100% clear on what you’re trying to do, but I’m going to hazard a guess and offer a solution based on that guess.
You’re loading a DataView from a BAQ that needs to be filtered by 2 dynamic fields which would hopefully yield a single row. You then want to take a column from that query to load into a textbox.
So, load the BAQ data like you normally would.
To filter it, create an event that fires off of one the the fields changing that are the filters.
Within that event, you should be able to use the dataview-filter-set widget to filter your BAQ to get your single row.
ABCTest.PartWhse_MinAbc = {ABCCode.ABCCode} AND ABCTest.PartWhse_PartNum = '10024'
@hmwillett Yes that’s exactly what i am trying to achieve
I have tried the event with the following parameters and still nothing loads into the text boxes.
Dataview - UD_CustomerPriceList
UD_CustomerPriceList.Customer_CustID = {PriceListInquiryCriteria.CustID} AND UD_CustomerPriceList.PriceLstParts_PartNum = ‘?{PriceListInquiryCriteria.PartNum}’
@hmwillett I have managed to stop the Server Errors by splitting the two filters into 2 Dataview-Filter-Set tasks.
I have viewed the dev tools and it seems to be filtering as i want but i still get no returned column in my text box. (for some reason i cannot see any of the Loaded DataViews through the dev tools though)
@hmwillett I have looked into this. When i use the Dataview-Filter-Set it loads nothing. when i use the Parent Relationship it get a Server error due to the Query being too large.
I decided to try and change tactics as the query was a bit large.
I have managed to trim it but it means i have to filter it from 2 data views.
The BAQ is now loading the full dataset and the Filter isnt kicking in.
I don’t believe the filter shows up on the Network tab. If I recall, it filters the dataset after the fact, so you would have to check it using the CTRL+ALT+V.