How can I solve ERR-1002 in Oracle APEX - plsql

Good morning, I'm trying to reference an Interactive Grid column in a PL/SQL Code (Dynamic action) by coding in the file the column name in this way: :CODE. APEX PL/SQL editor doesn't throws me any error buy when I render my application, APEX debugger throws me the following error:
ERR-1002: Unable to find item ID for item :CODE in application ...
I tried to remake some configurations in the APEX editor, but all seems OK. I don't uderstand the error origin
Thank you in advance
I tried to make an APEX dynamic action buy it throws me an error

I believe that you can only reference interactive grid columns in dynamic actions on specific interactive grid events OR on change of an interactive grid column. Any other dynamic actions (eg on page load) cannot reference the IG columns.
I tried the following:
Create editable IG on emp table
Create page item P1_ENAME
Create dynamic action on change of ENAME column of IG
Add true action of
type: "Execute Server Side Code"
items to submit: "ENAME"
items to return: "P1_ENAME"
PL/SQL Code:
:P1_ENAME := :ENAME;
Add true action of
type: "Alert"
Message: "Name: &P1_ENAME."
And it works fine.
However, if I create a DA on page load that references :ENAME column then I get the error you encountered.

Related

IN_VND_ITM_XLS Excel to CI - New field added to CI does not get inserted

I have added a new field into the IN_VND_ITM_XLS component interface, (BU_PRICE_STATUS), which is in a SQL View already part of the delivered template, ITM_VND_UMP_CVW. I modified the view (Record definition) in App Designer to pull in the BU_PRICE_STATUS field and then modified the component interface and added this field.
When I regenerate the template in Excel, it populates the additional field fine, I select it as an input cell (along with the others I originally had) and I submit the data and return back the green OK status.
When I look online in PeopleSoft I see that the vendor data was created for the item, however the BU_PRICE_STATUS field is populated with a different value than what I specified on the upload. The default value listed on the field definition in app designer was what was populated, instead of the value I had entered for the upload.
Is there something else I did to modify for this to work? I know that when you run the Item Loader process, it uses a Message definition (IN_MST_ITM_XLS) so I wasn't sure if the message needed to be updated to? Thanks in advance.
2/27 EDIT:
I've found that the Component (for this component interface) - IN_MST_ITM_XLS uses a function called PRCSITEM within a Function library record - FUNCLIB_INEIP and this populates data in a staging table called PS_ITM_VND_UMPR_EC. I see that this table does not contain the field BU_PRICE_STATUS (which I didn't believe it would) so I'm thinking if the code/table can be updated to capture this field it would work. Hoping someone can suggest if I'm in the right area and what would need to be changed.

Interactive Reports: Customized column Heading in UI using page items

I have created Interactive Report based on a table. I want to generate customized column heading using page items to be displayed in UI.
I have Page item P1_ITEM1 (source: "SQL Query returning single row").
I have used above mentioned item in Heading Space in Report Attribute of IR as &P1_ITEM1. for a column.
But when I am running the report, I am getting blank/null headings, no name.
Please help me on this issue.
Oracle DB: 11.2g;
APEX Version: 4.2
I think it's because SQL query for P1_ITEM1 runs after heading of Interactive Report rendering.
Try to move your item before IR region or create PL/SQL process (point - Before Region)
SELECT ...
INTO :P1_ITEM1
FROM ...
WHERE ...;
and reset Source Type for P1_ITEM1 to Static Assignement. I tried both methods, it's working.
APEX 5 example link https://apex.oracle.com/pls/apex/f?p=54028:3:10869386854547::YES but also working on APEX 4.

Collect all parameters from all reports in reportserver folder and populate a sql table

[Thanks to Filburt and Devjosh. I have restructured the post and included my attempt approach. ]
I have a table on my SQL DB call ReportList which is a list of report. I need to go through that list and interrogate the reportserver, eport by report, to populate a table called ReportParameters. The ReportParameters table has a column for ReportOwnerID which needs to contains the ReportID value of the corresponding (owner) report as listed in the ReportList table.
This is in VB.NET 2005 ASP2.0 and I have ended up with a mess. Please help me with the cleanest approach to doing this.
It needs to work so:- I have a listbox of the reports as per REportList and a GridView that list all the parameters (uniquely - most of the parameters are common to many reports) the idea being that the parameters get set once and the report can be kicked off by selecting them in the ReportList CheckListBox and clicking on Execute.
I would like it that as I click on a particular report in the ListView, the relevant parameters in the Gridview get a green background and those that do not apply are red. The leftmost column in the gridview contains tha Parameter NAME (not editable) and the next column must be editable to populate the value.
DONE SO FAR:
I have tried on clicking the EXECUTE button , to build a parameters string in a testbox and call that with the Javascript OpenReportWin() function when I open the report in a new window. This works fine, but my biggest issue it interrogating the reportserver reports to get back a list of parameters and dooping them into a table. I have triend to use a hidden DataGrid bound to a ds onto the reportParamaters table; I have tried to poulate it using a datalist but I cannot get the hang of these thionsg and its looking messy. Ther must be a simple clean way of gettting the .GetParameters resultset back from the report server and populating the table without having to create a reportviewer object and cycling through the list of reports - it then has to render each report before you can get that list out.
Thanks
I will withdraw this for now. I will submit a solution when I am comfortable that I have reahced a clean solution.
Mac
PLEASE CLOSE!!!

How to create prompt page driven variable view in Cognos 8.2

I am using Cognos 8.2 to create a report with a prompt page. I am trying to create a prompt page that allows the user to choose what type of item they want to see, and then the workers assigned.
Example: Show me the workers working on projects of type 'A' and that would trigger a list of workers to be displayed who are currently working on projects of type 'A' and then the user could choose a worker/workers from the list to be displayed in the report.
I am trying to use javascript in the html item, but I have never worked with javascript before, and I am having little luck. I dont know if it is even possible or not to pass a variable to another item on the prompt page. Any ideas or examples would be appreciated.
Bring your worker names into a data item (eg [People]) - then, create another data item with a case statement:
CASE
WHEN ([People] in ('John','Jessica','Jane','Jeff'))
THEN ('Group J')
WHEN ([People] in ('Adam', 'Alex', 'Anne'))
THEN ('Group A')
ELSE 'No Group'
END
Name this data item "Group"
Then create a filter on the query: [Group] = ?Group Prompt?
Then you should be able to input 'Group A' and get only those from Group A.

Could not determine metatable error binding list to asp.net datagridview

I am working with the following block of code ...
List<ThemeObject> themeList = (from theme in database.Themes
join image in database.DBImages on theme.imageID equals image.imageID
into resultSet
from item in resultSet
select new ThemeObject { Name = theme.Name, ImageID = item.imageID}).ToList();
dgvGridView.DataSource = themeList;
dgvGridView.DataBind();
The list object populates fine. The datagrid is setup with 2 columns.
A textbox column for the "Name" which is bound to "Name"
An image column which is bound to the "ImageID" field
When I execute the code I receive the following error on the DataBind()
Could not determine a MetaTable. A
MetaTable could not be determined for
the data source '' and one could not
be inferred from the request URL. Make
sure that the table is mapped to the
dats source, or that the data source
is configured with a valid context
type and table name, or that the
request is part of a registered
DynamicDataRoute.
I'm not using any dynamicdataroutes as far as I can tell. Has anyone experienced this error before?
Assuming you are developing a Dynamic Data Entities web application (that's what the error you provided hints about), try this in your Page_Init:
dgvGridView.EnableDynamicData(typeof(ThemeObject));

Resources