SAP Hybris when to create an attribute in solr.impex as text and when to create as String - sap-commerce-cloud

I need to know when to create an attribute in SolrIndexedProperty as text and when to create as string.
Thanks in advance!

Related

Hybris convert Product to VariantProduct

I extract from an WebService several Products which I convert to ProductModel, however, some of these products are "variants".
I need to manually convert a ProductModel to VariantProductModel, is there any OOTB way to achieve this ?
You cannot change an object from Type. This is partly because the datatype is tied into the PK of your object.
If you want to change the type, you will need to create a new instance of the variantProductModel, copy all the fields and remove the original product

Create Document Property from data table in spotfire

I have the below table in spotfire. And I need to create 2 document properties for baseline_month and monitoring_month. I cannot have a drop_down menu to select the values for document_properties. But I need to create the properties from table itself. I tried for hours, but unsuccessful. Any help here is highly appreciated.
Document.Properties["BaselineMonth"] = Document.Data.Tables["table_name"].Columns["baseline_month"].RowValues.GetMaxValue().Value

Replaceitemvalue & date field & lotusscript

I am using following code to create a new notes datetime item on the document.
Call doc.replaceitemvalue("dttimefield", format(cdat("11/11/2011"),"d/mm/yyyy"));
It does the work but when I open the document and see the documemnt properties it shows me as text list and having value as "11/11/2011"
Please help me what is wrong here. I want that as date time field not text list.
Thanks
You need to create a NotesDateTime variable with the expected date and then use that variable as input to the replaceItemValue method.
Is it error with ";" or it's Java?
I try with your code and it's get a date/time type.

Kentico - Using value of added field (page type)

I need some help adding a field to a page type. I added it via "New Field". I set the field name to "ModalDataTarget".
I inserted it in the page type transformation as {% ModalDataTarget %}.
I put the value in the text field.
It isn't populating with the value I add.
Thanks in advance for any help!
Which Web Part are you using? I would verify the column is returned in the query that is being run for it.
Which transformation type are you using? ASCX? If so, you need to use <%#%> Format.
You are calling macro method in transformation . You need to use transformation methods instead:
try <%#Eval<string>("modaldatatarget")%>

Reading multiple values in a PDF417 barcode

I have a PDF417 barcode that contains multiple values delimited by a semicolon. How can I get Kofax 10 to read those values as two separate index fields? I've created my index zone:
Is this done only through a script, or is there some setting I can use?
Any help would be greatly appreciated.
Thanks,
Jason
You read the code into a field (no need to assign it to two fields). Create a document validation script that gets the value of the field during the Document PreProcess event and copies the required parts to the fields of your choice. You need to use the Validation module in this case.

Resources