There are a couple of reasons to use a datasouce in BlueDolphin knowing:
This article will describe the object creation from a datasource.
First follow the article Import data into BlueDolphin to make your local datasource available in BlueDolphin.
In this article i'll explain the steps you need to take to create new "Application components" based on a loaded datasouce, in my case "Source_Applications".
Before executing the steps, make sure you:
- have a valid BlueDolphin enviroment
- are Administrator in the environment
- have the Object definition you like to use available in your environment. See Configuring Concepts and Building blocks on how to install a template from the library.
For this article i'll stick with the 3 object properties which are present after installing the "Valueblue standard convention". We will fill 2 properties directly with data from the datasource, the third property we'll fill using a Questionnaire field.
Go to the "Sources" section of the opened Object definition, you will see screen below.
As you can see there are no source configurations present yet, click on the "Add source connection" to add a new Source connection.
In the figure below you see the settings i made:
I gave the connectionname a simple name so i can easily find it on the "sources" tab, i also selected the correct source.
I selected "New object are allowed ti be created with data from the source" because this source comes from a source that contains data for the object i want to create.
Because i have a very simple setup i just set the group value to "nvt" (the group value is used in very specific cases). My source just contains applications so there is no need to further filter the content, i want to create object from all entries in the source.
Beside using the datasource for setting a value to the title field, i use the datasource to fill the properties Name & Version directly from the source.
After all settings are made click "OK" to create the source entry. You will see the figure below.
As you can see i leave "Click here to enable manual source processing" unchecked, i want the objects to automaticly be created/updated.
We now need to make sure the Maker property is kept in sync with a Questionnaire field, for this select the Questionaires tab.
Using the "Choose questionnaire" dropdown you can select one of the questionaires available in your BlueDolphin environment. After you selected a questionnaire you are able to link one or more questionnaire fiels to a datasource value (the value of the datasource field of the datasource bound to the object is used as fthe fields value). For this you click the "Add linked question button", select the question you want to link, and then the bound datasource and the field in the datasource you want to use as the value of the question. See the figure below.
What i did here is i want to use the value of the field "Vendor" in the datasource "Source_Applications" as the value for question "Maker".
There can also be a need to use a Questionnaire value as a Object property value, for example when you want to filter on a questionnaire value or use it in a display column.
For this, on the Main tab click "Add object property"
On the popup for adding a new object property, give the property a Name. Select the Questionnaire and the field which value you want to use. See the figure below for the settings i used.
All settings are made, if you want to create the objects. Go to the Sources tab and click on the refresh button. See figure below.
When the objects are created, i open the Application component "7Zip" On the General tab you see the version and name properties are set with the datasource values.
The Questionnaire "Generic Application information" has a question bound the a datasource value:
When i set the question "Status" to the value Live
And click the save icon, the object property "Status" should be filled with the same value. After the save operation completes i i reopen the general tab, you can see the Status field is updated.