cancel
Showing results for 
Search instead for 
Did you mean: 

Import BO structure

Former Member
0 Kudos

On My Solution I have implemented two different projects: Project1 with a BO1 structure and Project2 with a BO2 structure for example.

And I would like to import from the Project2 the structure of BO1 to read it.

What is the process?

Another request: is it possible that Project2 will also write in the BO1 structure of Project1?

If yes how to do t?

Thanks for your help

Accepted Solutions (1)

Accepted Solutions (1)

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello David,

In general you cannot access any entites in one solution which are comming from another one.

But that is runtime.

I did not get what you've meant with Project1 and Project2.

Do you have one "MySolution" in which you import objects from others solutions via "Add" -> "Existing Item"?

Bye,

   Horst

Former Member
0 Kudos

Dear Horst

First thanks for your response.

I will explain what I mean by project.

For example in my Solutions folder I have implement several project.

See the file here attached.

In the solution Bonus Management I have defined Business Object structure:

Of the type:

businessobject BonusPlan {

    

    [Label("Bonus Plan ID")] [AlternativeKey] element BonusPlanID:ID;   // set it as the primary key in the data base

   

    [Label("Start date")]    element StartDate:Date;

    [Label("End date")]      element EndDate:Date;

    [Label("Bonus rate")]    element BonusRate:Percent;

    action CalculateBonus;

}

And I would like from the Solution BonusPlanImportEmployee read the BO BonusPlan and be able to add instances.

Thanks you in advance.

Former Member
0 Kudos

Hi David,

As Horst already mentioned in his thread, that in ByD at present such functionality of accessing the entities of one project in another (Such as importing entire project A into Project B with the help of namespaces...) is not possible. To do such things as of now as a work around you can create both of your BO's in a single project itself, then you can access the entities of one BO from the other.

Coming to your preceding thread f what you have explained with the help of the screen attached.

If you are really looking only to access already saved instances of the first BO then it is possible by using following import statement "import ap.pdi.global"(If incase the BO is a custom developed one).  By using this import statement you can access the needed BO fields , access the instances of the BO by querying/by looping, even you can write/save manual entries into that accessed BO from your PDI itself (if incase create option is available with the accessed BO).

Kindly let me know incase of any issues in this..

Regards..
Hanu K

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello David,

As mentioned above: All the BOs from the solutions

- Bonus by CI

- Bonus Management

- BonusPlanImportEmployee

- Management of car space in a company

can not access each other, neither read nor write.

They are all sandboxed inside their resp. solution.

Sorry,

   Horst

Former Member
0 Kudos

Thanks you very much Horst.

Former Member
0 Kudos

Hi Horst,

Can you just let me know, what is sandboxed? I am confused with this word.

Regards..

Hanu K

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Hanu,

Does the Wikipedia entry <Sandbox (computer security) - Wikipedia, the free encyclopedia> help you here?

Bye,

    Horst

Former Member
0 Kudos

Thanks Horst...

Answers (0)