Add HTML input field to Advanced PDF of Netsuite - netsuite

I want to add a HTML input field to Advanced PDF of Netsuite. We have a requirement from client where we need to add an editable field to the Advanced PDF. If anyone has tried doing this previously please help. I want to add a textarea to the Advanced PDF.

The BFO Report Generator documentation has details on how to create PDF form fields.
http://bfo.com/products/report/docs/tags/tags/input.html
http://bfo.com/products/report/docs/userguide.pdf (page 57)
The code would look something like
<input type="text" name="address" lines="4" scrollable="no" />
However, take note that this functionality is only available in the "Extended Edition" of the Report Generator. I am not sure what version NetSuite licenses.

Related

Adding placeholder text in voucher code input Prestashop

I have some difficulty to add a placeholder text in my voucher input box.
The page can be found at the following link:
Order Page
The website is built with Prestashop 1.6.17.
I would like to add 'Enter voucher code here' to the white input box below the image, as shown in this picture.
I added a string - placeholder text- in the html with chrome inspect function:
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="" placeholder="insert voucher code here">
However I do not know where to modify in Prestashop as there a no such html pages to look for. Does anyone have an idea?
Many thanks
You need to edit themes/your_theme/shopping-cart.tpl and edit the voucher input.
Make sure you clear cache afterwards if you have it enabled.
Here is the default theme's voucher input. There is one than more input depending on your tax and price settings in the default theme.
Your theme may be different but it should be in the same file.

Can we add fields to summary section in purchase order

How can i edit the Summary section in the purchase order record i.e., can i add extra fields to that section
Screencast:http://screencast.com/t/B4WWUvQN
The basic answer is No. Not if you follow NetSuites guidelines about DOM manipulation. With that said, you can just a client-side javascript library to access the table (class:"totallingtable") that holder the TR's for the fields. I would not use the below code in production, it's just an example you can run in your browser console to see it work.
jQuery('.totallingtable').append('<tr><td><div data-field-type="currency" class="uir-field-wrapper"><span class="smalltextnolink uir-label " id="sit_custom_fs_lbl_uir_label"><span style="" class="smalltextnolink" id="sit_custom_fs_lbl"><a onmouseout="this.className=\'smalltextnolink\'; " onmouseover="this.className=\'smalltextul\'; return true;" class="smalltextnolink" onclick="return nlFieldHelp(\'TRAN_PURCHORD\',\'total\', this)" style="cursor:help" href="javascript:void("help")" title="What\'s this?" tabindex="-1">CUSTOM</a></span></span><span class="uir-field inputreadonly">FIELD</span></div></td><td></td></tr>');

Is there a way how to adjust HTML generated by xPage from document rich text field?

Is there a way how to adjust HTML generated by xPage from document rich text field? I have q document from which the rich text field content is displayed on xPage using computed text control. Solution works nice except, that xPages engine generates strange HTML from the rich text field. When displaying page on web using standard form, all texts written by default font and default size doesn't contain markup arround so on could use CSS to style it. Not this way in xPages. Everything have tag around and its not funny seeing generated font tag around the div tag :-(
<div class="tcl-columns3-in">
<font size="2" face="sans-serif"></font>
<font size="2" face="sans-serif">
<b>Header text ...</b>
</font>
<font size="2" face="sans-serif">
<div class="tcl-box-outlined">
text ...<br>
</div>
</font>
</div>
Is there a way how to get rid of out of generated HTML?. I looked to html filtering option with ASF filter but it requires to adjust settings on filesystem, which not option for me ...
There are a number of steps you narrow down your problem. RichText -> MIME -> RichText is not a problem free relationship. As Carl pointed out, you can have a look at the raw RichText -> Mime conversion result. Does that look OK? Then you could use a Dijit ContentPane to pull that content in.
It also depends on what control you use to display the content. You might have different success with textbox and RichText editor. If you look for very high fidelity you either store your RT as mime (a property of a RT field) or use Coex Edit a commercial server plug-in
use a computedField in your Xapge, and set the value to something like this
var rt = document1.getDocument().getFirstItem("Body");
return rt.getUnformattedText()
using this technique you can also format the content the way you like as it is all text. I use this to display colored and formatted json and xml

Creating tooltips for each field in Sharepoint form

I want to create tool tips for each part in a form which employees have to fill in a share point web page. When users move the mouse cursor on each field (Title, description, department etc.) the related tip will be automatically became visible as a simple pop-up (tool tip) and summarize what they should write there. and when the mouse cursor is not on one of these fields there is no tool tip.
How can I design such a system via share point designer? I am not able use any add ons. I can't upload any additional things to the server. I have to make page based design.
I would be glad if you kindly help me.
Have you considered using field description?
This is SharePoint's default way of adding additional information to fields.
I couldn't find the ToolTip control in my SharePoint Designer 2007 Toolbox, so I looked on W3Schools.com for a standard HTML option and found that you can use the <ABBR> tag.
See http://www.w3schools.com/tags/tag_abbr.asp for the reference, but here's an example of a tooltip implemented on a SharePoint field title in a display form:
<td valign="top" class="ms-formlabel" style="width: 50px">
<H3 class="ms-standardheader">
<nobr><abbr title="The actual number of man-days effort expended.">Man-days (Actual)</abbr></nobr>
</H3>
</td>
Open up the aspx page for the form in SharePoint designer. Then you can use SharePoint designer just like Visual Studio to see the code. Try adding the "tooltip" attribute to the field controls within the form. There is a small possibility these controls will actually be written using XSLT instead of ASP, so be prepared to do some studying.
By default the display name of the site column becomes the tool tip for that field.

SharePoint - Custom Dataview - Link Rendering Issues

I have a custom SharePoint page with several dataviews. The dataviews essentially filter documents matching a certain criteria from a document library and display a link to the document along with some other meta data.
The problem I have is that when a document has a single quote in it's title, the character is being rendered as ' and invalidating the link. This is the code within my custom page that is displaying the invalid link.
<A onfocus="OnLink(this)" HREF="{#FileRef}" onclick="return DispEx(this,event,'','','','','{ddwrt:ListProperty("DefaultItemOpen")}','{ddwrt:MapToControl("", string())}','{#HTML_x0020_File_x0020_Type}','','{ddwrt:GetUserID('CheckoutUser')}','{$Userid}','{ddwrt:ListProperty("ForceCheckout")}','{$FieldIDA5KNTB}','{ddwrt:CurrentRights()}')"><xsl:value-of select="ddwrt:UrlBaseName(string(#LinkFilename))" /></A>
Does anyone have any thoughts on how I can ensure the #FileRef variable is encoded correctly before being rendered?
Many thanks in advance :)
you need to use the ServerURL or EncodedAbsUrl properties, this guys written it out already:
Itay Shakury's blog

Resources