I need few suggestions/workarounds. I am having an issue on user experience of ngx-bootstrap inline datepicker.
If the user selected the date range on the same day, some user only click once. The problem is bsValueChange only emit when click twice. So when the user click the apply button on the screenshot, it applies the previous value. What i want to do is if the user did not click twice, i disable the apply button but the v5.3.0 does not have an event emitter for that situation.
Thank you
enter image description here
Hi I would suggest you add some external buttons with some predefined date ranges like in here. quick dates with buttons
Then you can just hook it to a click event and in the method you set the bsValue input to [m().subtract(0, 'days').startOf('day').toDate(), m().endOf('day').toDate()]; where m refers to momentjs.
Related
I have an Access form with a couple of buttons that I want to disable based on the drop down selection of another field.
When the Status dropdown is set to "Closed" I want the "Add" buttons to be disabled, disappear, or inactive for people to use. I also need the buttons to be reactivated if the job is reopened.
I thought I would use the OnCurrent attribute but so far I can't figure out the correct code to make it happen.
Thank you.
Place code in form Current as well as combobox AfterUpdate events.
Me.buttonname.Enabled = Me.comboboxname <> "Closed"
Or use Visible property if you prefer.
Is there any way to know the previous active tab in tabset.
I am using ngxTabset, I need to know the previous active tab is there any way to get it
When a tab is selected you could listen to the (selectTab) output. This will give you the current tab. If you store that value into a component property like previousActiveTab you could use the value of this.previousActiveTab the next time (selectTab) is triggered.
In ng2-smart-table when user add data and instead of add data clicked on cancel button and again clicked on add then it shows old field data.
I need to set that when user clicked on cancel button, His field data must be clear.
Demo
I have searched a lot but I didn't find any help and I have also checked in it's doc and they are not providing it's event.
In the ng2-smart-table doc, there is no any event for this. If you want then you might update it's node-module file.
Make sure after update that you will not get it changes when you make a build of the app.
I have an HTML table showing my mySQL database.
I frequently need to change the content in the "current" field, which is the last column, adding and subtracting. The current number for any is "0". I would like to click on a cell and update the number by either adding or subtracting from the current number in the field.
I would prefer to click on the cell and be prompted with a popup dialogue to add or subtract to that particular cell (field).
Here is my link: http://www.logicpkg.com/login.htm
Login: admin
Password: demo
I need help and I've come so far.
Thank you.
Erik
Try using jQuery UI for the dialog box and jQuery's ajax functions to update the cell.
You might be able to put an onclick javascript event on the cell and pop up a dialogue box. Based on user input, set a hidden field with that value and do a submit(). Update your database and redisplay the page.
I have form that displays information on a project. Most of the fields on the form are bound to a Project table and display and update as bound fields do. However, I also have 10 checkboxes that come from a ProjectAudience table. Only if the box on the form is checked, is there is a matching record in the table. Therefor, I need to insert and delete records as these boxes are checked and unchecked.
I can do it at the checkbox level with the AfterUpdate event, but that would require 10 different events. I looking to do it at the Form level by deleting all records in the ProjectAudience table for that project and adding in the checked ones.
Basically, I'm looking for the opposite of the Form_Current event that will fire when either the record navigation button is fired or the form is closed. I'm trying to avoid either writing my own navigation buttons or adding a "SAVE" button to the form that the user must press. I want something automatic that will update this table when the user navigates away from the record.
Based on a comment below: Any combination of boxes from none to all can be checked not just a single box. Therefore, it is possible that I would wipe out all records and not insert any back... or add 10 records if every box was checked. (Also, I am using Microsoft Access 2003)
Have you considered adding these checkboxes to an Option Group and using events from that group?
EDIT re Comment, Alternative approach, do not use an option group, but add code to an event line for all relevant options.
You do not need code for 10 different events, you can set the event line for, say, On Click to the name of a function, let us say:
On Click : =TestMe()
Event Line http://ltd.remou.com/access/EventLine.png
You then need a function:
Function TestMe()
MsgBox "You clicked " & Screen.ActiveControl.Name
End Function
You can use the BeforeUpdate method. However, if only the checkboxes have been changed this event will not fire since the record to which the form is bound didn't change.
I would advise to link events to the checkboxes. Create a function UpdateCheckbox(CheckboxID as integer) that does what you want and put this in the 'OnClick' event from the ckeckboxes: =UpdateCheckbox(1). Change the 1 for the different checkboxes.