I am working to achieve a flexible form region where a user can add additional forms. My tables are users and wallets, a user can have many wallets. The end goal is to allow a user to add as many wallets they would like in one page, to do this I will need to add Dynamic Forms. Normally in the MEAN stack, It is common for us to loop the form, so if a user clicks on a button it will generate a form and send the JSON Request as an array. I don't know how to get this done as I am a beginner in Oracle Apex
Related
I have a simple app that gets user input and when a button is clicked, the input is saved as an entry on the database. I'm thinking of creating another app that not only displays the same information (think of view profile) but also simultaneously lets the user edit the text that is displayed in the text field.
I'm guessing the solution is to have the text-fields be auto-filled by pulling the data from the database, and allow overwriting the data once the submit button is clicked.
Typically read and edit views are separated for good reasons like avoiding accidental edits, allowing different levels of access, things like that. But this capability does exist in Django via forms. If you already have a Form built for submitting the data, you can provide a page with existing data pre-filled by initializing the Form instance with the data - in the docs they call this a bound form. See this example in the docs to get an idea of the mechanics.
Currently I am working on a Qt project where I have created GUI for user registration form. Once user submits the form it redirects to a new page where user has to select one among multiple choices and record the choice in the database. There are tens of pages where user has to select a particular choice.
Right now I am storing user registration details in a table created using SQLite database. I want to store user choice for different tests in the columns next to the user registration. But since each page in Qt is written like different class, how can I synchronise/club all the test results with user registration form in Qt/C++?
Please note:
I have gone through following Stack Overflow pages.
1) SQLite and variable columns
2) C++ static class for data storing
It's a fairly simple idea, but I'm not sure where I should start reading.
All I want to do is add an extra action to a model in the Django Admin.
For example, I have a basic client management system, in that I have models for Clients, Companies, and Invoices to keep track of who owes what. All I want to do is add an action or button that when used, pulls information from the Invoices, Clients, and possibly Companies and then puts that information into a PDF document.
Any suggestions?
You'll have to override your admin templates for each of your models to add a button => Overriding Admin Templates
To generate a PDF define a view that is called once your button is pressed. Make sure to set the right permissions for your admin users.
I have a form on my Django site (made with ModelForm) where users can submit some data to create new objects or modify existing objects. These data, however, need to be reviewed by our staff before they're committed to the database, sometimes in bulk at a later date.
I know I can use .save(commit=False) in my form-processing view to return an object that has not been saved to the database yet. But is there a way to collect all of these objects from multiple user submissions for later review? Ideally, I'd have an admin page that had a summary list of submissions with "Commit" or "Reject" buttons.
There's no one-step-out-of-the-box way to do this (at least not built in to Django), so you'll need to create the logic yourself, which should be pretty straightforward. Some approaches to consider:
Have a second model/table to which your form saves, then create a view for the review functionality which copies any approved records into the first table.
Avoid having second model/table and add a approved = BoolField(default=False) field to your model/table. Set objects to a custom manager which filters for default=True so the rest of your code will only see approved records by default. Have a second manager that does the opposite, i.e. filtering for unapproved records. Using this second manager, create a view for the review functionality which flips approved to True for anything that gets approved.
If, with the second approach above, you want use Django's admin site to do the review, create a proxy for your model which by default uses the second manager which filters for unapproved records. Then you can use the admin's inline display and editing functionality to see records at a glance and click approve as needed.
I have a custom list created in Sharepoint 2007 and displayed by a content query web part.
I would like to
Show all items to general admin users except those items created by two users.
The two admin users need to see all items in the list.
The first requirement is easily done by adding a filter to the view on the created by field.
The second one is where I need help, is there a way to set the view of a list based on the user logged in to acheive the second requirement?
Or is this achievable another way?
Many Thanks,
Nav
If user has SPBasePermissions.ManageLists permissions, he will have permissions to view all items in the list.
If its not about permissions, but just which view which user sees by default, then it will involve some sort of coding :
Either you create webpart which will switch to desired view for desired user. (Involves coding, building, deploying)
Use content editor web part to switch with javascript - not that nice solution. (Because page would reload when you open it).
In the end I created two pages one called restricted and the other for all users configured the views on each page for each group of users. Then I restricted access to the 'restricted' page to the relevant users.
I used audiencing to display a link to the 'restricted' page to selected users