How to add menuitem or button on Netsuite - netsuite

Recently I built suitelet script and I want to execute that script clicking menu item.
Let me know how to add menuitem.
Otherwise I want to add button to execute that script.
For instance I want to add button on list of items.
You could be on items list page by Lists/Websites/Items.
There are already Edit View button and New Item button, but I want to add my own button.
Thanks in advance.

You add a navigation item by going to your Suitelet's Script Deployment record and adding an entry in the Links tab.
You can not script very many of the List pages, if any of them, so you won't be able to add your button here. You are able to add buttons to the pages for a single Record.
If you add your Link to the main navigation, that would seem to accomplish what you want as that navigation is available on every page.

Related

How to change xpage form for new document?

Right now I am working on a Xpage which displays data from a domino document. Based on the form of the document different fields will be displayed.
Now I want to create a "New" function. My idea here is to set the view I am previously using in edit mode.
Additionally, I want to add a radio button which enables a user to choose the form of the document he wants to create.
Based on this radio button the document form should change which should result in the elements displayed on the page changing too.
Overall if I switch between the radio button options and hit save, a new document will be created with the right form.
Yet my problem is that my elements in my view won't change dynamically. So if I switch my form there will still be elements/controls displayed for the default option but not the selected form.
My idea was to create an onChange-event for my Radio Button Group.
My questions here would be: How can I change my formValue for the Xpage (new document) and then reload it with the new set value?
Thanks for your explanation.
I understand you have one XPage suitable for multiple forms, I assume using a Switch control and custom controls per form. About the New button, you could try first to have 3 New buttons, each for a separate form, and you create a URL like yoursite.com/xpage.xsp?action=newdocument&form=someform
When the user clicks the button, your page can read the parameters (param.action and param.form) and act accordingly. Or do you intend to update the current page using partial refresh, as a single page approach?

Is it possible to attach event on the *opening* of the context menu?

I am developing a WebExtension and as you know it is impossible to inject content script on chrome://* pages and https://chrome.google.com/webstore/*. I have a buttons in a context menu and for correct UX I would like to drop my item from context menu on such protected page.
According to the documentation I can handle click on my context menu item, but looks like no way to check the url of the page on the moment of right mouse click without trying to inject content script into every page?
As a workaround I have a code that checks url after click to the menu item.

Hide standard Edit/Remove button in Netsuite - How can i hide default netsuite buttons (Edit, Remove) from list

Hi fellow netsuite gurus,
My custom page hosts a parent record and in it i have a item sub list in a Child record. The problem happens when user tries to edit the line items by clicking on standard edit/remove buttons available on line items in edit mode. I have tried unchecking "Allow child record edit" and "Show Remove" options in the child record settings. but for logical reasons in our program, we cannot uncheck these options. So now the question is:
Has anyone figured out how to hide these buttons using client side code or any other setup feature?
Here's a suggestion:
Edit the record:
In Child Records subtab, do not select a tab for the child records to hide it
Create a saved search:
Check AVAILABLE AS SUBLIST VIEW.
In Results subtab, set OUTPUT TYPE as Result.
In Available Filters subtab, add the child record's field link to the parent record.
Edit the record, add the search as sublist view.
View the record and check the list, there should be no edit nor remove links.

TestComplete Menu Item

I am new to TestComplete. I have a question and it may be something impossible or too simple. I have a toolbar containg File, Edit, View, etc. I want to get one item (eg. Edit) to mapped objects. I can get the whole toolbar only. I want to simulate a click event on Edit. How can I do this?
As a rule, TestComplete does not work with menu items as with separate objects. It works with a menu object or even only with a menu's parent object and you can specify which item to select by passing the caption of this item to the corresponding method of a menu object. For example:
objMenu.Click("Edit|Paste");
// or
parent.MainMenu("Edit|Paste");
Please find more details on how TestComplete interacts with menus in the Working With Menus help topic.

Sharepoint 2010 and DispForm.aspx and adding custom

I am looking to add either a button to the ribbon or adding a form action button control to a list item display form.
I would like to user to have the ability to email the detail of the list item currently being view.
So far....
I created a new DispForm.aspx ...and then added the form action button control. I set the action to a custom action....then SP2010 created a new Site workflow.
I can edit this workflow..but I do not get fields for the "Current Item". I think this has something to do with the fact that its a site workflow and not a list workflow.
I also tried to edit the code in the DispForm.aspx to change the GUID of the workflow in an attempt to start a list workflow with the button.
help?
What I did to get this setup is first create a list workflow.
All work below is done in SharePoint Designer. And I did not edit any pages just created a custom action that showed up in the ribbon.
You can do this by selecting list and libraries from navigation then selecting the list you want to add the workflow to. Once you select that there should be a "block" for workflows just click add a new workflow. With that you can design your workflow and you will have access to current item.
Once you are done with the workflow find the Custom Actions block on the List page (It is below the workflows block for me). Click some where in the block and on the top ribbon you should see Custom Action. When you open up that menu it gives you the option to select the type of action (Ribbon, DetailView, ...). Now just link it to your workflow you just created. (You may have to refresh the list to get the workflow to show up. If it still doesn't show up make sure you published it).

Resources