Inserting New Block Definition into Table Cell

Inserting New Block Definition into Table Cell

william.klawitter4MJ74
Contributor Contributor
706 Views
1 Reply
Message 1 of 2

Inserting New Block Definition into Table Cell

william.klawitter4MJ74
Contributor
Contributor

Ok guys I'm stuck...  I'm creating a new block def using database.insert

Then I create a new Table

Then I set one of tha table's cell's BlockTableRecordId value to the newly created block def table record objectid

Then I use that cell's SetBlockAttributeValue function to set an attribute def value.

The table is created and shows the block in the correct cell but the attribute value is not being set.

 

When I do this on an existing Block Def everything works fine.  It's ONLY when I create a new block def.

0 Likes
Accepted solutions (1)
707 Views
1 Reply
Reply (1)
Message 2 of 2

william.klawitter4MJ74
Contributor
Contributor
Accepted solution

I resolved this by placing the block def creation code in it's own sub and the table generation routine it a separate sub.  Hense the table generation sub then sees the block def as already existing.  It's at least a work around.

0 Likes