Hello,
I need simplest solution for my problem,thats why i will be very appreciate if you help me.
How i can add unique value to the node(numeric property), check if this value is exist in the other nodes(with same document Type) and after return something like that "ticket ID is a duplicate with ..." .
Perhaps I didn't explain myself properly. I need to "validate" when some "editor" put in numeric property(in document type) not unique value and handle it without publish...
Unique Content in Numeric property
Hello, I need simplest solution for my problem,thats why i will be very appreciate if you help me. How i can add unique value to the node(numeric property), check if this value is exist in the other nodes(with same document Type) and after return something like that "ticket ID is a duplicate with ..." .
Hi Volodymyr,
Try to use ExamineManager, it's the fastest way to get all nodes by docType alias:
After that select with LINQ or pure c# node with value what you want to check.
I hope it will help you.
Thanks,
Alex
Perhaps I didn't explain myself properly. I need to "validate" when some "editor" put in numeric property(in document type) not unique value and handle it without publish...
Volodymyr, as I see the solution, you have to create a handler and call in after editor added a new number.
Just check is there such number in the system with code that I provided to you and allow to save new value after that.
Is it make sense ?
Thanks,
Alex
It's make sense but anyway i have problem with handler, because i don't have any opportunities to use visual studio. But thank you for helping.
I hope we will find solution.
Is it solved issue now?
As for me, this issue not solved.. because i didn't find solution which work for me. But it's already nesesery.
is working on a reply...