on 02-05-2014 1:02 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
Hello Hanu,
Does the Wikipedia entry <Sandbox (computer security) - Wikipedia, the free encyclopedia> help you here?
Bye,
Horst
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.