プロフィール

Avatar
ロック解除可能なバッジを表示 ロック解除可能なバッジを表示

censys_sl · Partner with Centricity Systems providing NetSuite solutions and integration since 2003 · Silver Medal

コメント

  • OK, I think I realize what's going on var rtn = nlapiLookupField('recordtype',id,new Array('field1','field2')); alert('rtn: '+rtn); // shows nothing (no data shown) alert('length: '+rtn.length); // displays 0 length alert('has data: '+(!rtn?'no data':'has data')); // says there is data I had a statement of: if ( !prefs ||…
  • Case# 667916 Transaction Line Item Warnings Note: I think this could be solved quite simply by separating the logic of the price level from the 'custom' selection. In other words, the 'custom' price level would be removed from the choice and a checkbox on the line put in its place. Then, the price level represents the…
  • I agree that this would be best handled with a procedural change or using some custom fields as described. If you REALLY want to disable the alert I can think of two ways to do so. Thanks John, 1) IE is the preferred browser by the client (and you can not prevent it, so firefox solution can't work) 2) Just a "bit" more…
  • Yang, I just got an update to my enhancement saying there is already an enhancement in there. However, I am not sure the description particularly identifies the enhancement we are looking for. Can you verify if this has been properly assigned? Enhancement 122830 - Customer would like to have an option to turn off the…
  • Steve, I have investigated this and I seems to get the correct value. Could you provide some additional details. What type of script is it ? Client Side or Server side? or any snippet of code that you run to see this problem? Thanks, Amit 1. Custom Record 2. Hyperlink field set to Inline Text in the form fields setting 3.…
  • I noticed that it works fine if I pass a single field name but if I pass an array it returns an empty array!
  • Has anyone opened up a case for this yet? I will. -Steve
  • You know, after looking at NetSuite's itemmachine script, it doesn't seem like a stretch to add in some simple override preferences to these (and others like out of stock warnings). Seems some simple "override quantity doesn't match rate warning" and "override blah" in the company preferences would solve *a lot* of…
  • Don't think you can do this Steve. But switch around your logic slightly and it will be smooth. 1. Set two custom col fields - custcol_qty (eg 2) and custcol_duration (eg 10) 2. FieldChanged script to set actual qty column based on product of the above cust fields (eg 20) Result: no alert - need to set pricing of item to…
  • Doesn't seem right. Has this ever worked for you? form should be an nlobjForm in the use case you described. In any case, I would recommend opening an issue with support so that we can investigate in your account. Thanks, Yang Yang, I only tried this for the first time when I posted the message of having a problem, so it's…
  • Actually I just double-checked and form should always be set although it really only makes sense when you try and access the record from the UI. Does this reproduce with other records or just this particular custom record? Thanks, Yang I have only tried this with a custom record. If I get some time I'll experiment with…
  • 3 - Did you know you can expose script parameters as company or user preferences? This can be done on the script parameter configuration page. Thanks, Yang Nope. And, as I investigated, I noticed that it references a "custom" tab on the General Preferences form. I do NOT have any tabs, just the standard override…
  • form is only set for beforeLoad events fired from the UI. Thanks, Yang That makes no sense. If I have a custom record, I thus have a custom form. I open the form, and it runs server-side beforeLoad. form object is undefined. What other situation is there? thanks. -Steve
  • Thanks for the quick response Yang. 1) name should be the same key (String) used to store the session value in setSetting('SESSION', name, value). Ahh, totally misunderstood this purpose. I thought I was grabbing the session id that NetSuite created for the login session. Now this brings up some more interesting questions.…
  • FYI, the getRoleCenter() is not providing me with what I would expect. Case: User is logged into the customer center. Clicks on "Enter Order" which loads an external Sales Order form. A server-side user event script set to "Sales Order" will fire prior to loading the form in the Customer Center. Using getRoleCenter…
  • Once you create a script parameter, a Custom tab automatically appears on your preferences page. Critical piece of information. Thanks Kate.
  • Which field? The error should indicate this. Thanks, Yang Don't know. It was a logged error by me and it got put into the title area so got truncated - old script. I need to fix the writelog to get it into the details. I'm just surprised it is erroring suddenly. I am screwing around on another script that is also doing…
  • Ah - I know what the problem is and thanks for bringing this to our attention. Please enter an issue and I will fix for 2008.1. Hint: it has something to do with your UE script executing as Admin. Please confirm and in the meantime, try testing for nlobjContext.getRole() if that will suffice. Thanks, Yang Case #656730…
  • Unfortunately this API call is not available in Client SuiteScript and furthermore since the values you set are only persistent throughout the life of the session, it is not really useful for online forms or other external (sessionless) pages such as externally hosted Suitelets because there isn't an authenticated user…
  • Another way to fetch them would be on pageInit via an nlapiRequestURL call to a Suitelet. That's a very good idea. Would save a lot of redundant coding in various client scripts as well... Contacts logging in on behalf of partners/vendors/customers definitely adds a wrinkle to the mix. Perhaps we need a getContact()…
  • You had two questions: 1 - nlapiGetContext().getExecutionContext() tells you whether the script is being executed from a scheduled script. 2 - User Event scripts are disabled during record read/write calls from other user event scripts. Thanks, Yang Thanks. I continue to learn...
  • Steve, Here's a thread that may help: Newsletter to employees Basically, Yang shows how to create new email template fields that you can use to enter data other than from the primary record (like customer) of the merge. You can read the data (which could be HTML code) from a custom record, and store in this custom email…
  • I may have answered by own question. Seems only fields that have changed are available in the beforeSubmit. Is this true? If so, it makes no sense since I many times on modified submissions, need to look at values that haven't changed to perform validation on fields that may have changed. Seems redundant that I would need…
  • That is true... only fields that are changed (submitted) will be available via nlapiGetNewRecord(). I would test for the event type (1st argument) of xedit to catch the cases where the entire record is not submitted (i.e. mass update or direct list editing). If you are prepared to incur a performance penalty, you can…
  • The nlapiLookupField API is returning the correct value. Try the following statement to log the execution note. var fields = new Array('email','firstname','lastname'); var values = nlapiLookupField('employee',ID ,fields); nlapiLogExecution('AUDIT','TEST2',values.email); Hope this helps Thanks, Amit Hmmm. I'll go try it but…
  • What do (or would) you use this API for anyways? Mainly, to workaround the current inline text issue :) Because the current API does not change inline text when you change the value, I've had to do standard dom methods to change the displayed text. This presents a problem since I only know the value (index) that's been…
  • The nlapiLookupField API is returning the correct value. Thanks, Amit OK, tested both direct (nlapiLookupField) and my wrapper. Both are working again - no change to code. Hmmm. Thanks for investigating. -Steve
  • Steve, We have identified this issue about setting the inline text field have created a defect for it. Defect number - 134175 Please create a support case for it and mention it to be attached to this defect number so that you will be updated of the progress. Thanks, Amit Thanks Amit. -Steve
  • You can do a lookup on custom lists. It works just like custom records (i.e. you have to specify the record type and record id). i.e. nlapiLookupField('customlist_widgets', 100, 'name') Is there an issue/case already entered for this that you are aware of? Thanks, Yang Not specifically aware of any issue/case but do recall…
  • You can search/lookup custom lists like any other record. The only fields available though are name and isinactive. ...and yet I can only retrieve the id so looking up by id to find the name is not an option :confused: If you want all the custom list values (name, ids) for a particular list, just do a search and return all…