Topic
  • 1 reply
  • Latest Post - ‏2013-05-16T14:54:17Z by llandale
MyDeveloerWorks
MyDeveloerWorks
41 Posts

Pinned topic dxl examples with variable type "InPartition".

‏2013-05-16T08:53:25Z |

Hello 

 

 

I have a topic open on this in the general discussion 

https://www.ibm.com/developerworks/community/forums/html/topic?id=64d3edad-4b72-4645-8585-214a51059d69#a5d296ed-3bb7-485d-a539-6b092acc022a

The symptoms are either 1 or 2 in Louies answer

 

Has anyone seen or written any DXL examples that modifty Partition information?

The dxl help has just bare definitions without examples.

 

rgds

 

  • llandale
    llandale
    3035 Posts

    Re: dxl examples with variable type "InPartition".

    ‏2013-05-16T14:54:17Z  

    Never touched it.

    Let me scribble a guess:  In the Home database...

    • Project pHome = current
    • PartitionDefinition pd
    • PartitionModule pm
    • for pd in pHome do
    • {  print "PartitionDef\t" (pd.name) "\t[" (pd.description) "]\t...modules...\n"
    •    for pm in pd do
    •    {  print "\t" (pm.name) "\n"
    •    }
    • }

    In the Away Database (yours it appears):

    • Project pHome = current
    • InPartition pi
    • string InPart_Name
    • PartitionDefinition pd
    • PartitionModule pm
    • for pi in pHome do
    • {  InPart_Name = pi.name
    •    pd = loadInPartitionDef(pHome, InPart_Name)
    •    print "InPartition\t" InPart_Name "\t[" (pd.description) "]\t...modules...\n"
    •     for pm in pd do
    •    {  print "\t" (pm.name) "\n"
    •    }
    • }

    -Louie