How to display BDM in table

1
0
-1

I need to display the records that are in my BDM in UI Designer, so far I have only been able to display what is in my process variable, through the following code:
../API/bpm/caseVariable/{{task.caseId}}/listaTransportadoras

However I need to display my BDM records in a table in the UI Designer, how can I do this?

I tried to create an API like this:

../{{context.transportadoras_ref.link}}

And I called the attributes of my BDM like this:

retorno.status

But the return was empty, what do I need to change to return have the attribute value of my BDM?

Comments

Submitted by Dibyajit.Roy on Thu, 02/09/2017 - 10:52

Hi

You have the Correct Procedure. Maybe you got the naming incorrect .

Inside your Form, Add a text Field. Replace all the text with {{context}} .
Preview the Page. It should Pull up the correct Ref link.

this is How i check most of Issues .
Hope this helps .

Submitted by romualdo.s.rs on Thu, 02/09/2017 - 11:46

Thanks for trying to help me, I did what you indicated but the Text field returned blank by placing {{context}},
So when putting in an input field it returned me this: "{{properties.placeholder | uiTranslate}}"
Just to confirm, it's literally {{context}} in a text field, or the name of my variable that's receiving my REST API

3 answers

1
0
-1

Hi

Sorry I was Not able to Open the BOS file as I am using a Lower Version of Bonita.

I have the BOS file. I will test it out later.

For Now , I have Uploaded screenshot of My Pages where I use the context.ref to Pull Data and Display inside the Page.

Let Me know If you are able to access the Screenshots and iF it Helps you in any way.

Alternately I can open your BOS file once I download a Higher version of Bonita .
Here Is the Link
https://goo.gl/photos/qdCmhGr3SkzQZFgg6

If you want to Display the BDM records inside an Application page(Outside the Portal) .Then you will need a Separate API
/bonita/API/bdm/businessData/com.model.Table_name?q=find&p=0&c=10000

Comments

Submitted by romualdo.s.rs on Thu, 02/09/2017 - 12:18

I looked your images, and apparently their settings are the same as the way I set it, I believe that when you can take a look at my .BOS file, you will understand why I am not understanding what is happening to not display the information of the attributes

Submitted by Dibyajit.Roy on Thu, 02/09/2017 - 12:21

OK.
In that Case , I will have a look later Today. I can Reply Tomorrow.
I have a Question.
This page where you want to Display the Attributes.
1) Is it inside a Portal Task ( Portal Form) .
2) Is it a Separate Application Page . Outside the portal .

Submitted by romualdo.s.rs on Thu, 02/09/2017 - 12:42

Answering your question, I believe it is within a task that has this Form (I am new to Bonitasoft and do not know the correct nomenclature). Another thing I checked for an APi External variable as you suggested in the answer, I am sending the link of the image to you to see the result
https://drive.google.com/file/d/0B8aMiLwwVY0nbFBTSE5sUVRMQTA/view?usp=sh...

https://drive.google.com/file/d/0B8aMiLwwVY0nVDNhTk1nalFIeW8/view?usp=sh...

Submitted by romualdo.s.rs on Thu, 02/09/2017 - 13:16

Reseted my BDM and add a new item that arrest had added:
https://drive.google.com/file/d/0B8aMiLwwVY0ncG10QWFES2t1V1k/view?usp=sh...

But I can not determine that he brings me the name of the carrier, for example

Submitted by Dibyajit.Roy on Thu, 02/09/2017 - 13:23

Hi

From the Screenshot , I dont see the the task Id variable.
You should have a task id Variable Defined .

task Id = ../API/bpm/userTask/{{taskId}}

Submitted by romualdo.s.rs on Thu, 02/09/2017 - 13:29

I added the variable, after that I need to change something else, because the result of the table was the same.
https://drive.google.com/file/d/0B8aMiLwwVY0nOEZHQnhCNGl5WEU/view?usp=sh...

Submitted by Dibyajit.Roy on Fri, 02/10/2017 - 15:01

Hi

I took a look into the BOS file.

I realised that If you using a table then context_ref.link will not work here.
Rather you have to define the Actual link it self.

Here is the Link that worked for me.
../API/bdm/businessData/com.hss.model.Transportadora?q=find&c=100000&p=0

I have made small adjustments to the BOS file. Do check it out
https://drive.google.com/file/d/0B-MHHSlP6-kMZUVHb3NoeGk4QjA/view?usp=sh...

Submitted by romualdo.s.rs on Fri, 02/17/2017 - 17:52

Thanks for the feedback,

I tried to open the .BOS file that you edited, but it is in a version higher than mine (You sent it in 7.4.2 and I have version 7.3.3 installed)

Submitted by Dibyajit.Roy on Fri, 02/17/2017 - 17:58

Hi
I will try to create a sample in 7.3.3 tomorrow and upload .

Did you try with the ../API/bdm/businessData/com.hss.model.Transportadora?q=find&c=100000&p=0
It worked for me.

1
0
-1

Hi

Sorry I was Not able to Open the BOS file as I am using a Lower Version of Bonita.

I have the BOS file. I will test it out later.

For Now , I have Uploaded screenshot of My Pages where I use the context.ref to Pull Data and Display inside the Page.

Let Me know If you are able to access the Screenshots and iF it Helps you in any way.

Alternately I can open your BOS file once I download a Higher version of Bonita .

1
0
-1

Have you read the Getting Started Tutorial? All the information you need is in there...
http://documentation.bonitasoft.com/?page=getting-started-tutorial

regards
Seán

PS: While you may not like the answer, it gives a possible solution, please mark as resolved.

Comments

Submitted by romualdo.s.rs on Thu, 02/09/2017 - 11:23

I read the tutorial but did not understand how I can get the contents of my BDM attributes and display in a table in the UI Designer, could you give me an example of how I can do this? I will add the link to my .BOS file from my process, if you can see what I can do to accomplish this task I thank you very much
https://drive.google.com/file/d/0B8aMiLwwVY0nUFl1MUdQYkFaRkk/view?usp=sh...

Testing
Notifications