Quantcast
Channel: SCN : All Content - SAP PowerDesigner
Viewing all 638 articles
Browse latest View live

VBA Script for List of Entities for a Diagram

$
0
0

Hi,

Is there is any way to get the list the entities which is associated with a diagram using the VBA script. I could not find the relation between the Diagram and entities in PD meta model diagram. Any body has any idea

 

Suppose diagram " Employee Details "

The List will be

  • Employee
  • Salary
  • Designation

etc

 

Suppose diagram " Customer Details  "

The List will be

  • Customer
  • Invoice
  • etc

 

Ani  


How to retrieve all views referencing a table by VBScript

$
0
0

Hello,

 

in the table and view dialogs you have the dependencies tab. There you get lists of all objects referenced by the current object and all objects referencing the current object.

 

With VBScript you can call the method "DependenciesText" to get a string block containing these information.

 

My problem is, that the execution of "DependenciesText" for all tables and all views takes a very long time and that the string block does not always contains the fully qualified objects but only object names without the owner. This is a problem, because we have multiple owners/schemas with same tables names in our models.

 

I guess that there must be a collection containing objects with these dependecy information.

 

Does anyone knows where this collection could be? Part of the model? Part of the table object?

 

Or does anyone knows a completely different but still good way? Or has an example?

 

Thank you.

 

Best regards,

Florian

PowerDesigner for Hive/HBase

$
0
0

Wondering if anyone is using PowerDesigner for modeling tables for Hive and/or HBase? I have started a custom .xdb file for Hive but it falls short when dealing with complex data types and there are additional customizations needed that I have not figured out yet. I've heard that the next version will have some sort of support for big data, but no idea what that will look like.

Function for Get a specific entity from Entity Collection

$
0
0

Hi All

I found there is a function for retrieving the specific object collection from the Model 

Dim Mdl As PdCommon.BaseModel

    Set PD = CreateObject("PowerDesigner.Application")

    PD.OpenModel ("D:\PowerDesigner\project.pdm"

For Each Mdl In PD.Models

    Debug.Print Mdl.Name

   Set ObjTab = Mdl.GetCollectionByName("Tables")

next

Is there is any function to get the specific object from the collection than iterating through the collection . For example . I want to get the emnployee table from the   ObjTab collection

Set emptab =ObjTab .<<< functionname >>("Employee")

I tried GetCollectionByName , but its not working

 

Thanks for help

 

Ani

convert NATURAL KEYS in my LDM into SURROGATE KEYS when I generate my PDM?

$
0
0

PowerDesigner 16.5

 

My logical data model (LDM) contains only natural keys (NKs).  All of my LDM relationships reference NKs.  When generating my physical data model (PDM), I wand a surrogate key added to every TABLE and I want all of the NK relationships to be replaced with FK relationships based on the newly generated surrogate keys.  Is there a way of configuring my PDM generation options so that this is done automatically?

Inheritance: condensing LDM subtypes into a single super-type when generating PDM

$
0
0

In the PowerDesigner 16.5 tutorial they build LDM/CDM with a super-type of employee and sub-types of...

 

  • SalesPerson - with unique attribute of CommissionPCT
  • WarehouseWorker - unique attribute of HourlyPay
  • Accountant - unique attribute of Salary

 

...when the PDM is generated the subtypes are automatically combined into a single TABLE (tblEmployee) with CommissionPCT, HourlyPay, and Salary as null-able attributes.  I already know how to configure that in my model (supress children option)

 

In the tutorial a COLUMN (EmployeeType) is created in the employee TABLE.  This makes perfect sense.  I would assume that it would contain the values of "Sales", "Warehouse", "Accountant", etc.

 

However, they don’t explain in the tutorial how the EmployeeType COLUMN was created.  Was it done automatically or did they need to add this manually?

Powerdesigner 16.5 Apply model changes to database

$
0
0

When trying to apply model changes to database (SQLServer 2008), PD does not generate the correct SQL code to drop and create the references in the following situation.

 

The structure of a parent table changes as such that it has to be dropped and recreated. The PK of the parent table is dropped without dropping the references to the child table(s). The drop fails because of the reference(s).

The workaround is to manually drop all the references preceding the drop of the PK and create the references after the creation of the PK.

 

Is there any solution available for this problem? The version I'm using is 16.5.0.3982.

VB function behind Import Image ...

$
0
0

Hi,

 

does someone knows, which VB function is used if you select Edit -> Import Image?

 

image.GIF

 

I need to add some images to a diagram but in a script.

 

Regards,

Rafal


How to script out BPM Diagram Dependencies?

$
0
0

Hi,

 

quick question: how to script out the Business Process Diagram Dependencies.

 

This is something I can find in the Business Process Diagram Properties tab, so it means ... it's there. But how to script it out?

 

BPMDiagDep.GIF

Since I think this is a diagram property, I've tried to script it out using the following collections:

RelatedObjects As ObjectCol

DisplayedObjects As ObjectBag

AttachedRequirements As ObjectCol

DiagramSymbols As ObjectCol

RelatedDiagrams As ObjectCol

RelatedNameTerms As ObjectCol

RelatedCodeTerms As ObjectCol

RelatedTerms As ObjectBag

InputLinks As ObjectCol

OutputLinks As ObjectCol

ExtendedCollections As ObjectCol

ExtendedCompositions As ObjectCol

AllExtendedSubObjects As ObjectBag

ExtendedInverseCollections As ObjectCol

IncomingTraceabilityLinks As ObjectBag

ExtendedInfluences As ObjectBag

OutgoingTraceabilityLinks As ObjectBag

ExtendedDependencies As ObjectBag

DiagramContainers As ObjectBag

 

But it's none of these

 

Any ideas?

 

At the moemnt I'm only able to script out all dependencies as textes using:

DependenciesText As
String
Get Dependency String.

But this is not a help at all as I need to get to the actual object listed in the dependencies tab ...


I was also trying to create a TraceabilityLink from the source object to the BPM diagram, and I'm not able to script out this relation using IncomingTraceabilityLinks.

 

However, if I create a OutgoingTraceabilityLink from the diagram to that object I'm able to script out this relation using OutgoingTraceabilityLinks.

 

So I don't know where's the source of the issue I'm facing ... It seems like the access to the objects in the Dependencies tab woudl not exist.

 

Thanks!

Rafal

Attaching an extension to a model via script

$
0
0

Hi,

 

quick question to one of the PD gurus:

 

How to create a model by script and add an existing extension to it.

 

I'm able to create a model using the CreateModelFromTemplate function based on a template the extension is already attached to, but how to do the same using CreateModel? Is there a parameter wich allows to add an extension?

 

I was trying with CreateModel (PdEAM.cls_Model, EvaluateNamedPath("%_MODELS%") + L1Process.Name + ".eam|Diagram=CityPlanningDiagram|ExtendedModelDefinitions=" + EAMExtensionPath, omf_DontOpenView) since there is nothing about it in the documentation. Of course I failed ...

 

Any ideas?

 

Regards,

Rafal

Is CDM meant for modeling attributes

$
0
0


A colleague of mine is suggesting that we should start our modeling from CDM with all the entity defintion and adding all attributes, because CDM maintains data items librarby that makes it easy to understand data lineage and maitaining description and domains consistently.

 

then convert the CDM to LDM and convert LDM to PDM.  Ours is team environment with multiple modelers working on the enterprise model. Do you think this approach makes sense?  or CDM is typically meant for identifying the required entities and their cardinalities and leave the attribute modeling to logical model?

 

One problem I have in CDM is, when I draw a Primary identifier in a child entity, CDM does not show the attribute in the child entity, so until we convert the CDM to the LDM, we don't see the FKS.

 

thanks

Krishna

Merging Entities

$
0
0

I need to write a script that will merge an entity into another entity, adding and renaming attributes where necessary, and documenting the properties of the 'merged from' entity in the 'merged into' entity without overwriting them.

I've experimented with the MergeInto function, but that doesn't do the job properly - it removes the attributes from the 'Merge From' entity, and doesn't check the names of the attributes and identifiers that it creates in the 'merge Into' entity; it also changes all the entity symbols to point to the 'Merge into' entity, which I don't want it to do, as I'll be removing the 'Merge from' entity when I've finished.

 

Is this an issue that someone has tackled already? The old Bachman Groundworks tool used to have a wizard for merging entities, which I really liked, perhaps there is one for PD that I haven't come across?

 

I suspect I could find a way of using the model merge functionality to do the job, but it's probably simpler to write something specific.

Next release of PowerDesigner?

$
0
0

Hi gurus,

Do you know where I can find documentation on timing for next release of PowerDesigner and end of maintenance for PowerDesigner 16.5 sp03?

 

So far, all I've been able to find is a SAP document from 2013 that indicates end of mainstream maintenance for PowerDesigner 16.5 in February 2015.   Is that still the current plan? What release succeeds 16.5 and when will it be available?

 

Thanks in advance your help!

Ann

PowerDesigner failed to read a file error when i opened a PDM document

$
0
0

My PD got closed and system restarted due to some software updates. I was working on a PDM before restarting. After when i try to open the PDM , i am getting PowerDesigner failed to read a file error .

 

anyone suggest how to open the PDM and get the saved contents.

Global Domains

$
0
0

Hi Folks,

I am new to PowerDesigner and using version 16.5. I was wondering if I can get some expert advice from you guys. Here is the situation: We work with many data models and use enterprise repository. What I am trying to find if there is a way to create my Domains globally I.E in the repository maybe then they can be applied to all different models so we don’t have to create Domains for each data model separately. I would greatly appreciate your support!


How to design a Decsion Model with BPMN2?

$
0
0

All,

 

Any how-to related to the above.

Found the Business Rule task in BPMN2 and the decision model tab, but didn't figure out how to work with both.

 

Thanks
Olli

Export Physical Model to Erwin

$
0
0

Hi,

    Help me. In my company we work with both tools (Erwin and PowerDesigner). The models need to be portables between them. I was able to  import Erwin model to Power Designer but I could not export from PD to Erwin. I found in other communities it is possible by converting to OOM and export to XMI format but in my opinion this is a very serious limitation. Anyone know How to do this?

 

Thank you.

Is there a way in PD to hook into an event after a report has been generated?

$
0
0

I have a custom script that is run to enhance some of the HTML generated report files, and as of right now this is a two step process.

 

1) Generate the HTML report (using Multimodel report)

2) Run the script to improve the generated output.

 

While this is ok to do as a one off, its not a scalable and repeatable approach to always do this. As such I'm looking for a way that I can trigger step 2 automatically - and potentially do other things such as to deploy it to a web site etc. Ideally it would be an event that an XEM can catch and process, this would then make it configurable and manageable.

 

Any ideas or examples of ways to achieve the triggering of a post generation enrichment process would be greatly appreciated!

 

Many thanks,

 

Gareth

Attributes inherited to Subtype from Supertype

$
0
0


I'm in Version 16.5.2.4

In a brand new LDM

I have set the Supertype- Subtype inheritance  to "inherity only primary attributes" .  So the Primay key column in the Supertypes nicely shows in the subtype entities on the diagram, but when I check the Comments, some of them are showing up from the supertype and some are not.

 

Is there a way to get the LDM to work consistentlyon this?  This is going to be a large LDM and I don't want to be double checking and copy and pasting comments all over the place.

 

Jane

Help again - Is Powerdesigner compatible with Webseal ?

$
0
0

Hi,


We use the software POWERAMC 16.1.

We would like to install the web portal of the repository. But our company order us to connect it with the acces manager Webseal (IBM).

Is the software PowerAMC compatible with it?

 

Please ask fore more informations if you don't understand the question.

We are french,first, sorry for my bad english.

 

Nobody answer...

 

Best regards,


Lisbeth

(Caagis, Paris)

Viewing all 638 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>