Google script to test for selected menu item - menu

A google script (.gs file) problem: I created a custom menu with several items in my google spreadsheet. When I click one of these menu items, I want to call a function (that part I've done) that can test for / determine the name of the menu item I clicked. This way, I can vary the logic based on which menu item I selected. A little help? Thanks!

Related

Add a Report Menu Item and Disable based on Status

I added a report menu item to the Inventory Receipts Reports menu using the Actions sub menu under Screens in the visual editor as shown below. I want to Disable/Enable this Report Item from the Reports list based on the the Status of the Receipt transaction. I used to do this via Base.report.********. ***** being the result I wanted to achieve. Base.report is no longer valid. Report is no longer a choice in 2021R1.
How do I achieve this in 2021R1?
In the layout editor there is the conditions section, where you can specify the condition in which you want to disable the button.
This condition would then be available in the disbaled dropdown, and when it is true the button will be automatically disabled

Select item from website dropdown at random - puppeteer, nodeJS

I want to implement the feature to select from a dropdown menu on a website but I can't seem to be able to find the correct selector to query such that it selects a random item from the dropdown.
example of the dropdown I want to randomly select from
https://www.slamjam.com/en_GB/man/footwear/sneakers/low/nike-running/air-tailwind-79-sneakers/J166713.html
I can get it to click on the dropdown and bring the in-stock sizes but I can't get it to automate choosing a random item from the dropdown list.
In the past, I've been able to select from a Google Forms dropdown and a regular website that had basic dropdowns where I could choose the selector and the value with ease - but on this website, it doesn't seem that straight forward.
I want it to be able to just choose a random option from the dropdown if there are any available.
This code will select the first item that is not selected:
await page.waitForSelector('#select2-select-prenotation-container');
await page.click('#select2-select-prenotation-container');
await page.waitForSelector('.select2-results__option[aria-selected="false"]');
await page.click('.select2-results__option[aria-selected="false"]');
Keep in mind that there are many disabled items on that list.

Outlook web addIn dropdown menu

I have created the Outlook Web Add-in project and trying th create the dropdown menu by following the link under
https://github.com/officedev/outlook-add-in-command-demo
It seems that dropdown menu just take static list. What i want to do is i have webservices which is returning some destination and link of that destionation . I want to display the list of all those destination under the dropdown and by clicking one of it, it opens the link into task pane.
Any tips ? how to display from webservice in dropdown menu.
It is not currently possible to dynamically populate the dropdowns, your best bet would be to have a single taskpane action, then render a selector page that dynamically shows the available options, then navigate to the page associated with that option. Feel free to upvote this User Voice suggestion to let us know that this feature is important to you.

VBA - MultiSelect in a DropDown

I have a Requirement Where a bundle of Items needs to be displayed in the Drop-Down List. The Problem for me is, because there are so many Items inside it, I need to Use Combobox over List-Box. The Reason for that is, if I know the name of the item, I can type in the search box of the drop-down and get my Item, Combo-Box allows you to do that. But the List Box doesn't allow the User Input.
Now, Because there are some which names cannot be remembered, I need to use the Scroll bar in the drop-down to pick up the time. This is hectic, to select a single Item. I would like to have the facility of Using a Multi-select in this case.
So the Requirements are below:
1) A Drop-Down that allows the user to type in part of the Input(Say Ref for Refreigerator)
2) A Drop-Down that allows the Multi-select.
Obviously, I don't want to have two drop-downs Splitting the data.
I am open to other Suggestions.
Please Share your thoughts.

Custom column in list

Can any one tell me that, Is is possible in wss to have our custom column in a view of list. The way how we are adding edit and delete column in asp.net grid by setting autogenerateedit button property to true. I have to write my custom login on click event of that button. This action is going to be common for all list items.
Thanks
Sachin K
I am afraid that it is not possible out of the Box in SharePoint (WSS / MOSS). If you want to have such an option, you might need to create a Separate page that will have code to do the opertion. Try out the SPGridView and SPDataSource.
Else I would suggest (Recommend) you to have a look at the DataSheetView option provided by the List, it will list List item details as all editable format, like Excel sheet.

Resources