How to show in the same Form Grid, Header and Line records? - forms

I have a problem. I need to have in the same Form's Grid both Header record and Line record.
My Header is CustInvoiceJour my Line is CustInvoiceTrans the Table relation is by : CustInvoiceTrans.ParentRecId == CustInvoiceJour.RecId.
I want to show some CustInvoiceJour fields and another CustInvoiceTrans fields in the same grid.
On web I found this tutorial : but I forget something or I need more information.
Because I only see an only one CustInvoiceJour with it Line, and all other Header and its aren't show.
Can you help me ? Do you have another explain example or advice ?

Add CustInvoiceJour and CustInvoiceTrans as data sources. On the CustInvoiceTrans datasource change properties JoinSource to CustInvoiceJour and LinkType to InnerJoin.
On the grid control set the DataSource property to CustInvoiceJour.
Drag the fields from datasources to the field.

You could create a new query that has both of those tables in the dataset using the relation you described above.
After you create your query, you can add that query to your form grid as the datasource.
OR
Use the query called CustInvoiceTransExpanded which has both tables you mention plus a few others that might be useful.

Related

MUI DataGrid ColumnDef: the row is not available on the valueOptions prop of the column definition

I am using a DataGridPro component with different columns.
One one the columns is defined like this:
This issue is that I am trying to understand why the row is not available in the valueOptions prop of the column definition.
I would like to be able to populate the choices based on a list that is available on the row in another field.
But I get this error when I try to read the row:
Can you please help? The grid is populated with lots of rows coming from an api fetch.
Every other column is working fine accept this one.
Thank you.
I discovered that it was my bad. My column object was used twice with different parameters and so, yes, the row was not available for the second case.

How to relate a column to the row rather than the other way in anylogic

I have created a database in anylogic. Previously, I have related the information in the row to the columnn, i.e. there is a component in the row, and its properties are in the columns, and have put this in a function. Now I want to make the component the column and the properties, but don't know how to make it all relate. Below is the code I've written for the former:
site = selectFrom(parameters) .where(parameters.box_number.eq(boxNumber)) .where(parameters.site.eq(site)) .firstResult(parameters.site);
So box_number is the component and site is one of the properties. With this method, site is a column, but I want it to be a row.
You should use the SELECT WHERE SQL syntax, see https://help.anylogic.com/index.jsp?topic=%2Fcom.anylogic.help%2Fhtml%2Fconnectivity%2Fquerying.html&resultof=%22%73%65%6c%65%63%74%22%20%22%77%68%65%72%65%22%20
You can filter and load data in any format. Also, best use the database query wizard to help:

Jaspersoft Table Element No data displayed

I have a table component on a subreport being used with an independent data source (dataset) thats hooked onto the table object. The table has two columns, the following issues arise upon debugging:
Not all descriptions are loaded from the query I used
The second column is not showing the data at all
Is there any properties that I am missing?
Thank you
Kind reagrds
Zain Nabi
Jasperstudio reports require all parameter names to be the same.

In Tableau, how to use one data source to filter another one on datasource level blend?

Right now I have 2 data source, one is filterSource, another is dataSource. I want to filter on the filterSource base on user's login (username). And then apply the left over rows from filterSource to further filter on dataSource.
Say filterSource contains header filterCol1 and name; dataSource contains filterCol2 and others columns.
So the matching columns between 2 data source are filterCol1 (from filterSource) to filterCol2 (from dataSource)
So what I want to do is create 2 calculated fields.
1: create calculated fields on the filterSource base on user login name
formular: username() = [filterSource].[name]
2: create calculated fields on the dataSource base on the left over on filterSource (filterCol1 and filterCol2 are many to many from 2 different source)
formular: [dataSource].[filterCol1] = [filterSource].[filterCol2]
and now I see an error of:
So my question is, is it really doable for the case I'm describing above? If yes, how should I resolve the error above? What should be the best practice for my scenario?
link of question in tableau community: https://community.tableau.com/message/474864#474864
Thanks in advance!

Cannot see records in form bounded to table in Access

I have a form and it's record source is a table. I created the form separately and added the control sources to the different fields in the form and also changed it's record source. I imported values from an excel sheet into the table and when I open the form, I do not see the tabe values being displayed in the form. Any idea what I should do to see the table records in the form?
In form design mode, check the form's DataEntry property. It sounds like yours is set to Yes, which hides existing records and only allows new entries. Change it to No and you will see the existing records.
Another possibility is that a filter is active and no records match that filter.
Use a form wizard to generate a working form based on your table. Then once you can see the data being displayed in the form, customise as needed.