Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Help needed on setting sequential numbers
Cheryl_Henry_(nswcdahladmin_-_(deleted))
Could someone please help me figure out what I need to do?I have a custom module, something like the task list. I have a list of action items, that I need to keep in a sequential numbering order as they are created.I need a non-overwritable field that needs to show a number that is automatically generated.For example:"AAA" has items "BOX", "REG", "CIR", the number that should be generated should be, "AAA-1", "AAA-2", "AAA-3"."BBB" has items "CIR", "SQR", "TRI", the numbers it should generate is "BBB-1", "BBB-2", "BBB-3".1. Where should I put the code to increase my numbering?2. How can I set the numbering so the number will not be used again, like the Oracle Sequence numbering?3. How do I capture the name of the list of Items ("AAA" eg.)?Thanks in advance for your help.MGP
Find more posts tagged with
Comments
Robert_Davies_(unlondonadmin_-_(deleted))
Hi.I'm a relative newcomer to Livelink, but i'll try and answer your questions as well as I can:1) Take a look at the LLNode.NodeCreateSubClassPre(). This method is called before the node is created. (Page 9-13 of the SDK training manual if you have it.)2) It's not clear from your description whether you need the sequence to be unique for each custom task list (CTL), or all CTL's.I.e. In one folder you create an 'AAA' CTL and a custom task item (CTI), 'AAA-1'. Then in another folder you create an 'AAA' CTL. Now when you add a CTI is it 'AAA-1' or 'AAA-2'?In the former case you could store a counter in the extended data area for each CTL. When a CTI is created use the NodeCreateSubclassPre() method to grab the counter from the parent CTL & update it.In the second case it is more difficult. One way might be to keep an Assoc in the extended data area for the Enterprise workspace. In the Assoc map each CTL name (e.g. 'AAA') to a counter.3) I *guess* that the parent info for the items being created should be available either in the request, or the node itself while you are in the LLNode.NodeCreateSubclassPre() method. This name 'AAA-1' can be stored in the extended data for each custom task node in the task list.I hope something here may help you.Best regards/matt.
Cheryl_Henry_(nswcdahladmin_-_(deleted))
Thanks Mat,The first instance is what I am looking for CTL has CTI "AAA-1" and the next CTL may has CTI "AAA-1". I will see what I can do. I am not the best at programming in LiveLink. I get a little confused when I should use .Response or .Request. I will try this and let you know the results.Thanks again.MGP