Questions tagged [clientscript]

86 questions
1
vote
1 answer

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 field ('customlocation'). I've tried to do that…
1
vote
4 answers

Can't get no javascript to execute on an ASP.NET user control

I'm trying to do the simplest thing, to show an alert popup through javascript from my code-behind of a user control (ascx.cs). I've tried protected void btnSave_Click(object sender, EventArgs e) { ScriptManager.RegisterStartupScript(btnSave,…
Peter Evjan
  • 2,423
  • 3
  • 32
  • 50
1
vote
1 answer

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 other tax. My Question: How to fetch the description of line item when…
NooB Gamer
  • 115
  • 1
  • 10
1
vote
1 answer

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 point of client script 2.0. (For e.g.): /** …
1
vote
1 answer

Setfocus() in master page

I have the set focus for a property which I am trying to use in the masterpage but I am unable to do so. public partial class Site1 : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { …
user175084
  • 4,550
  • 28
  • 114
  • 169
1
vote
1 answer

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 isn't being recognized. Do I need a different…
CDA the Programmer
  • 87
  • 1
  • 6
  • 20
1
vote
1 answer

Set focus on an asp.net control on Page Load

I want to set focus on a control when page is loaded. I wrote this code but not working.. protected void setFocus(System.Web.UI.Control ctrl) { string s = "