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

Java class diagram - extending built-in classes

$
0
0

Hi all,

I'm a new user to PowerDesigner, and I am starting with a basic class diagram. I've created some classes that should extend the built-in class java.lang.Exception. However, when I try to select a class to inherit from, I cannot find Exception; the only classes that are listed are the ones that I have created myself.

 

Is there something special I must do to be able to use the built-in Java classes? I've read the product manual trying to figure this out, and had no luck. I'd appreciate any help figuring this out.


Can't create proxy table for ASE

$
0
0

GenerateProxyTable.JPG

 

Proxy table script is not generated, and there is no error shown.

Any suggestion ?

Thank you

Welly

Using the Excel_Import.xem

$
0
0

Instead of writing my VB code for every different excel sheet and/or model type...

... i recently started using the XEM Excel_Import!

Lets give it a closer look about the whys and specially about the HOW.

Assume you have different models, say CDM and PDM and you want to import a xls source like that:

execltest1.PNG

and you can import this table without coding as a cdm, pdm or whatever it fits model!

Yes, you want this feature, but how ?

 

Just add the model extention Excel_Import.xem to your model

(menu model:extentions, in the dialog select attach extention and you´ll find it on the tab import!):

execltest2.PNG

 

Now you can use it by right clicking on the model name and selecting Import Excel File:

execltest3.PNG

in the dialog, select a file, leave the options unchanged for now and press next:

execltest4.PNG

as you see then in the selection box, there are all CDM model specific Attributes available:

execltest5.PNG

but even when we want to create an entity, our excel list is a list of entity attributes!:

 

execltest6.PNG

now step by step associate the excel columns with some attribute:

execltest7.PNG

fieldnumber i put in description because i am interested about the order later (or not: then deactivate the button Import column)

But to get an Entity object we HAVE TO associate the entity/table whatevername with the <parent> object so our list of attributes gets a father:

execltest8.PNG

the other attributes: fieldname i put onto name or code , fieldtype on datatype and so on

execltest9.PNG

the second table i dont want for now, so i deselect it and next, the import starts and :

execltest10.PNG

here we are!

 

try the same with a PDM import its working !!!


 

 

Enjoy!!!

DJ

 

 

PS: please rate this, cos i wanna know if its worth to continue

Extending the Excel_Import.xem

$
0
0

Have you ever tried to import different columns of an Excel sheet into 1 attribute?

Usecase:

your boss wants you not to loose any information imported from the BA-Excelsheet, but not all columns fit to an attribute, what now? Hmm..ok, lets put everything what  doesnt fit an attribute to comment or description, but uhhh:

The standard behaivor of Excel_Import is to overwrite the attribute with the most right column assigned to this attribute...

 

(As we learned from the comments at my Blog Using the Excel_Import.xem  there is also the way to create an extended Attribute for every column but this article was already written at this time , and sometimes it´s really the case that you want to combine 2 or more columns into  1 attribute)

 

After diggin deep in the code of the xem, here is a 5 step solution with approx. 10 lines of vbs code and an additional extended attribute:

 

Step 1

locate the  Excel_Import.xem (defaultpath is C:\winapps\Sybase\PowerDesigner 16\Resource Files\Extended Model Definitions) and copy it into MyExcel_Import.xem

Step 2

Include the MyExcel_Import.xem into your model (See my blog Using the Excel_Import.xem if you don´t know how) and open it, then rename the name and code to MyExcelImport so you see the difference to the original one

Step3

add the extended attribute Append2Attribute at location: MYExcelImport::Profile\ExtendedSubObject\Stereotypes\ColumnMapping\Extended Attributes\

(HINT:copy the line above  and paste it into the highlighted adressbar!)

addxa.PNG

insert the values:

addxa2.PNG

Step4

make this attribute selectable in the Importform :

MYExcelImport::Profile\ExtendedSubObject\Stereotypes\ColumnMapping\Forms\ImportColumn

addxa3.PNG

by adding the extended attribute Append2Attribute:

addxa4.PNG

give some more information:

addxa5.PNG

Step5

locate on the global macro

myexcelimport_xem.PNG

In function CommitRowData, locate the codelines:

     

  For each colnMap in colnCol            key = colnMap.Name            if dictValues.Exists(key) and not colnMap.GetExtendedAttribute("%CurrentTargetCode%.Skip") then

 

replace the (2) lines

 

              oldVale = dictValues.Item(key)               vale = oldVale

with this code:

               Dim Append2Attribute               Append2Attribute = colnMap.GetExtendedAttribute("%CurrentTargetCode%.Append2Attribute")               if Append2Attribute then                  attrName = colnMap.GetExtendedAttribute("%CurrentTargetCode%.Attribute")                  if not isnull(newObj.GetAttribute (attrName) ) then ' when the object exists then here we find the older values !                     oldvale = newObj.GetAttribute (attrName) & vbCrLf                  end if                  vale = oldVale & dictValues.Item(key)               else                  oldVale = dictValues.Item(key)                  vale = oldVale               end if

 

and save your work.

 

Enjoy!

DJ

 

:

PS: please rate this, cos i wanna know if its worth to continue

Testing MyExcel_Import.xem

$
0
0

As the last part of this series we just wanna see that everything is working as expected:

Remember the Excel file from the first part (Using the Excel_Import.xem )? It had a second sheet:

 

 

execltest20.PNG

Step 1

load the excel using the steps you already know, this time we skip the first sheet and because i used a PDM to import into, i am importing into a table column:

execltest21.PNG

Step 2

click the new Append2Attribute clickbox for all columns you want to combine ( Fieldnumber, comment BA and all other comments) and select as Attribute for them Comment:


execltest22.PNG

Step 3

table name again ist the parent:


execltest23.PNG

 

Step 4

And here we are:

execltest24.PNG

 

 

Enjoy !

DJ


PowerDesigner 16.5 Postgresql 9.2.4 Reverse-engineering Error

$
0
0

I am trying to reverse-engineer a Postgresql schema, version 9.2.,4 that was created from a PowerDesigner 16.5 data model.  The process is unable to extract any of the columns or keys for any of the tables.

 

Unable to list the columns.

SQLSTATE = 22003

Bad value for type short: t

 

Alternate keys have the same problem:

Unable to list the alternate keys

SQLSTATE = 22003

Bad value for type short: t

PD 16.1 reverse engineers SQL Server datetime2 incorrectly

$
0
0

I am reverse engineering SQL Server 2008 R2 tables that contain columns defined as DateTime2(3).  PowerDesigner creates these columns with a data type DateTime23.  Is there a fix for this?  I can manually correct the columns.

ILM Manipulation using scripts

$
0
0

Hello,

 

In order to implement a particular algorithm, I hae some difficulties to handle DataStructureColumn in TransformationSteps (creating and manipulating them), more particulary in a datajoin.

 

Is there someone have an example to make it ?

 

Thanks a lot,

Thierry de Spirlet


portal question - shortcut targets

$
0
0

I am having an issue with navigation in the portal when I use shortcuts in a diagram.

 

First - my environment

- using 16.5 client/repository

- browser is Chrome

 

The use case:

- In an EA model I have an infrastructure diagram

- In this diagram I added shortcuts to other infrastructure diagrams. These reside in a sub-folder directly beneath the folder I am currently working in.

- When on the portal, clicking on these shortcuts takes me to the Shortcut properties (would ideally like to go directly to Target Object!!)

- On the property sheet for the Shortcut, one of the properties is Target Object - when clicking on this link it basically goes nowhere (i.e. stays on property sheet)

 

On the Client software, I can change this behavior by going to Tools > General Option > Dialog and changing the shortcut proprty sheet options.

 

As stated, ideally I would like the shortcut icon in the portal diagram to go to the target object. If that cannot be done, then I would at least like to be clicking on the target Object property in the Shortcut Property Sheet and actually end up at the Target Object.

 

NOTE: When the diagrams are all in the same folder, then this all works fine - clicking on the shortcut in one diagram goes directly to the property sheet of the Target Object (another Diagram). I was really hoping to be able to pretty seamlessly navigate through diagrams using appropriately placed shortcuts as visual cues. Since we are doing a fairly comprehensive coverage of EA, diagrams being "linked" in this fashion are not always going to be in the same folder.

 

Thanks in advance for your assistance.

Creating Dependency Matix between a Conceptual Data Model and a Logical Data model

$
0
0

Hi, I mapped the entities of a Logical Data Model as the source to entities of a target Cconceptual Data Model using the Mapping Editor. I wanted to create a Dependency Matrix with Conceptual Entities as row headers and Logical Data Model Entities in the Column Heading. I tried all the tricks in the PowerDesigner Help file with a spectacular failure. I attempted to define the Dependency Matrix in the Conceptual Data Model. The entities of the CDM showed up in the row heading all right but nothing in the column heading.

 

Thank you.

 

Stephen

Listing of tables in a diagram

$
0
0

How do I get a .CSV of tables in a particular diagram ?

 

In Erwin, diagram names were expandable within the Model Explorer (Object Browser in PD). And you could then see tables only in that diagram.

 

In the List report Wizard, I could not see a way to know which property to put a filter on. The context sensitive help does not exist for various Filter fields to know what they mean.

 

Basically if there was a Graphical Selection option for the List Report, just like for the Report Wizard, it would have helped, but I don't see the Graphical selection when doing list reports.

Code protection

$
0
0

Hi all,

 

We developped specific customisations within SAP Sybase PowerDesigner using scripts and extended models. 

 

Is there any method to protect such work ?

 

Thank upfront for your feedback.

 

Kr,

Thierry

Problem with licence - PD 16.5 SP2 x64

$
0
0

Hello,

 

I just updated PD to the last version.  While I use a x64 bit computer, I installed the x64 version (which didn't exist previously) but PD tell me my licence is invalid:

 

Error PD 16.5 SP2.JPG

 

When I check "details", I found : "This platform x64_n <> i86_n".  Need we regenerate a new licence file or must I switch back to i86 version ?

 

Kr,

Thierry


How to make a symbol available for a given Diagram type ??

$
0
0

I am working with an EAM and would like to create a view that includes Business Function and Business Service. These two are not made available in the same diagram type. Has anyone tried to do something like make an Object (ex. Business Function) available in a diagram (ex. Service Oriented Diagram) when it is not available by default. I thought this would be easier since the object I am trying to make available (ex. Business FUnction) is already available for other diagram type in the same model (i.e. EAM)

 

Anyone done this? Successfully? What am I missing?

 

Thanks

 

Bruce

Manipulating LDM relationships from VBScript

$
0
0

Does anyone have any VBScript examples of how to manipulate relationships in an LDM?  Specifically, I want to be able to:

 

  1. change parent identifiers from PK to AK
  2. select a different child attribute for a given parent attribute

 

Thanks!


how do I import indicies with excelimport.xem???

$
0
0

Hi all,

i have the following exceltable:

 

IndexnumberIndexnameFieldAufsteigend
1TBAW0666TESTTAB.IXAW066601TESTTABPKX
2TBAW0666TESTTAB.IXAW066602TESTTABTBAW0666TESTTAB.PKX
2TBAW0666TESTTAB.IXAW066602TESTTABTBAW0666TESTTAB.FELD2X
2TBAW0666TESTTAB.IXAW066602TESTTABTBAW0666TESTTAB.FELD3X
2TBAW0666TESTTAB.IXAW066602TESTTABTBAW0666TESTTAB.GUELTIG_AB
3TBAW0666TESTTAB.IXAW066603TESTTABFELD1X
3TBAW0666TESTTAB.IXAW066603TESTTABGUELTIG_ABX

 

 

And the following importdefinition:

Table Indexdefinitionen=Table.Index.IndexColumn: Indexnumber=Comment, Indexname=<Parent>, Field=Column, Aufsteigend=Ascending

 

 

 

The 3 indexes are created, but not the indexcolumns, i tried both versions of fieldnames with tablename and without, i also switched on and of the option "create object if not exists", but no results, do i try to bind the field to the wrong object/collection within Table.IndexColumn?

 

Thanks for any advice

VB Script: add attribute to Identifier

$
0
0

How can I add an attribute to an identifier in VB script?  I've tried the following code:

 

attrib1.Identifier = identifier1

 

However, this replaces any other identifiers that the attribute belongs to.  Ie: if originally attrib1 belonged to identifier2 and identifier3, after running the above, it will now only belong to identifier1. 

[PowerDesigner Portal 16.1] - Deploy as Weblogic Cluster Server

$
0
0

Greetings,

 

Is it possible to deploy PowerDesigner Portal 16.1 in a Weblogic cluster server? If so, do we have to install a webdispatcher between the users and the weblogic server in order to dispatch the load between the nodes?

 

Looking forward to receive some feedback.

 

Thanks in advance,

 

Best regards,

 

MS

PD 16.1 Selection isn't recognized

$
0
0

Hello,

 

I'm using the PowerDesigner 16.1 for a while and today the dialog "Database"=>"Apply Model Changes to Database" doesn't recognize my selection.

The Result is a change scupt for the complete model.

Can you give me any advice for solving this problem?

 

thanks in advance.

Unspecified error in VB Script regarding identifier

$
0
0

I have a VB script that attempts to get an attribute of an identifier in a PdLDM model.  The code is similar to the following:

 

dim identifier

set identifier = entity.FindChildByName(identifier_name, PdLDM.cls_Identifier)

dim attribute

set attribute = identifier.GetAttribute(attribute_name)

 

The method GetAttribute() keeps resulting "Unspecified error (0x80004005) At line ##, character #.  Does anyone have experience with this?  Thanks.

Viewing all 638 articles
Browse latest View live


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