My Stuff
Comments
-
Hi, I struggled with this issue some time ago. This solution worked with issue i had, hopefully it will help you too. var lineSubRecord = parentRecord.viewLineItemSubrecord('inventory','in ventorydetail',i); var bin = lineSubRecord.getLineItemValue('inventoryassignmen t','binnumber',i) var inventoryNumber =…
-
Hi, I have a similar problem, Please see attachments. Vesku
-
HI, Why you don't just create a before load script to sales order where you check the role and change the form when needed? Or is it possible to set Preferred Form in to Customer Center Role? Vesku
-
I made a thing like this but in on Project form. I used saved search : function getFilesInProject(jobId){ var arrSearchFilters = []; arrSearchFilters[0] = new nlobjSearchFilter('internalid', null, 'is', jobId); var arrSearchColumnsId = []; arrSearchColumnsId[0] = new nlobjSearchColumn('internalid','File',null); var…
-
Hi, If you load wanted record in browser you can check the itemtype field there. In basic inventoryitem it is : itemtype:"InvtPart" So, i think you need to use <recordtype>InvtPart</recordtype> Vesku
-
Thanks David
-
Why don't you execute client side script from button that creates the record, there you can use wait function. I had a similar case but with creating a new workorder.
-
Yes, it is in use, but in client side. What is your script doing that you need a delay in it?
-
(function(){ var el = document.getElementById("ok"); el.addEventListener("click", function() { alert ('Clicked!') }) }());
-
I have used setTimeOut in my code. setTimeout(function(){ yourcode here.... },10); Vesku
-
Ok, thanks, i will try that!
-
So, it is possible to add plain html code to suitelet?
-
Hi, I made this kind on functionality with postsourcing function in client script. function postSourcing(type, name){ if(type === 'item' && name === 'item'){ var loc = nlapiGetFieldValue('location'); // GET Location from main page nlapiSetCurrentLineItemValue('item', 'location', loc); } } This script is executed when item…
-
Do you have Return True in your script when validating the field? This is one of my scripts in use : function ValidateField(type, name) { if (name === 'entitystatus') { var entitystatus = nlapiGetFieldValue('entitystatus'); var itemCount = nlapiGetLineItemCount('item'); var customRecordCount =…
-
var invurl = nlapiResolveURL('RECORD','invoice',invid); var tranid = resultSet[i].getValue('tranid'); var content = '<a href="'+invurl+'">'+tranid+'</a>'
-
I get values from those fields like this: var location = nlapiLoadRecord('location',2) var subrecord = location.viewSubrecord('mainaddress') var addr1 = subrecord.getFieldValue('addr1') var country= subrecord.getFieldValue('country') var city = subrecord.getFieldValue('city') var zip = subrecord.getFieldValue('zip')…
-
In user event script you have to use nlapiLoadRecord. var rec = nlapiLoadRecord('salesorder',1); - loads sales order with internalid 1. Load wanted field : var dataInField = rec.getFieldValue('intercotransaction'); Vesku
-
Hi. I have met some problems when using nlapiSelectLineItem api. Is there always just one row in apply sublist? If not then you need a for loop to go through all the lines. Try just nlapiGetLineItemValue api to get wanted value. It is also possible that field you are searching is id not internalid. If you are using chrome…
-
No. I use firebug or chrome developer tools with those.
-
Hi, If you have multiple lines in your transaction, the problem is that you can't set linenumber with nlapiDisableLineItemField. This api just Disables whole column on form. But you can solve this like this : for (var i = 1; i <= x; i++) { var ip = nlapiGetLineItemValue('item','itempicked',i); if (ip == 'T') { var…
-
Amazing! david.smith
-
I have a little bit of a problem with Vendor Center. I want to give my vendors an access to PO:s with edit rights. I have created a form where showing everything as inline text except for the fields i want them to update to be used in Vendor center. If i use Standard Vendor Center role, there is no forms tab in the edit…
-
Hello, This Problem has been solved now. I can access to vendor center with suitescript. Script deployment status needs to be released. Vesku
-
Hello Carl, Yes i have but when i modify the Vendor Center role, there is no Forms -tab available in Manage Roles -> Edit. If i create new center and give access to vendor center with that then forms are ok, but now i can see all PO:s not just the PO.s for this one vendor that i have logged in to Vendor Center. Vesku
-
Hi, Sounds interesting because i have an script to do just this. This will close wanted field in all lines in timesheet. function beforeLoad(scriptContext) { if(scriptContext.type == 'create' || scriptContext.type == 'edit' ){ var fieldsToCheck = { 'hours0' : true, 'hours1' : true, 'hours2' : true, 'hours3' : true,…
-
No need for client script... function beforeLoad(scriptContext) { if (scriptContext.type == "view") { var suiteletUrl = url.resolveScript({ scriptId: 'xx', deploymentId: 'yy', returnExternalUrl: false }); suiteletUrl += '¶meters=' + '&recordid=' +scriptContext.newRecord.id scriptContext.form.addButton({ id:…
-
Hi, I Think you can use this in Suitelet to print page : context.response.writeFile(pdfObj, true); Regards, Vesku
-
Hi, Which operation in client script you are executing this ? Why not to use After submit on User Event script ? Vesku
-
Hi, Here one example. var searchId = null; var customrecord_gs_ico_search_mapperSearchObj = search.create({ type: "customrecord_gs_ico_search_mapper", filters: [ ["custrecord_ico_billing_company", "anyof", billingcompany], "AND", ["custrecord_gs_ico_billable_company", "anyof", billablecompany] ], columns: […
-
Problem was in pdf template... this works with code above : <?xml version="1.0"?><!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd"> <pdf> <head> <#if .locale == "ru_RU"> <link name="verdana" type="font" subtype="opentype" src="${nsfont.verdana}" src-bold="${nsfont.verdana_bold}" bytes="2" /> </#if>…