# Data from BDM do not  appear in the form ?

**URL:** <https://community.ofelia.com/t/data-from-bdm-do-not-appear-in-the-form/10381>\
**Category:** Q&A\
**Created:** [9 September 2020 14:54 UTC](https://community.ofelia.com/t/data-from-bdm-do-not-appear-in-the-form/10381 "2020-09-09T14:54:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yassine02](https://avatars.discourse-cdn.com/v4/letter/y/cdc98d/32.png) [@yassine02](https://community.ofelia.com/u/yassine02)\
**Post date:** [9 September 2020 14:54 UTC](https://community.ofelia.com/t/data-from-bdm-do-not-appear-in-the-form/10381/1 "2020-09-09T14:54:34Z")

</div>

Hello,&nbsp;

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

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

I tried to&nbsp;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

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [10 September 2020 08:18 UTC](https://community.ofelia.com/t/data-from-bdm-do-not-appear-in-the-form/10381/2 "2020-09-10T08:18:02Z")

</div>

Hi,&nbsp;

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](https://documentation.bonitasoft.com/bonita/7.11/declare-contracts) to know more about the contract implementation.

---

<div class="post-metadata">

**Author:** ![bastien.laurent\_1374](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@bastien.laurent\_1374](https://community.ofelia.com/u/bastien.laurent_1374)\
**Post date:** [10 September 2020 08:43 UTC](https://community.ofelia.com/t/data-from-bdm-do-not-appear-in-the-form/10381/3 "2020-09-10T08:43:46Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![yassine02](https://avatars.discourse-cdn.com/v4/letter/y/cdc98d/32.png) [@yassine02](https://community.ofelia.com/u/yassine02)\
**Post date:** [10 September 2020 12:29 UTC](https://community.ofelia.com/t/data-from-bdm-do-not-appear-in-the-form/10381/4 "2020-09-10T12:29:29Z")

</div>

hi thanks you for responding,&nbsp;

Just to be precise :&nbsp;

- First, in the&nbsp;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:&nbsp;when i enter data in the form, it's recorded correctly in the business object i created .

Next, i created another&nbsp;business object called "clients" with&nbsp;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&nbsp; want is to display the values of that table in the instantiation form . I&nbsp;don't want to feed the table from the form just to show me some data.

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

i tried it in&nbsp; a text area nothing again...

I came back to the studio and add the business object "clients"&nbsp;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&nbsp; 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

---

<div class="post-metadata">

**Author:** ![yassine02](https://avatars.discourse-cdn.com/v4/letter/y/cdc98d/32.png) [@yassine02](https://community.ofelia.com/u/yassine02)\
**Post date:** [10 September 2020 12:27 UTC](https://community.ofelia.com/t/data-from-bdm-do-not-appear-in-the-form/10381/5 "2020-09-10T12:27:21Z")

</div>

hi thanks you for responding,&nbsp;

Just to be precise :&nbsp;

- First, in the&nbsp;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:&nbsp;when i enter data in the form, it's recorded correctly in the business object i created .

Next, i created another&nbsp;business object called "clients" with&nbsp;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&nbsp; want is to display the values of that table in the instantiation form . I&nbsp;don't want to feed the table from the form just to show me some data.

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

i tried it in&nbsp; a text area and&nbsp;nothing again...

I came back to the studio and add the business object "clients"&nbsp;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&nbsp; can provide me with a detailed solution.

Thanks you in advance

---

<div class="post-metadata">

**Author:** ![bastien.laurent\_1374](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@bastien.laurent\_1374](https://community.ofelia.com/u/bastien.laurent_1374)\
**Post date:** [14 September 2020 06:13 UTC](https://community.ofelia.com/t/data-from-bdm-do-not-appear-in-the-form/10381/6 "2020-09-14T06:13:37Z")

</div>

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