My Stuff
Comments
-
If you can, source your data in a saved search, which can be used to get the text from select lists. e.g. var salesrep_display = searchresult.getText( 'salesrep' ); alternatively, use the nlapiLookupField(type, id, fields, text) function which can be used to get the text from select lists. non of these are methods of…
-
How about this? var context = nlapiGetContext(); context.getExecutionContext(); It returns userinterface, portlet, scheduled, suitelet, etc Matt Perfect. Thank you. -Steve
-
Just came across this... Just to clarify... 1. So would it be safe to assume that global client script is best used in situations where you want ALL forms on a record type to run the script (rather than having to define the client script for each form you create)? 2. I presume that the global client scripts will run…
-
This is because the customer isn't determined until after the form is submitted based on your record lookup criteria defined on your online case form. OK, so what you're saying above is that even though there may be a customer entered in a field on the on line form, it is not validated until it goes through the lookup…
-
The short answer is sourcing of case fields from an existing customer does not occur at all on online case forms. I presume you are referring to the use case when an existing customer enters a case on your online form and they get auto-assigned to the case based on your lookup criteria? The best place to manually…
-
Have you filed case(s)? Problem is I don't know what to file. The problems arise and your answers point me to fix them. For example, Yang suggesting that internalid is a list so does not use 'equalto', yet this worked fine up until this last release and then I'm told to use a new field internalidnumber (note: I'm not sure…
-
The company field is set by the time your beforeSubmit user event scripts get called. Thanks Yang, just what I was looking for. -Steve
-
Hi, Steve - I'm not sure if the is the exact document you were referring to, but as of the 2007.1 release we are now providing a Documentation Revisions log in the NetSuite Help Center. Nice. Never knew this was there. From an overall functionality change log for the various areas of NetSuite, this looks great. From…
-
equalTo is an invalid operator for internalId because that is a select/list filter. Either use the internalidnumber (version 2007.1) filter or use anyOf or is as your operator. Thanks, Yang Hmmm. So why would this work 100% of the time up until this 2007.1 release? To reiterate an earlier message on this, NetSuite needs a…
-
Not sure what's causing your error. Could you post the script that fails. FYI - The internalid field is a list/record search filter. There is a new internalidnumber field coming in the Oct/Nov SLT that will allow you to filter on internalid as a numeric filter. Thanks, Yang Yang, I have wrappers around all the filters and…
-
That's odd. Try switching on type.toString() Thanks, Yang I did. toString() makes it work correctly.
-
Feel free to enter an enhancement request if you think this behavior should change. Would think based on logic that this would be correct behavior (hence: bug), not an enhancement. BTW - If you are concerned about this API returning a stale value during user event scripts you could always query for the realtime value of…
-
I think I understand now. Are you suggesting we expose the file's type or encoding in nlobjFile? If so that would be very easy to do and actually makes sense. Thanks, Yang Yes. Returned encoding for sure. That way the script can quickly determine if returned as base64 encoded then needs to be decoded. File Type yes, if you…
-
All media item types that are text should be returned as plain text. All others (binary) should be returned as base64 encoded text Thanks, Yang I understand when base64 is used and when it is not. I'm not sure you're understanding what I was suggesting. People select a file in the form and the scripts behind the scene do…
-
I'm thinking...: [LIST=1] [*]Client button that will invoke a SuiteLet via ajax passing record types and IDs [*]SuiteLet loads required records and performs merge [*]SuiteLet returns encoded merged PDF to client [*]client redirects output to a new window (have no idea if this is possible)[/LIST]Anyway, before I spend a ton…
-
Hi there, I'm having similar problems to what you've been discussing.... ...The 'fileContents' variable contains the csv data encoded to base64. Whats the best way to decode this so i have the data as a normal text string? Thanks for any help. This should have been fixed and should recognize that csv is a text file. Until…
-
Steve, issue 130320 was entered to track the problem you uncovered. This is tentatively scheduled for release later this week but please contact support and have them enter a case against this issue so that you are notified when it's released. Please ask them to open an enhancement to support this API client side as well.…
-
Update: I have been able to get the message returned to the client (scoping problem when using class instances - resolved). However I am still getting the error in the suitelet on the nlapiFile object that it can not find the function/method 'getValue'. Anyone have any ideas? I did a dump of the obejcts properties and none…
-
OK, have set up a suitelet which runs the loadfile code. On my client form, I do a little ajax call to this suitelet. The suitelet recieves the call correctly and contains the information I passed to it. However the response does not seem to communicate back to the client, even though all my debugs show it being written…
-
Steve, issue 130320 was entered to track the problem you uncovered. This is tentatively scheduled for release later this week but please contact support and have them enter a case against this issue so that you are notified when it's released. Please ask them to open an enhancement to support this API client side as well.…
-
This is completely untested, but you might want to try populating a field (or a DOM element) with the data you need in a beforeLoad script. However if the file is quite large the performance on that page may suffer for your workstations with small amounts of RAM. Another workaround is to potentially script the request…
-
Steve, BTW - did you enter that enhancement for supporting nlapiLoadFile on the client. Just a heads up that there is a 1MB limitation to the size of the document that can be accessed via this API. Thanks, Yang I did not enter the enhancement for client side as I solved it using a suitelet but I will. Good to know about…
-
You have access to them in an afterSubmit script via the nlapiGetOldRecord() function which returns a read-only snapshot of the record prior to the submit for delete operation. Thanks, Yang You folks think of everything... Thanks. -Steve
-
Hi, I am using a script on save event of the estimate form to create a new record in a custom record type. ... It gives me the alert1 but doesnot goto the alert2 also if I remove the statement- var record = nlapiCreateRecord('customization'); (and other statements related to variable record) it allows me to save the…
-
When in doubt you should use customer and it will auto-resolve to lead and prospect as appropriate. We will add support for the same shorthand for items in an upcoming release to make nlapiLoadRecord calls easier to script. Thanks, Yang Yep, per Mark previously, 'customer' worked. Thanks. -Steve
-
Also, 'Remove' is a misleading word as it relates in NetSuite corners to removing the relationship and not the record. 'Remove' to the average user implies deleting or removing the record. We've had users think they are deleting the record yet it ends up an orphaned record with this feature which I really see no usefulness…
-
What are people more concerned about, remove or attach? Because remove is a simple fix for us - we would add it as an explicit column in the sublist view, that you could remove and then apply that sublist view (only) to a particular role. Thanks, -e Hmmm. Any simple fix is good by me (one less thing to deal with). So…
-
We have resolved this over the years by including an inline html field in the before load. We apply it to create/copy, edit and view modes (so don't use UI side). We inject a script that then uses jQuery (or NS.jQuery) to run on DOM loaded (ready event) and finds the machine you want to hide and hides the table row…
-
Provide control over whether or not the "Attach" and/or "Remove" links/buttons are displayed on a subrecord form I would add also the 'New' button. The ability to view the list should be combined with the ability to create versus view only permission. That said however, I could also see the situation where you don't want…
-
I'm sure you could just find the id of the DOM element and set the style display to none using JavaScript on load. Yes, that is the last alternative I would use and have in the past to hide the 'Attach'. The 'Remove' links are a bit more problematic as they are on every line item of the list so would need to loop through…