Highlighted
Regular Contributor.
Regular Contributor.
120 views

Move Classification

i want to move a classification from parent A to parent B am using the moveClassification method but am getting the following error ( error allocatiing new number for classification , the number already exists )due to the fact that numbering on the new parents sequence is reserved. tried the followng found new parent last child number assign to classification the LastchildNo +1 as the new levelNumber moveclassification but again failed because it updated only the levelnumber and not the whole NumberId. i check the number Id property and it is a readonly property. any ideas on how i could fully upodate the numbering and call successfully the moveclassification method ??

 

 

 

0 Likes
5 Replies
Highlighted
Frequent Contributor.. Frequent Contributor..
Frequent Contributor..

Re: Move Classification

Hi @aeleftheriou32 ,

Change your existing Classification Number to Child Number which is not existed in new Parent Classification. Use Move Classification option to move Classification from Parent A to Parent B.

 

If you  didn't get option  to Change Existing Classification Number that means your profile doesn't have a required access to perform action.

 

Thanks,

Nagendra K

0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: Move Classification

 

the property that you are reffering to change is the classification.LevelNumber ?

The following  is an example of that we did so far

example : “ Document Management - Business - A – ABC LTD “ changes into  BCD LTD means that from A will move to B . assume that the following numbering occurs

 

  1. Document Management = “1”
  2. Business = “3”
  3. A = “1”
  4. ABC LTD = “25”

 

So the full number id = ‘’1/3/1/25’

 

And we modify the classification to BCD LTD trying the following

  1. Get “B” parent classification last childnymber
  2. Set the last ( childno +1 ) as the new number for the classification is going to be moved
  3. Moved classification

 

So the new full classification will be something like

 

  1. Document Management = “1”
  2. Business = “3”
  3. B = “2”
  4. BCD LTD = newparentLastNumber +1”

 

So the full number id = ‘’1/3/2/ newparentLastNumber +1”

 

But We are still receiving a failure due to the fact that  SDK allows you to modify the child classification level number but not the whole number id .  

0 Likes
Highlighted
Frequent Contributor.. Frequent Contributor..
Frequent Contributor..

Re: Move Classification

Hi @aeleftheriou32 ,

 

Are you  trying to set full Classification Number ID through API, If yes API won't allow us to set full classification Number ID  because it is generating full classification Number ID based on parent Classification which  is existed in System.

 

If you  Change ABC LTD to BCD Ltd it will change name only, no other properties will be changed. If we use Move Classification option by providing the Parent classification path/number then new numbering of Classification will be like 1/3/2/25, In Classification moving System won't generate next number for classification which  is going to add.

If you are going to create a new Classification under B it will generate a new Number based on last classification Number which  is added at parent Classification.

0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: Move Classification

ok understood . abd if for example the new numbering "1/3/2/25" as allready reserved by other child into the new parent classification (on the given example B) then the system who will react ? will allow the classification to be moved or a reserved number exception will arise?

0 Likes
Highlighted
Frequent Contributor.. Frequent Contributor..
Frequent Contributor..

Re: Move Classification

Hi @aeleftheriou32 ,

 

If Number is already existed in new Parent Classification System won't allow you to Move.In that It will throw an error like Number is already existed with Full Number.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.