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

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.

Related

SuiteScript - Create a popup link on a Purchase Order Line

I'm looking for a method to create a "popup" window link at transaction line level to display a list of sub-records, almost identical in nature to the Inventory Detail popup, but it would be a custom suitelet form.
So, basically I want to have a clickable line in VIEW and EDIT modes, where the user clicks on a hyperlink which will open a popup and display a list of ASN subrecords linked to the specific Purchase Order line.
There is a 1-many relationship between each PO line and ASN records.
I would envisage the "link" for each line would be a counter of the number of linked subrecords, and if zero, the link would be disabled.
Make a Suitelet that you call from its deployment.
Make a sublist field on the record type you're looking to put the popup link on.
Make a client script that is pointing to the record type you're looking to put the popup link on. In this script, hook into the line level sublist, and use something like <href> and/or <a> HTML tags to format the link in the sublist field you made in step two. You'll want to create the popup by specifying relevant parameters in window.open(parameters)

How to create a NotesRichtext item that is computed for display?

I know this is a common problem, and I tried a few solutions already, but the problem I have right now with my current code is that even though the attachments show in the computed for display field, I get the error "Note Item not Found" when I try to open them.
The form is built with two fields, in a programmable table that displays the editable one or the computed for display one.
The trick I found with Google's help was to delete the computed for display item in the queryopen event, so Notes regenerates the cfd item when opening the document. Visually, this works, as I see the text and attachments, but the attachments can't be opened.
Here is the code that removes the item in the QueryOpen of the form:
...
Set item = doc.GetFirstItem("dspDescription")
If Not item Is Nothing Then Call item.Remove()
...
Has anyone successfully achieved that functionality? Is there another way of doing this? I already tried with subforms, and because of the way the application is built, I need to be able to switch from editable to read only on the flick of a radio button, so subforms are out of the question as they can't be displayed dynamically.
Why don't you simple put the richtext item in a controlled access section and make that section editable / not editable with a computed for display formula. Select "always expand" and hide the section title, so that nobody can collapse it, et voila.
Regarding your comment: With this properties:
for this section in designer:
You get this result:
You see: No twisty, no "visible" section

How to add menuitem or button on 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.

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