Mohamed_alsadr
17th January 2006, 10:34
Hi, we are using the product configration and project structure to create standared items... all seems fine, the parameters looks ok but we have a problem..

Now we might have more than one item with the same code so we need to put a sequence number to the end of it.the sequence is created but with random number, we need it to be start from 001 and continue but it give us numbers like 501 then 601 etc...


ok .. now I know why.. it takes the 1st digit from the variant number and the other 2 digits is the seqence.. I need it to make a sequence from 3 digit not including the variant number..

Is it possible...


Help appreciated

Pieter van de L
17th January 2006, 15:28
It is possible to program it in a constraint. Ik you add ! for each line in the constraint you wil be able to program anything you want. So it would be possible to do a select on the item table and select the last record inserted and add 1 tot the code.

Pieter

günther
18th January 2006, 12:55
It is possible to program it in a constraint.

I agree, but that requires that you use the 'object' mode of pcf; the 'interpreter' mode will not work here. (And by the way, switching from interpreter to object mode might become a big problem.)

Günther

Eddy G
5th July 2006, 10:08
Gunther,

What could be the problems going to object mode?
Just curious, from a development point of view?

Regards,
Eddy

günther
5th July 2006, 12:09
Gunther,
... from a development point of view?

People that maintain pcf rules are no real programmers. They often have a set of rules and you better don't ask "why aren't you doing it in another / easier way".

But when you switch to object mode, you have use a compiler ("what's that?") and you have to think of dependencies. Imagine you introduce a new product feature => you'll have to recompile all(!) your generic items.

On the other hand, the benefit is that you could reduce the code with your "rules", use #includes and/or dlls.

Günther

Eddy G
5th July 2006, 12:16
Günther,

Ah.. ok.
With "development point of view" I was not clear.
I meant: I'm involved in maintenance/development of the PCF module.
So I'm interested in all comments "from the field", that can help improve PCF functionality/usability etc.

Regards,
Eddy

günther
5th July 2006, 17:06
I'm involved in maintenance/development of the PCF module.
So I'm interested in all comments "from the field", that can help improve PCF functionality/usability etc.

That sounds unbelievable to me. You're from SSA / baan and you are asking your customers? Really?

Anyway, here is something that has me driven the last five years: I have to control the product configurator from batch input. What about AFS? Is it possible to create a session "initialialize product variants" (cpva.f .. cpva.t; pcf option I) or "run pcf constraints" (cpva.f .. cpva.t, open pcf and use option E)?

Günther

Eddy G
7th July 2006, 11:16
Sorry Günther,

Everything is possible...
However, for this I do not have an out-of-the-box solution.
I'm not experienced in AFS too, because that is merely used in customisations/integrations stuff.
Wonder if it can handle the complex UI of tipcs5120s000...

I do know a customer that has made customisations for this in LN.
I'll see, if I can come to know, how they did it so I can let you know.

And you can always ask for customisations of course!

Regards,
Eddy