Data from BDM do not appear in the form ?

1
0
-1

Hello,

In a form, i want to retrieve some data from the BDM, so i created a "business data" variable:

I tried to put this variable in a table widget nothing shows up,

I tried to put this variable in a text widget nothing shows up.

I also managed to get data from a weather API and it works perfectly, but i don't get what's wrong with the BDM API.

I would be very glad if someone can give a detailed explanation and a step by step solution to resolve that.

Thanks you

2 answers

1
0
-1

Hello,

Have you initialize your business data variable ?
If you have just created your variable without initialization,, it's value is 'null'. So, you need to initialize his value with a 'contract' or with a default value ( like an SQL call ).

Regards,

Comments

Submitted by yassine02 on Thu, 09/10/2020 - 14:27

hi thanks you for responding,

Just to be precise :

- First, in the studio i created a business object and then a contract based on that business object.

- With the UI designer, i created the instantiation form for that contract.

Everything seems to be working correctly: when i enter data in the form, it's recorded correctly in the business object i created .

Next, i created another business object called "clients" with 3 columns (numCli , nameCli, accCli) Thanks to the H2 console i inserted values to that table ( 4 records with SQL ==> insert into clients values .....)

Now what i want is to display the values of that table in the instantiation form . I don't want to feed the table from the form just to show me some data.

So i used the UI designer again and created a variable in the UI designer. That variable is a business data variable (i believe it's based on the BDM API where you can specify the business object, the query and the pagination) and i choose the query find. i made a table with the table widget and put that variable in that table and when i check the preview nothing shows up.

i tried it in a text area and nothing again...

I came back to the studio and add the business object "clients" to the pool variable, but it doesn't give me results ...

i tried filters on queries and nothung shows up ...

i tried the weather API and it worked great it shows me the data that I've specified.

I hope that you have enough information so you can provide me with a detailed solution.

Thanks you in advance

Submitted by bastien.laurent... on Mon, 09/14/2020 - 08:13

Hi,
How you call your business variable in your form ?

1
0
-1

Hi,

When you say that you have created a business variable, if it is in the Studio, have you created the associated contract? indeed if the contract is not defined, the data won't be displayed in the forms. It is a way to ensure consistency between data, process and UI.

You can refer to the documentation to know more about the contract implementation.

Comments

Submitted by yassine02 on Thu, 09/10/2020 - 14:29

hi thanks you for responding,

Just to be precise :

- First, in the studio i created a business object and then a contract based on that business object.

- With the UI designer, i created the instantiation form for that contract.

Everything seems to be working correctly: when i enter data in the form, it's recorded correctly in the business object i created .

Next, i created another business object called "clients" with 3 columns (numCli , nameCli, accCli) Thanks to the H2 console i inserted values to that table ( 4 records with SQL ==> insert into clients values .....)

Now what i want is to display the values of that table in the instantiation form . I don't want to feed the table from the form just to show me some data.

So i used the UI designer again and created a variable in the UI designer. That variable is a business data variable (i believe it's based on the BDM API where you can specify the business object, the query and the pagination) and i choose the query find. i made a table with the table widget and put that variable in that table and when i check the preview nothing shows up.

i tried it in a text area nothing again...

I came back to the studio and add the business object "clients" to the pool variable, but it doesn't give me results ...

i tried filters on queries and nothing shows up ...

i tried the weather API and it worked great, it shows me the data that I've specified.

I hope that you have enough information so you can provide me with a detailed solution. The documentation wasn't helpful and lack some information. the videos on youtube are not straight ahead and can quickly get you lost if it is your first using the software.

Thanks you in advance

Notifications