SuiteScript - Sublist "Refresh Button" - suitescript

Just wondering if somebody could clearly explain the functionality behind the "Refresh" Button when adding to a sublist on a Suitelet.
What action is triggered when the User clicks this button?

As per NetSuite help: (NetSuite help link)
Purpose of refresh button:
...to auto-refresh the sublist if its contents are dynamic. In this case, the sublist is refreshed without having to reload the contents of the entire page.
Hope this helps. Please mark this answer as correct if this is what you are looking for.

Related

Automatic page refresh even we navigate to another page

i have a problem in page navigating. please help me to solve out.
in one asp.net page forexample Page1.aspx i have dropdown when we select an item in dropdown that would display in a label. Then we navigate to another page from page1.aspx to page2.aspx by clicking linkbutton in page1.aspx. Again if i come to page1.aspx that previously selected value of dropdown should appear in label.
please help me.
HTTP is a stateless protocol. This means that it'll forget anything that you don't tell it to specifically ask it to.
When going back to Page1.aspx, your program has no idea what was selected before.
In terms of persisting user choices, you should look into storing them in Session ( or alternatively, cookies ) and checking for a pre-existing choice when returning to Page1.aspx.
If you have a saved value for the user at that point, you'll be able to set the correct value during the Page_Load event.
If it is like a wizard, I suggest you use a wizard control in the same page.
here is an example,
https://web.archive.org/web/20211020103244/https://www.4guysfromrolla.com/articles/061406-1.aspx

Flex Method on Leave TextInput

Does anyone know of an event that can be called after a user clicks out of a TextInput?
I would like the user to enter information, and when they finish I would like to format the information.
Thanks in advance for any advice!
That's valueCommit event you're looking for. It fires when user changed text and set focus to something else.
You should use the onBlur event which occurs on an element when it loses focus, i.e when a user clicks outside that specific element

Jquery Tools Tabs: How to capture onClick event when selection is on current tab?

I tried to ask this question on the jquery tools forum, but didn't get a response, hopefully someone here can help.
Question:
It seems the onClick event does not get fired when user is already on current tab, I think that make sense for most cases. However, in my case, I do want to capture the onClick event even when the curent tab is already the selection.
Is there a way to do this?
Thanks!
You can always bind the onClick event to the anchor tags themselves rather than to the tabs events.

Update a field in a page, from another page in ASP.NET

I want to make a link on a page that when clicked, would open another page(tab). I have already done that.
Now, when the user clicks a link in the second page, I want the page to close, and a field in the first page to be updated with what the user selected in the second page.
As an example, I would like to achieve the same functionality as the Yahoo Mail address book. When you write a message, you click the "To:" field, the address book opens in a new window, you select the people you want to send the mail to, and then when you click "Done", those people's addresses are automatically added to the "To:" field in the first page.
Please give me some suggestions on how to achieve such a feature.
Thanks in advance
You'll need to use JavaScript to open and close the window. When the second window closes, handle the event and then you can use window.parent.document to find and access fields on the parent window.

Prevent a PostBack from showing up in the History

I have a page where I submit some data, and return to the original form with a "Save Successful" message. However, the user would like the ability to return to the previous page they were at (which contains search results) by clicking the browser's "Back" button. However, due to the postback, when they click the "Back" button they do not go to the previous page ,they simply go to the same page (but at its previous state). I read that enabling SmartNavigation will take care of this issue (postbacks appearing in the history) however, it has been deprecated. What's the "new" best practice?
*Edit - I added a ScriptManager control, and wrapped the buttons in an UpdatePanel, however now I'm receiving the following error:
Type 'System.Web.UI.UpdatePanel' does not have a public property named 'Button'
Am I missing a reference?
*Disregard the above edit, I simply forgot to add the < ContentTemplate > section to the UpdatePanel :P
If you put your "Save" button in an UpdatePanel, the postback will not show in the users history.
I would avoid if possible. A better solution would be to have a button that just returns them to their search results on the "Save Successful" screen.
The problem with the ajaxy saving and such is that you violate the "Back" rules that users expect. This user might want the Back button to go back to the Search page, but other users might expect that clicking Back would return them to the Add/Update page. So if another user tries to update something, clicks save, and then "woops, i forgot something on the update", they'll click back, and now they're at search results, instead of the expected Update page.

Resources