Mi contenido
Comentarios
-
Thanks Samanthara, That was a typo in the forum message and not the real field name anyhow... As an FYI, it mysteriously worked for me the following morning without incident and have not had a problem since. Could have been a caching issue or something unrelated that was causing, but does work for me now as well. go…
-
Nope no luck. Anyone have any ideas? No matter what I try to do in the before load, the field does not set with the values even though I know there are two values coming back from the getSelectOptions call. If I set a normal text field it sets with no problem, but this multi-select refuses to set itself. Shows in the form…
-
Can you provide specifics on the record and field(s) that you are working with? I am working with both customer and supportcase (different searches and results but the same error in both) For a specific example, in the support case, the company field is a list record. If I specify the column as 'select' I get an error…
-
I am skeptical this can be made to work with current tools because I can't think of another place in the application where we do dynamic filering based on a multi-select. Thanks, -e Too bad. As a possible way to solve this, is NetSuite considering improving the 'Sourcing and Filtering' of list/record fields to support a…
-
Just to clarify, there seems to be a couple of different issues here. The search and the UI object list. For the search, you would get the company name as text, as: var companyName = searchresults[0].getText( 'company' ); Yes, that is the workaround in my opinion. There is the ability to set your rows by passing the entire…
-
I would prefer a generic "access error" page with a "go back" button I can send them to, but I think that's only reasonably possible with the SuiteFlow "Return User Error" action (the script (or workflow) needs to be run in Before Record Load). Well, you could redirect to a Suitelet which will display the error you want…
-
The unofficial task (page) ID for this for non-external users is CARD_-29. Hence nlapiSetRedirectURL(...) should work using a URL type of TASKLINK and that task link ID. Thanks, Yang Excellent to know this, thank you. Can you please make this official?
-
Well, I'm actually performing it in real-time if you will. We search for products/components and then if we find them for customers, we'll quote them and sell them. Because quotes require items that are in the item record, the thinking is to set them up as non-inventory items (mainly because 50% will never be bought), then…
-
For those who care, the only workaround is to perform snippets of the long running code as asynchronous calls. For nlapiRequestURL, this needs to be done as asynchronous For general scripting that is long, this needs to be done with a series of setTimeout(...) calls. Very big pain, especially when all works well on Firefox…
-
OK, changed the Status from testing to released and am now receiving the following: You do not have privileges to view this page But I'm coming in available without login and execute as admin so what privileges do I need?
-
you can use nlapiSendEmail with a textual email address, so it shouldn't matter if it's the anonymous customer or not. The sender needs to be a valid user, but the recipient can be any written string. Yes, I am doing that. My problem is that the "user" is coming into a suitelet as an anonymous user (not logged in), so…
-
OK, not that intuitive but you need to check 'All Roles' for audience. Not sure why that would be necessary if I am available without login and executing as admin, but it works...
-
The default browser behavior in response to the back button is to reload the page from it's cache which means there is no server request for the page (meaning the beforeLoad event is not triggered). Thanks, Yang Thanks Yang, I noticed this after the fact. My problem with this is that the cache seems to be whatever was the…en Get Session when a server side script error is thrown Comentario por censys_sl Oct 7, 2009 8:17AM
-
I believe it is EDIT_CUST_{internal ID of custom record} A more "portable" way to redirect to the new record entry screen is via: nlapiSetRedirectURL("record", "customrecord165") Thanks, Yang Thanks Yang. I read the docs wrong. I was under the impression that to use 'record' I needed a record ID to a saved record so was…
-
Are you using saved search e-mails or e-mail campaigns for this? Neither, I am using nlapiSendEmail to send out a notification based on a processed record (e.g. password reset, new purchase, expiring entitlement subscription, etc), and I want the email to be "from" the partner of the customer rather than from us directly…
-
Seems this needs to be incorporated into an IFRAME to do what I want which seems like a lot of extra work. 1. Would be great to be able to just set raw HTML (scripts, styles, etc included), right in the portlet window. 2. Would be expected that core script APIs would be accessible from this portlet directly. 3. Nice if if…
-
To be sure here after reading your code, you are trying to set this on transactions that have already been created? No, I am checking to see if it is a create situation. I only want to set the item field if it is new. I tried both using the form object sublist.setLineValue and the nlapiSetLineItemValue, both took an…
-
OK, that matches what I am seeing also. Did not try load record though seems like a heavy price in overhead just to get the form ID. Still perplexed at why a form ID is not exposed anywhere on a 'view' mode since we can (and do) manipulate fields in view for different forms assigned to different roles. NetSuite? Any reason…
-
Yeah I ran into this one. I discovered that nlapiGetNewRecord().getFieldValue('customform') works. Hi Olivier, Trying this with an estimate form and it is still returning 'null'. Does it still work for you?
-
Yeah I ran into this one. I discovered that nlapiGetNewRecord().getFieldValue('customform') works. Interesting. Thanks Olivier, will try that. Still, though -- this is a defect. NetSuite should be exposing customform on View. Clearly they know the form ID because they identify the form ID all over the links in the viewed…
-
Hi there i have done this on both the customer form and the sales order form, i have found that trying the retrieve the 'customform' value in view mode will always return null (but the value is returned in edit mode. I think this is because NetSuite do not consider you to be "in" a custom form when you view the record.…
-
Fields (on the main subtab) that are disabled via Client SuiteScript are submitted and hence available in beforeSubmit scripts because we automatically re-enable them prior to submitting the form. Thanks, Yang Thanks Yang, this is good to know. I need a bit more clarification however. 1. What do you mean by 'on the main…
-
Steve, You cannot set stored fields on existing records in a beforeLoad script. This is to ensure read consistency for existing records. Thanks, Yang Thanks Yang, saves me from knocking my brains out trying to figure it out.
-
Hi All, I have a suitelet with a button. In clicking the button i need to invoke a function. In which part of the script should i give the function? Following is the script. My function is not invoked. Can anyone pls help me? function addUsingSuitelet() { if ( request.getMethod() == 'GET' ) { var form =…
-
Try: var vals = new Array(92); // add elements to array to select more than one selection nlapiSetFieldValue('custrecord147',vals); The error, if I am seeing all your code, is likely due to NetSuite expecting to see an array (val.join) and erroring as a string does not have the property/method 'join'. However if this is…
-
Support for this (on the server) is coming in the 2009.1 release. Thanks, Yang Thanks Yang. Looking forward to it... Saves an extra loadrecord call...
-
Larsen, Thank you. Your answer really helped me. The only thing which i had to change is, I gave the 92 within quotes ( '92'). So it was something like this: var vals = new Array('92'); nlapiSetFieldValue('custrecord147',vals); Yes, known "bug" with NetSuite that is always needs a string... You have told to add items to…
-
Make the showFunction part of a script file (e.g. myshowfunctionfile.js) and save to scripts folder in file cabinet. Then: form.setScript([script_id_from_file_cabinet])
-
its like my old supervisor said - there's more than one way to skin a cat ... i figured out how to work around it, but i wish i hadn't wasted half a day realising that it probably wasn't me with the dodgy code :p ! Might be a workaround for your situation (which by the way, using your workaround is more efficient than…
-
UPDATE: Tried numerous other customer records and they failed also. So the error is more often than not. However, there are some records that load properly.