I want to access the contents of an Interactive grid with PLSQL. The only thing similiar is the
"Save Interactive Grid Data / Interactive Grid Automatic Row Processing (DML)" process that works on a per row basis.
I would like access the grid with PLSQL in a dynamic action, set a value X e.g. in row 1 column A and use this value X
to complete row 1 column B with a value that I get from the database using value X as input.
Is this possible or is the grid only accessible in javascript?
Yes, you can create a dynamic action that does an Ajax call to run some PL/SQL. You just need the correct triggering element and return conditions.
I'm not quite sure what you're trying to do. This is based off a user's action? Otherwise, why not just use the PL/SQL before you generate the grid?
Related
I'm wondering how I can make a dynamic page with APEX.
By dynamic I need to make a form which will have checkboxes for each line of a table. So if the table has 10 rows I need 10 checkboxes to be selected.
I was going down the APEX_ITEM route however that is deprecated....oh well
Thanks
APEX_ITEM is deprecated? Since when? It is not, as far as I can tell.
I'd suggest you to use interactive grid. It will display as many rows as you want (10 in your case), while item type can be set to "checkbox" so you'd either check it (or not).
If you want to do it dynamically, then one option is to create a stored procedure which would "draw" the page using htp.p calls. You'd, I presume, have a loop (because you have to create as many page elements as there are rows in a table - 10, you said).
Region type is then PL/SQL dynamic content.
Does it work? Yes, I've use it occasionally. Is it worth the pain (if compared to interactive grid)? Can't tell, it is up to you.
I am working on an APEX application where i basically need to make some particular cells of a column read-only based on some condition during the page load. Lets say a column accepting date values. I tried using the ReadOnly attribute to do so by using the PL/SQL expression and PL/SQL function body as the options but i am not clear of the format it expects me to use. Is it possible to do it this way? If yes, then how should i proceed with it?
I also saw a way to access the cells independently through Javascript and iterate on the cells later using this...
var view$ = apex.region("----").widget().interactiveGrid("getViews").grid.view$;
where "----" is the region id. How can i find my region id if this could be one possible solution?
To make the region ID predictable, set a Static ID in the region properties.
I have report with Crystal Report and there is a Cross Tab inside of it. In order to pass data to CrossTab I create a DataTable , do some processing on the data and pass it to Crosstab In Report, In Cross Tal I have 3 Group By's. I dont want the cross tab changes the sorting of data I have pass them to it.
This is by default happens in cross Tab Group by
But I dont want the value be sorted.
any Idea for that?
If you wish to maintain the order that the values are loaded into the report, the quickest way is probably to alter the SQL yourself.
Create a new returning field in your SQL statement that starts at 1 and increments with each record. Then tell the Crosstab to sort on the field you just made.
When I am using getcelldata method for Java tree object, nothing is being returned.
Celldata=javawindow("Oracle").javatable("Console").getcelldata(1,1)
Celldata=javawindow("Oracle").javatable("Console").getcelldata("#1","#1")
Please help.
There could be few possible reasons for this
1) You are not using the correct row and column numbers for fetching the data. Row and column starts with 0. So if you want to fetch the data for row 1 and column 1 then your statement should be
GetCellData 0,0 not 1,1
To check if you are on the right row and column you can use ActivateCell or ClickCell functions. Both of these function indexes starts with 0, so they should match.
2) Check if there are any child controls inside the table cell, sometimes that will cause issues getting the data from the cell, because if cell is having a custom control inside it then cell technically does not have the data.
To check this use the childObjects function
3) If GetCellData is not working, then you can also check, if you are able to add the table cell directly in the object repository and get the text using GetROProperty.
4) If nothing else works then you can also check the native functions and properties.
To access the native properties and function you can use object spy.
I am using oracle forms 10g.
I have used key-enter trigger.
I have created 3 text fields in which 2 are for inputs and 1 for result.
i want show addition of 2 i/p in result field.
I have used key-trigger for addition but when i pressed Enter key it doesn't works.
If you want a calculation to be done whenever either of your two input fields are changed, I suggest you put your code in WHEN-VALIDATE-ITEM triggers, one on each input field.