CFGRID Filtering with Checkbox - coldfusion

I have created (with some help) a CFGRID with a Search Filter. This CFGRID displays a checkbox to select an ID. This CFGRID is editable, being that the checkbox can be selected to be passed as a selection list the only problem is that after the filtering fires the Checkboxes are cleared. Is there a way to keep the edit data on checkboxes persistent when filtering, without using a cfquery to save the data? Has anybody ran into this situation? suggestions will be greatly appreciated.

Related

Oracle APEX form on table, don't reset table pagination after changing values through the form

I have a form on top of a report, and when the user updates values in the report, the form pops up, they make edits, and then click "Apply Changes". There are many rows in the report and right now I have pagination set per every 15 pages. The report is set to enable partial refreshes so the data updates right after the user clicks "Apply Changes". However, if I am on any page other than the first page of the report, it resets the pagination and brings me back to the first page. Is there a way to update the report but stay on the page I'm making the edit for? That way the user can immediately see the change they made through the form.
I was able to solve the issue by using a Dialog Closed dynamic action executing the following javascript:
window.location.reload(false);
It refreshes the browser after the user makes edits, and the pagination does not reset. This is a workaround because the Refresh dynamic action resets pagination. Again this is in APEX 5.1.3.
Which Apex version do you use? I've just tried it on apex.oracle.com which runs Apex 20 and - no problem at all. Once I edit some value in a form, branch returns me to interactive report, to exactly the same page which I left.
Check branch's Behavior - it is set to redirect to page or URL, target is page where the interactive report is; check other properties for the target. Its action should be set to "None" (offered are: clear regions, reset regions, reset pagination which might be set in your branch properties).

Django ModelChoiceField, thousands of options , not user friendly

I have a ModelChoiceField in my form:
customer = forms.ModelChoiceField(Customer.objects.all())
the problem is it renders as a drop down with hundreds of options and its difficult for users to find a customer, is there a way to overcome this???
You should use Bootstrap Select - which is a JQuery plugin that allows the searching of dropdown data by setting data-live-search="true" on the desired field.
You can also set data-size="5" which would only show the first 5 options in the immediate dropdown field, other items are accessed via scrolling.
(This will not help if the problem is the time it takes for this dropdown to load).
This is incorrect way to do what you're trying to accomplish here.
If you're displaying more than 20 or so customer then the UI would clutter and it would be hard to find the customer with ChoiceField. You'd probably want to index the data from your DB into a full text search engine such as ElasticSearch which is based on Lucene and then use AJAX to query particular customer by it's name or any unique identifier.
Needless to say here that instead of the ChoiceField, now your form will have a text field and as soon as user tries to fill in the name, the AJAX calls fetches the customers from ElasticSearch and renders the result.

How to save current sysdate in apex

I am using Oracle APEX to build an interactive report, in the edit page, there is a display only field called update time and the value is the last updated time. When I click submit page, I want to update this field to the current sysdate.
What I did is that I created a dynamic action which fires when page uploaded. The action changes the update time field to the current sysdate. However, this doesn't work. I am wondering if there is any other ways to do this? Thanks!
If you have a unique column in your table, you can create a procedure in page processing section and assign it to the submit page button. When you click submit button, procedure will update the update time field.
To make a page processing:
Go to Process section and click create button
Select PL/SQL Code as Process Type
Give a name to your Process
Write your procedure in field. You can assign a fields value like: update table set update_time = sysdate where ID = :P3_ID
You can define success or error message
Define your button to When Button Pressed section
Hope this helps.

Oracle APEX - Setting a value from Interactive Report column to a Item

I have created a dashboard with an interactive report (APEX 4.2), in the report i am displaying a info column which displays whether the record has an attachments or not. If i click the link it will pop-up a modal window (i am using jquery window to display the list of attachments in a classical report). But the problem is, i am not able to set the record_id in the modal window hidden item to retrieve the corresponding attachments.
Somebody, please throw a light how to set the value the dynamically from Interactive report to the value to the Hidden item attached to the modal window.
Thanks
Sudhakar
Here is a tutorial that helped me with this problem.

Dropwdownlist as filter for mutliselect

I have to do the following in SharePoint but I'm new to SharePoint.
On my screen I have a dropdownlist with businessunits.
I also have a multiselect with products.
Now when I select a businessunit in the dropdown, I need to display the corresponding products in the multiselect.
Can anyone help me?
This works, btw I don't how the controls are rendered in SP, but this works at least in chrome.
Demo