Add a new column in the product_attribute table and populate this column when creating product declination Prestashop - prestashop

I am a beginner in prestashop and I do not really master the structure of prestashop.
I created a column in the ps_product_attribute table manually in my database, I also created a field on the product declination creation form.
what I would like to do is to be able to store a code for each product variation and to be able to retrieve this code at the product display level.
you can look at my screenshot for more understanding.
Thank you
Image 1
Image 2
Image 3
Image 4
Image 5

Related

Is there a way to count dynamic table rows in citrix/image env in UIPATH

I am doing automation to download all document by customer.
i am having trouble with counting total rows in table because it is image based env. you can see the following image
i have tried to find selectors, but there is no selector
Can any body tell me how can i do it
Thanks
if you are using image recording then try the following:
1. First select Image Recording and from Screen Scraping choose the option Screen Scraping as follow:
2. Just click on the image that you want to scrape data. In the follow up pop-up window select Region to Scrape option and specify the region/image to scrape as follow:
3. Then for your new scraped data select the following options on the right side as follow:
4 The output of your recording will be Text (unstructured data), so let us covert it to Data Table (structure data) so we can count the rows.
5 In order to do that we use Activity Generate Data Table
6 Lastly we use Activity For Each Row to count the rows and store them in a row_Counter variable.
7 Workflow as follow:
Hope these information will be useful.

How to program crystal report to lookup a record in a table

i Have a Table with Fields
Material Number
Order Code
Supplier Code
Description
I have a crystal reports rpt file that i manually enter all the information to generate labels.
I am trying to program this using the built in formula editor, so when i enter the Material Number (which is a unique code) it will automatically display other 3 relevant fields.
I have tried few formulas in the formula editor without any luck.
can anyone help?
relliK
UPDATE
#Siva - I have added the table for clarification
i simply want a lable printed with only one user input being the Material Number, and then the code/fomula in crystal reports to fetch the other data based on the Materila number and produce the label.
thank you for you interest in this issue.
UPDATE
#Siva - I have added a sample label, i would only want to enter 20506871 as Material and the other data fields to be pulled from excel
not sure if i can use parameter fields and/or i would like some help on programming the parameter fields

Display database image in RDLC report from a specific row in database

working with VB.net and RDLC reports. At the top of the report, I would like to show the company logo stored in my database.
I create an image and assign the image field from the database to it and it displays the image (this works).
Problem is it is pulling out the FIRST image in the database.
What I would like to do is show the image related to the specific company name. Seems like RDLC doesnt allow this...
I am forced to pick: =First(Fields!CompanyLogo.Value, "MyCompanyInfo")
What I need is:
Fields!CompanyLogo.Value WHERE CompanyName is 'ABC'

Images in Crystal Reports

I am working on Windows Forms Projects.
I am creating a report for customers.
The report data is pulled from a "CustomerDetails" table.
A field in the table is called "CustPhotoName", this holds a string which relates to an image file.
I Currently have a report set up which runs for a single customer by passing in a customer ID. Then using the passed in ID to populate a Dataset with an ImageRow and then a sub report with the image from the dataset.
I am wanting to set up this report where I can pass in an array of customer IDs and produce the reports (1 page per customer with image (if CustPhotoName has value))
Please can someone let me know how is the best way to do this for the multiple customers.
Add a CustomerID parameter to the report. Type Number. Set it to allow multiple values. In the report's record-selection formula, add the following:
AND {table.customer_id} IN {?CustomerID}
You probably want to group the report by {CustomerID} as well. In the group's footer, select Section Expert and check New Page After. This way each customer will start on a new page.

Problems with checking particular columns of uploaded data against the existing database

I have got an upload button on my webportal through which the customers can upload a csv file. After uploading the .csv file the csv data will be displayed on datagrid view on the screen, After uploading, the customer is suppose to verify data by clicking on verify button which basically checks the uploaded data have got the right data in particular columns against the existing database.What I want to do is to verify particular column like (productid) against the dbo.existingcustomers*. If the respective productid is present in thedbo.existing customer then status(column in the dbo.exisitingcustomers) should be populated with "ok" If the productid is notpresent in the dbo.exisiting then the Status(column in the dbo.exisitingcustomers) should be populated with "Please Check Your productid". After checking each row of the uploaded .csv file the system should display the data with an extra column named Status which will show the above messages for each row.Any help will be highly appreciated.I can upload the csv file and insert the data into sql server but I am having problems with checking the existing productid. As I want to make sure that the customers enterthe right productid which is present on my sql server, If they upload the wrong one which does not exist on the live database, they should amend it in order to proceed to next step. At present the customers have all the respective productid, I just want to check it if by mistake they typed the wrong productid which will save a huge amount of time*dbo.existingcustomers = table(sql server
I have got an upload button on my webportal through which the customers can upload a csv file. After uploading the .csv file, the csv data will be displayed on datagrid view on the screen, After uploading, the customer is suppose to verify data by clicking on verify button which basically checks the uploaded data have got the right data in particular columns against the existing database.
What I want to do is to verify particular column like (productid) against the dbo.existingcustomers*. If the respective productid is present in the dbo.existing customer then status(column in the dbo.exisitingcustomers) should be populated with "ok" If the productid is not present in the dbo.exisiting then the Status(column in the dbo.exisitingcustomers) should be populated with "Please Check Your productid". After checking each row of the uploaded .csv file the system should display the data with an extra column named Status which will show the above messages for each row.
Any help will be highly appreciated.
I can upload the csv file and insert the data into sql server but I am having problems with checking the existing productid. As I want to make sure that the customers enter the right productid which is present on my sql server, If they upload the wrong one which does not exist on the live database, they should amend it in order to proceed to next step . At present the customers have all the respective productid, I just want to check it if by mistake they typed the wrong productid which will save a huge amount of time.
If any one can help me to write a query which can sort out this issue.
*dbo.existingcustomers = table(sql server)
In general, you'd need to write code to cycle through the datagrid and execute a query to check each field - something like
select * from [dbo.existingcustomers] where productid = ?
Without further information about your database it's tough to be clearer.
Share and enjoy.
How many product id's are exist in the dbo.existingcustomers table? How many rows are exist in a typical csv file?
If user upload a file which contains more than 5-10 rows and you have not more than 100-200 product IDs in the table, the better way is select all IDs at once then search through collection of IDs in your code, because multiple SQL queries in loop is not a good idea.
Moreover, even if you have 1000-2000 product IDs in the table, you can use this way, but need to use more intelectual algorithm for looking ID in a collection of IDs, like binary search (for example, Array.BinarySearch in .net framework).