How can I hide a Siebel Applet button for a specific set of Views? - siebel

I would like to hide the Query button in an Applet, but only for a specific set of Views.
Is there a recommended way to do this? I'm looking for a flexible and easy to configure solution.

Even if you hide the query button, user will still be able to query using Alt-Q button on the applet. Do you want to prevent this as well ? Then you will have ot hide the button AND disable the query method as well.
In openui, you may be able to hide the query button using javascript. Or you could clone the applet, remove the query button, and show it in those different views. This is how some of us used to do this before OpenUI.
To disable the query, you will have to set CANINVOKE to false using applet user properties or applet scripting.

Related

How to turn on/off Hotjar dynamically without page reloading

I have a web application using Hotjar to track user's information and behavior while they navigate through it, but I would like to give the user the possibility to turn on/off Hotjar tracking.
The idea is to have a check button that would turn on when selected and off when deselected. I was thinking also that this action could use some specific cookies, that would tell Hotjar the tracking is on or off dynamically.
Is it possible? If so, is it possible without page reloading?
According to this position from HotJar support, it is not yet possible to turn off using events.

How to create a magnifying glass beside a form field in admin change form to run a script

I'd like to put a search icon (like magnifiying glass) beside a field in the admin change form to let the users to trigger a script to fill other fields on demand only. I have to avoid triggering any field event (blur, click, change etc) on this field because it has to be triggered under users request, according to their needs.
Django has its own magnifying glass icon/link for raw_field foreign key selection popup. Is it possibble to do something similar, where I would trigger the script upon the magnifying glass click. It will be just a JQuery to call a webservice and return values to be filled up on some other fields.
I found one working solution by putting a custom button as a field, but it is placed far from the field because its label (what seems weird for my purpose).
Let me know if this description is enough or additional information is needed.
example here
Tks.

Retool: Action button to open modal with container

I have a table in retool. I've added an "action" column with buttons and renamed them "edit". What I would like to do on click of the action button is to open a modal with the data in the row populated. A user should be able to see the values of the row, edit them and when he clicks "submit" it will send an update API call for that row's unique id.
We’re working on some new docs for modal components, but until then here’s what you can do:
Drag a modal component onto your canvas. It’s going to appear as a button that opens a model, but don’t worry about that just yet
Create a Javascript query in the query editor that opens the modal. If we’re working with the default names, your query would be modal1.open()
Configure the action button in your table to run that JS query on click
That’s a quick way to open a modal through an action button. In terms of what’s in that modal, you can drag any components you want and reference table properties. So if you wanted to display a user’s email, you could drag a text component into the model and set its value to table1.selectedRow.data.email.
The last thing to deal with is the button, which you probably don’t want since you’re opening the modal via action buttons. You can hide it by clicking on it, heading to the inspector in the right sidebar, and scrolling down to the “display” settings. Just put true into the “Hide when true” field and the button won’t show.
hello stack overflow family this is my first post.
we are facing same issue today so i used one trick for opening a modal in action, i run one query that query name is model_open and in success event i select modal open and this query is triggered in Action edit option ,
i hope my first post help you ... :)

Infopath 2013 Buttons

We have developed a form that is being used via SharePoint 2013. We would like the audience to be able to click on a list item to open up the InfoPath form and then when in the InfoPath form, press on the created buttons to load different views of the form and hide/show certain sections....without it being in Edit mode.
The premise being that the end user has an interactive form that is quick and easy to use upon loading.
Is there any way that a user can activate the rules applied to the buttons in Read mode or does Edit mode always have to be activated first?
Many thanks in advance for any hints or tips!
Well technically you can create a Read-Only form by making all the Pages Read-Only in their settings and use data connections to pull the data into the form fields you want.
So I would make a landing page with buttons that would change the view, run a query and set fields values that you want to display for each Read-Only page/view.

How can I create a button for a django admin action?

I have a django admin action say "refresh", I want to add a refresh button for each row in the admin list view. I can create button using format_html but how can I invoke "refresh" action when it is pressed?
I don't think admin actions are the best fit in this case.
Actions are
simple functions that get called with a list of objects selected on the change list page
With the buttons you describe however, you want to operate on a single row/instance.
Therefore I would simply create a custom url endpoint for your ModelAdmin which is called when you press the button and which handles the desired action.
This article has quite a comprehensive overview how this can be done in detail.