I have inserted data in table format in text editor of opencart. But this description is visible in the form of paragraph on front end of the store. How can I display product description in table form. In C:\Xamp\htdocs\opencart-2.0.3.1\upload\catalog\view\theme\default\template\product\category.tpl line 102
I am unable to convert this paragraph description into table format. so that the data entered in table format from admin should be displayed in table format not paragraph
if you get the html code of table in front then you need to use
html_entity_decode($description);
which convert you html tags into its respective.
Related
Whan I created a column in an interactive report that display a checkbox.
The header of that column is also a HTML code
But when I go in the "interative report "Action" menu and choose the column I what to display, the escaped HTML code is displayed.
There's a way to display another string instead of the HTML code ?
I have a field of type date in a table.
enter image description here
enter image description here
apex settings of the field as above. It won't let me change the format. this is the default format. When I query from Sql Workshop, I get the following error.
enter image description here
how can i solve the problem?
Please try out the below code
extract(hour from cast(sysdate as timestamp))
In the above code replace sysdate with your page items
I have a date field and a interactive grid. I am trying to generate the Interactive grid based on the value inputted in the date field.
I am trying to write the query as below :
select pap.effective_start_date , pap.effective_end_date
from per_all_people_f pap
where :SELECT_DATE between pap.effective_start_date and
pap.effective_end_date
Here, SELECT_DATE is the name of the Date field (datatype Date picker). I am writing a dynamic action on Change of Date field, and refreshing the interactive grid region.
But when I change the value in Date field, it doesn't return any rows.
I have done a similar change where my interactive grid was based on a dropdown. There I had to set the "page action on selection" to Submit, and it worked. But here, since it is a Date field, the "Page Action on selection" property doesn't appear on the page .
Can somebody please suggest, how can I achieve this.
You need to explicitly convert your bind variables, which are treated as strings, to dates.
to_date(:SELECT_DATE)
The format mask will come from the application properties, or you can be explicit with that, too.
I'd like to display a picture, that is saved as a blob, on a page that not binds the record.
I created a field in Table 79 of type BLOB and subtype BitMap.
Then I added the field TestPicture on Page 1 to actually insert an image manually. It gets displayed correctly on Page 1 (since Page 1 binds Table 79)
However, I want to display this picture on Page 5050 as well, so I added a record of Table 79, filtered the record and did CALCFIELDS.
OnInit():
recCompanyInfo.GET;
recCompanyInfo.CALCFIELDS("TestPicture");
I created a new field on Page 5050 and set the SourceExpr to the BLOB field TestPicture on my added record variable recCompanyInfo.
But it does not show the picture, instead it displays a greyed out text field.
What did I do wrong?
Edit
Dynamics NAV 2009 SP1, RTC
Quick solution is create the same field in table 5050 (Contact) in OnAfterGetRecord() trigger put your Code.
recCompanyInfo.GET;
recCompanyInfo.CALCFIELDS(TestPicture);
TestPicture = recCompanyInfo.TestPicture;
And display in page 5050 the Field TestPicture of the Contact Table.
I have a date item ' Order_TCD' in the form.
My requirement is when user enters Order_TCD it should be in the format:
DD-MON-YYYY HH:MIPM,
But the data in the report should appear in the format DD-MON-YY.
DD-MON-YYYY HH:MIPM
If Order_TCD is DATE data type, then while inserting the row you need to use TO_DATE and required format mask. You must specify the user to enter the date in the format DD-MON-YYYY HH:MIPM. And you need to handle it as:
TO_DATE('05-MAY-2015 11:05AM','DD-MON-YYYY HH:MIPM')
But the data in the report should appear in the format DD-MON-YY.
To display the date in your desired format, you need to use TO_CHAR.
For example,
TO_CHAR(Order_TCD, 'DD-MON-YY')
To set the format mask on the (datepicker!) item, simply edit the item and go to the "Settings" section. You can enter the format mask there.
To display with another format mask in the report, you can set the format mask in the column attributes. Example here for an interactive report.
You could also apply the mask on the column in the source SQL of course. Also note that you can set a global application date format mask in the globalization options of the application.