Oracle Apex 5 action button next to row - oracle-apex-5

I am new to Apex 5 and need some help. I am trying to build a simple application. I have a search field which selects data from a table. when the rows are returned I would like to have a button next to each row. I will try and explain what the button should do.
Let's use stock as an example. the row will contain a name and a number in stock, lets say items in stock is 10. When I press the button another report below should then open and add the name and a count of 1 for the row where the button was clicked and also reduce the count to 9 from the top row. If I click the button again the count should change on the bottom row to 2 and to 8 on the top row.
Here is where the other problem comes in. If I do a new search for a new item, it should still keep the below selected items and I should be able to click the button to add the new items to the bottom list. Only once I have selected everything should the submit button be pressed to do something.
I am not even able to paste any code as I have mostly tried just using the processes and dynamic actions. I am totally stuck with this. :|

Related

Element is not getting detected in Selenium if loads the table data using 'select number of rows"

Scenario is based on the 2nd column value I need to click on check box lie in first column.
Problem is by default table displays 5 rows of data, in this case the element is getting detected properly and check box works. But if the record is not in displayed 5 rows I have to use the number of item dropdown to load more rows in table in this case the elements has stopped detecting which is available in first 5 rows as well.
So far I checked no change in XPATH and page scrolls a bit so tried using Actions as well to move to the element and click but did not work.
Things seems to be working after using Actions/ActionChain instead of find_element()

How To Fill Textbox With Datase Using Filter Button

Program ScreenShot
Hi I am creating a program and would like to ask for help.
I would like to fill the data on the four textboxes shown when I press the "ADD" Button (the input would be coming from the dataset), but first, the user must input a value on the other textbox at the top (the Item Code to be exact), basically to filter it first.
Would like to know the code on/or how to do it. TIA
Add a search button. Once clicked, execute a query for the Item Code in DB to fetch the related record.
If record exist, Show Update button. Show the data in the textboxes. For this bind the textboxes with the datasource (i.e. DBSet used to fetch record from DB).
If record does not exist, Show Add button. Once data is entered into the textboxes, construct an insert query with the textboxes data and execute the insert query in DB.
Show the update or insert success/failure message to user.

VB.Net & RDLC reports: Display dataset records as fixed fields

I'm developing a rdlc report, that uses the data from a dataset, programmatically filled (from VB.Net). I need to display the data of the dataset as in the linked photo, so not in a classic "table" way, but each page of the report will concerne only one record of the dataset. Any cells of first page will be filled with the data of the first row of the dataset, the second with the second and so on.
Is it possible to display the report in this way with rdlc?
Further to my comment, I believe it's possible to do what you want using the table, with a bit of work on the layout.
Start by adding a table in the normal way, and get that basically working ie so that it shows all the data across one row. Then work on re-arranging the cells so that they are in vertical columns. Do this by right-clicking in the shaded area to the left of the rows, and select 'Insert Row'
Finally create a group around the whole thing, and group by Item Number or w/e is appropriate for your data. Then in the 'Row Groups' window at the bottom of the designer, right click your new group and select 'Group Properties > Page Breaks > Between each instance of a Group.
This should get you pretty close to your required layout.

Data Adapter does not update all rows updated

So long story short I have a dgv that gets data from a mysql database and I can make changes to the data in the grid and save back to the table, no problem except this: Changes made by the user on the dgv are not done directly (or manually) on the dgv, rather the user clicks plus or minus buttons and I pragmatically increase or decrease the number in a certain field called Quantity which is actually the only field that can be updated.
Now when I update my adapte command (...da.Update(ds, "salesDet")), the row I changed last does not get updated unless I manually leave that row to another row before pressing the update button. So for instance if I have 3 rows in the dgv and I select row 2 which has a quantity of 1, then I press the plus button, the quantity changes to 2. Then if I immediately press my update button while still on row 2, it will not get updated to my database. It will only work if prior to pressing the update button I leave row 2 to say row 1 or 3. Kind of like because I'm changing the numbers programmatically and not manually, I need to leave the edited row for an "after-update" commitment of the new values to fire? Don't know if I'm making sense but I'm really lost
I have tried dgv.EndEdit(), dgv.RefreshEdit(), dgv.Refresh() before updating but none of that works.
Thanks for your help
Sounds like the current row hasn't been validated yet, so your change has not taken effect. A clumsy hacky way of getting round this might be to set dgv.CurrentRow to nothing at the start of your Update method to force validation.

Grid expand on data Clicked

I have a Grid with say 10 rows and 5 columns. suppose the first column is "Name"
So the data would be some thing like
Name
abc
xyz
pqr
Now My query is, I want to Expand the Row on "abc" click, i.e. on "Name" columns data click.
And wanted to show the data of the other columns from the same row.
I have attached the image , Hope this will clear my requirement.
In the image it is shown that, the RowExpander, we can make the row expandable. I wan the same functionality but not on click the Plus image, but on the name of the first column. i.e. from the above image when user clicks on "3m Co" from the company column. the Row should get expanded. i.e. what currently displayed in the image.
My advice is to stick with the rowexpander plugin - it's UI is much more user friendly than what you want to do.
The other way is to use rowbody and add custom functionality to collapse the rowbody with an itemclick listener - yeah good luck with that :)