Questions tagged [clientscript]
The clientscript tag has no usage guidance.
87
questions
0
votes
0
answers
19
views
Netsuite how do you do if there are too much client script due to the bundles?
I need to add a client script to auto-fill some fields but the customer has already more than 10 client scripts running due to the bundles.
I tried to find one to update but they are locked.
I tried ...
0
votes
1
answer
35
views
Netsuite client script https post request unexpected error
I have a User Event and Client Script for my Netsuite system. I added a button on a transaction page. This code works on the User Event beforeLoad function, but for my client script button press ...
0
votes
0
answers
34
views
Add quantity for expense sublist on line commit
I have an expense report transaction where I am trying to sum the quantity field on the sublist and update a custom field (i.e. basically a running total that is updated every time a line is committed)...
0
votes
1
answer
33
views
NetSuite: Emulate Global Search
I'm curious if anyone has come across this question before.
I've been asked a few times if there is a way to emulate the Global Search functionality into another field.
I'm guessing Inline HTML, ...
1
vote
1
answer
77
views
Netsuite - Suitescript 2.X: Inbound shipment "items" sublist update
I need to update a sublist ('items') field ('receivinglocation') on inbound shipment entry.
When i create an inbound shipment from user interface, i need to update all item line locations from a body ...
0
votes
1
answer
50
views
how to use clientscript in module
I want to use clientscript coding in module, then call it from a page.
dose anybody know about it?
module A
Module A
public class sample
Public Shared page As New Page
Public Shared ...
0
votes
1
answer
55
views
clientScript() function in testcafe isn't working on all pages
According to Testcafe's documentation, I should be able to inject a clientScript into all pages: https://testcafe.io/documentation/402843/guides/advanced-guides/inject-client-scripts#add-client-...
0
votes
0
answers
70
views
I have created a client script, no error in the script but after deployment, while testing with record, the script is not running
I have created a client script, no error in the script but after deployment, while testing with record, the script is not running
1
vote
1
answer
203
views
NetSuite Get Description and Set Tax during Onchange "Line Items"
I am learning NetSuite,
The scenario I am trying to archive,
In an Invoice, When adding the line items, if the item description contains "non JP" then add tax value "193" else ...
0
votes
1
answer
423
views
Frappe: cur_frm.add_custom_button() does not add a Custom-Button
I'm creating custom-buttons in a Client Script. This code works:
// Buttons do appear, everything is fine
frappe.ui.form.on('Article', {
refresh(frm) {
frm.add_custom_button("Hello&...
0
votes
1
answer
1k
views
Netsuite: How to pass variable from client script to suitelet?
I am just a fresh beginner so forgive me for any silly mistake.
I have two codes, one for the client script page init and the other is for suitlet script. What I am trying to do is a form and a ...
0
votes
1
answer
3k
views
How to call script include from the client script servicenow?
Can anyone help me with how to call the script include from the client script?
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
...
1
vote
1
answer
919
views
ServiceNow - Call a client script from form button click event to save image and caption
I was trying to create custom feature in User(sys_user) section to Save a photo and caption to a custom table. I want to save the photo and caption and show all the uploaded photo as thumbnail along ...
1
vote
1
answer
360
views
Is it possible to track sublistChanged events in client script 2.0?
I want to know, is that possible that we can track whether the sublist button user has pressed is Add/Insert/Delete, after populating all of the mandatory sublist fields, under sublistChanged entry ...
0
votes
1
answer
161
views
Disable confirmation popup in Dynamics 365 when record is deactivated
When one deactivates a record Dynamics 365 is showing a confirmation popup.
Is there any chance to prevent this confirmation to popup? I've done quite alot of research but was no able to find any ...
2
votes
1
answer
658
views
Issue in running a client script in NetSuite suitescript 2.0
I have a client script in NetSuite 2.0 which is already running ,but if I am making any changes to it, the new changes are not getting reflected the script is still running with the old code.
Even if ...
0
votes
1
answer
307
views
NetSuite Client Script 2.0 to Disable Expiry Date Sublist Field on Inventory Detail record
I'm trying to disable the display type of expiry date field on inventory details. The current client script is working for 1st line only or 0 index. I'm trying to completely disable this field for all ...
0
votes
1
answer
198
views
Swal alerts not returning value's in netsuite client script in saverecord function of suitescript 2.0
The code below is a saverecord function in netsuite which needs to get OK or CANCEL button having true or false value to submit the suitelet.
function saveRecord()
{
swal({
title: "...
0
votes
0
answers
278
views
https.post.promise “.then” not called
Hello – I hope someone could provide some advise or feedback.
Summary: I am trying to create a custom button (UE script) on Sales Order record. That custom button executes a function from a client ...
0
votes
1
answer
2k
views
How to redirect to Custom Record in Create mode in SuiteScript 2.0?
I'm trying to redirect to a Custom Record from a custom Button from Sales Order. Button function is given below, I need to get rectype(496) parameter by passing the Custom record Id (...
0
votes
1
answer
149
views
Highcharts- Creating a dynamic x-axis to maintain bar spacing with less data points but maintain x-axis "width"
I'm looking for a solution to add to my clientscript in actuate opentext studio. In the first image I have the columns of the grid lining up with the table bars; this is for a 28 day period. I need a ...
1
vote
1
answer
74
views
Calling Javascript function in C#
How am I able to show an alert to the user on a Web Application in C#? I'm trying to do so by calling on a JS function within the C# I'm writing, but am unsure of how to do so since Page.ClientScript ...
-2
votes
3
answers
560
views
NetSuite : TypeError record.createCurrentLineItemSubrecord is not a function?
I'm getting
"TypeError _invadjtransRecord.createiewCurrentLineItemSubrecord is not a function"
When trying the below code:
var _invadjtransRecord = nlapiCreateRecord('inventoryadjustment');
...
0
votes
1
answer
1k
views
Clientscript how to use it to get value from a sublist
I have this suitelet, which has a form, makes a search filter and fills a sublist, this sublist has a text field and must be filled with a number, to assign to that row the value.
//, ...
-1
votes
2
answers
693
views
How to get correct client IP address. client IP address coming as some random value while using Javascript RTCPeerConnection?
I am trying to get client IP address using javascript (WebRTC).But,I am getting some anonymous values on a few machines. Example:"04e6e16d-5ca8-4643-bccd-f870c84d4aed.local"
I am not sure, what went ...
0
votes
1
answer
166
views
How to use nlapiAddMonths to set a field value 2 month after a trandate? (in client script)
i m trying to populate a custom field with the value of the corresponding trandate(2 months ahead) e.g if the trandate is 13/05/2019 then the custom field should be 13/07/2019. I am using ...
-3
votes
1
answer
1k
views
Redirect client script to a record type
How do I get redirected to a record type after executing a command in a client script. Explaining better, I'm in a client script, and after clicking a button, a new record is generated in another ...
1
vote
1
answer
303
views
I have a custom Address Book field on sales orders for freight bill purposes, but I can't source the full address to a text field in NetSuite
We frequently need to have a third address drop down on our sales orders indicating where to send shipping bills. To accomplish this, I have created two custom fields, custbody_vcc_3_p_b_a and ...
0
votes
1
answer
879
views
How to just initialize the record without trigger "validateline" function in SuiteScript?
There are 2 fields in the Invoice record of NetSuite.
One is the poUnitCost field, the other is the poTotalCost" field.
The value of poTotalCost equals poUnitCost multiply quantity.
(Formula: ...
0
votes
2
answers
366
views
Non-invocable member 'System.Web.UI.Page.ClientScript' cannot be used like a method
Non-invocable member 'System.Web.UI.Page.ClientScript' cannot be used as a method.
I am trying to Freeze a button upon click so the user won't double-click accidentally causing duplicates entity. ...
1
vote
1
answer
4k
views
ServiceNow: JavaScript TypeError: Cannot read property of undefined
I am writing an onChange Client Script in ServiceNow and having issues with a Javascript error on the front end client. I keep getting a TypeError: Cannot read property 'u_emp_name' of undefined. the ...
0
votes
2
answers
2k
views
Why we have to use $.noConflict() in jQuery?
I know we are using $.noConflict() to overcome other plugin conflicts.
For example, if some new plugin use the $ symbol as a variable it will override. so, we are using like below
var $j=$.noConflict(...
-1
votes
1
answer
2k
views
Netsuite - How to populate sublist based on item & location search
So I'm trying to create a custom Reallocate Items Page with the main difference is the data in the Expected Ship Date. What I want to do is, to populate the sub-list based on what is in the Item ID ...
3
votes
1
answer
4k
views
ServiceNow UI Page GlideAjax
I created a form using UI Page and am trying to have some fields autopopulated onChange. I have a client script that works for the most part, but the issue arises when certain fields need to be dot-...
0
votes
1
answer
82
views
Script message not showing
Page script keeps on running, doesn't shows message "Your request has been submitted successfully" as mentioned in my below. Can anyone please help what I am missing here?
protected void ...
0
votes
1
answer
2k
views
Suitelet - redirect page to custom transaction form
I am new to Suitelet. I have created button called RMA in sales order form and created custom transaction form called RMA-Closed.
I want to redirect to transaction form when I click the button.
...
0
votes
1
answer
2k
views
ServiceNow: Calling onSubmit in a callback function leads to infinite loop
Here I am comparing 2 variables for dates start_date and end_date and allowing to submit the form only in case end_date is bigger than start_date, else rejecting the form to be submitted, but while ...
0
votes
0
answers
57
views
Page is postback after click handling for the chart
I created a Protected PostBackString As String on the top of my VB.NET page. And then i called <%=PostBackString %> from my javacript which is shown below.
$.ajax({
...
0
votes
1
answer
38
views
after adding querystring parameter to web application method fails
I have the following code that opens a hyperlink in a different frame from code behind using the function ClientScript.RegisterStartupScript. The hyperlink was priory retrieved from a database and ...
-5
votes
1
answer
511
views
How to use getElementsByClassName in JavaScript? [duplicate]
Here's the HTML code:
<html>
<body>
<div id="wrapper">
<div id="c_wrapper">
<div class="member">
<form name="f1">
...
0
votes
1
answer
1k
views
The value is not retained with Page.ClientScript.RegisterHiddenField in asp.net
In Asp.net c#, with this syntax:
Page.ClientScript.RegisterHiddenField("hfFileName", Value);
I can define a Hiddenfield:
1) Why in this code , the value is nothing:
function pageLoad() {
...
0
votes
1
answer
1k
views
ClientScript not working properly on class C#
I want to deploy a script on C# which usually uses methods like:
ClientScript.RegisterStartupScript(GetType(), "script", "Details('" + hdnId.Value + "');", true);
However I wanted to make a class ...
-1
votes
1
answer
118
views
static void Client script
I have a method in an aspx web page which is accessed from another non webpage .cs class. This method contains a ClientScript to create a popup.
I get this error below when trying to make it a static....
0
votes
1
answer
4k
views
Create modal popup in NetSuite
I have a requirement to show modal popup on in netsuite on button click.
currently I open a window using client script
var url = nlapiResolveURL('SUITELET','customscript_id','customdeploy_id',null);...
0
votes
2
answers
428
views
Can't call alert from Server Side
In Web Forms project i need to open alert.
I try to do it like this
var script = Page.ClientScript;
if (!script.IsClientScriptBlockRegistered(this.GetType(), "...
1
vote
1
answer
265
views
Using dependencies from yii client script in JS frameworks
I use Yii Client Script for rendering, loading Javascript and CSS files.
I am going to use karma - runner to test my Javascript modules
There are many libraries and dependencies that set in Yii ...
0
votes
1
answer
63
views
Yii pack generated js code to external file
Some yii widgets generates js code (for ajax update or etc.) and this code yii puts to the end of the page.
Simular behavior have yii's ClientScript::registerScript() function, i want yii to put this ...
0
votes
1
answer
2k
views
ClientScript.RegisterStartupScript pause execution rest of the code until close window
I'm using
ClientScript.RegisterStartupScript(this.GetType(), "pop", newWin, true);
to open popup windows.
I have some code lines after this line. But I need to execute those code after closing ...
0
votes
1
answer
255
views
Register ClientScriptBlock only once during multiple postbacks
In my asp.net websites I regular uses the following methods before actually adding either custom pieces of script or registering a js file:
IsClientScriptBlockRegistered(Type, String)
...
0
votes
1
answer
441
views
Calling javascript function from within code using ClientScriptManager
I have the following script tag included on the _layout page of my MVC application:
<script src="https://backpack.openbadges.org/issuer.js"></script>
This is used to issue badges on ...