Developer forum

Forum » PIM » Auto Checkin
Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,

I have two questions regarding the auto checkin. 

1. Is it possible to have multiple patterns for a asset category? I have tried with patterns like {ProductId}_Manual*;{ProductName}_Manual*; but it does not seem to work. The documentation does not mention anything about it so mayby its not so surprising. 

2. Is it possible to create auto checkin rules based on Manufacturer name? I have tried with patterns like {ManufacturerName}_Manual* and {Manufacturer}_Manual* but it does not seem to work. 

What the customer is asking for is a rule that can both assign by productnumber and manufacturer name. 

Regards / Aki


Replies

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi Aki,

It should be the same Pattern's rules, as you can use/define on Image-Patterns, so look into that documentation (screendump attached below)

So as described, you can define two Patterns, and with Manufacturer you should use "{ProductManufacturer}"

Link to documtation are Product Images (dynamicweb.com)

/Søren

 

Screendump:

 
Michael Knudsen
Reply

Hello Aki,

- I would say both you're requests should be possible + the pattern seems correct.  If it don't work, what version are you running on + how is the Auto checkin job settings?

From one of my working solutions:
*{ProductNumber}-*;*{ProductGroup}-*

Br. Michael Knudsen

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi Michael,

I have to warn you about above "Pattern example"

ONLY USE "*" at the end of a Parameter-rule, otherwise it can make a werry bad performance on you solution

So NEVER use it in front of the Parameter, as shown above ..

/Søren

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Thanks Soren and Michel for your input. 

Seems like  was on the right track. I have changed my pattern to :

{ProductId}_Manual*;{ProductManufacturer}_Manual*;

I have a file named "Hilti_Manual-pdf" and a manufacturer named "Hilti" but it wont "checkin" that file to the asset. The {ProductId} part work and the file named accordingly got checked in. 

For testing puposes I also tries to create a new AssetCategory just for Manufacurers with the pattern {ProductManufacturer}_Manual* but that did not either.

Could there be a problem with the {ProductManufacturer} ?

Regards / Aki 

 

 
Michael Knudsen
Reply

Hello Aki,

- please submit a image of your Scheduled task similar to the one I have attached below.

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,

Here comes. 

The asset category called "Dokument - Manual" is the one I'm trying to add manufacturers to. 

 
Michael Knudsen
Reply

Hello Aki,

- everything seems to be correct, so unless you have forgotten to select pdf as file extension on the Asset category, I don't know what to do.

Br. Michael Knudsen

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Do you have it working with the {ProductManufacturer} tag?

/Aki

 

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply

Hi Aki,

I have invistigated the above parameter, named "ProductManufacturer" ..

"ProductManufacturer" are not supported in the new Pattern-rules, there also are used for CheckIn tool. So that is why you can't get it to work..

It should be possible to add it to the " ImagePatternExtenderBase Class", and otherwise you can add a seperat CustomerField to store the information ..

I hope this helps you

/Søren

 

You must be logged in to post in the forum