Refreshing datablocks
Hi Everyone!
I have a question. I have 2 forms, Form A is the parameter form and Form B is the detail form. After I close form B and it takes me back to Form A I then I clear the Form A so that I can enter some new parameters to pass to Form B. However, I keep getting the following error message: FRM-40350: Query caused no records to be retrieved. I do not have a pre-query on FORM B. FORM B does have WHEN-NEW-FORM-INSTANCE trigger on it which states:
SET_BLOCK_PROPERTY('BLOCK1',default_where,'id=:parameter.V_WHERE1');
EXECUTE_QUERY;
SET_BLOCK_PROPERTY('BLOCK2',default_where,'report_date=:parameter.V_WHERE2');
set_window_property('WINDOW1', window_state, MAXIMIZE);
EXECUTE_QUERY;
I would think this would be fine, because I actually close out FORM B. So this trigger above should execute. FORM A creates a parameter list and destroys the parameter list if NULL. In addition, to open FORM B I use:
open_form('FORM B',activate,no_session,no_share_library_data,my_parameter_list);
When I used call_form(); I wasn't able to close FORM B that is why I am using open_form(); so that I am able to close FORM B.
Bottom line .... how do I refresh my datablocks to get the new parameters?
Please help!
~Vannette
Hi @wisdom4re ,
Thank you for visiting the HP Support Forums and Welcome. I have looked into your issue about your HP Notebook and taking a long time to refresh the Windows. The last time I did this on my machine it took almost 8 hours. Sorry.
I would be happy to assist if needing any drivers. How Do I Find My Model Number or Product Number?
Here is a link to the HP Support Assistant if you need it. Just download and run the application and it will help with the software and drivers on your system at the time of purchase.
Please let me know.
Thanks.
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!
Similar Messages
-
I am working on an Oracle Form.
There is a datablock displayed in tabular form. On execute query the data is displayed in alphabetical order.
The requirement is that when someone presses the create new record button on the toolbar and then enters a new record. After saving the data must be displayed in alphabetical order automatically.
How can I acheive this?
Thanks,
AmirAfter a bit more investigation I have found the solution:
Use KEY-COMMIT trigger and perform an explicit commit and then execute_query
Thanks,
Amir -
Problem when trying to refresh oracle screens with latest data
hello experts,
i have one problem,i want to refresh the oracle screen with the latest data from the data
base.
It is a two stage process.At first step one user will select a row from the screen and then he will press a button .
now the second screen will appear and the detail of the employee will be displayed.
First step has been completed and the data is coming in the second form via parameters and i can see the full information of the employee.
Now i want to refresh the oracle form i.e. suppose if my dba has made any changes in the oracle table( EMP table) i want that after pressing the refresh button user can see the
latest data from the database.
in WHEN_BUTTON_PRESSED trigger i have written this codes.
enter_query;
execute_query;
but they are not giving the expected result.
And one more thing please suggest whether in the second form i should use database item
or non database item.
When i am using database item when i am trying to close second from one pop up is appearing
and asking that whether i want to save the changes.
please suggest how can i remove this message from my application.
Regards
AnutoshHi,
what data did you transfer via parameters to the second form ?
how did you populate the datablock in the second form ?
Typical solution would be:
(For my example the block is both forms is named EMP, and is based on the table SCOTT.EMP)
In Form 1, transfer the primary key-value of the current record to a global or parameter (will use global in my example):
e.g. you have a WHEN-BUTTON-PRESSED-Trigger with the following code:
<pre>
:GLOBAL.EMPNO:=:EMP.EMPNO;
CALL_FORM('FORM2');
</pre>
In Form 2, you have a WHEN-NEW-FORM-INSTANCE-Trigger with code:
<pre>
DEFAULT_VALUE('GLOBAL.EMPNO', NULL);
IF :GLOBAL.EMPNO IS NOT NULL THEN
GO_BLOCK('EMP');
EXECUTE_QUERY;
:GLOBAL.EMPNO:=NULL;
END IF;
</pre>
On block EMP in Form 2 there is a PRE-QUERY-Trigger with following code:
<pre>
IF :GLOBAL.EMPNO IS NOT NULL THEN
:EMP.EMPNO:=:GLOBAL.EMPNO;
END IF;
</pre>
And at last, in your refresh-button would be the following code:
<pre>
:GLOBAL.EMPNO:=:EMP.EMPNO;
GO_BLOCK('EMP');
EXECUTE_QUERY;
:GLOBAL.EMPNO:=NULL;
</pre>
Hope this helps -
Form is not working after table refresh
I've made a form and have added pre-insert trigger for the block. And the form is working perfectly fine with no issues.
Two new columns have been added to the table and have to be added to the form now.
I opened the data block wizard of the form and did a refresh of the table to get the two columns. After I pressed the "refresh" and then tried to run the form(but did not add new columns), the pre-insert trigger fails and starts throwing me an error that value has to be entered.(FRM:40202)
After further analysis I also found out that there was null value being passed into another item. Actually when I refresh the Datablock wizard I can see this column on the left hand side than being present on the right hand side.
Kindly if you could help on the same.Hi Vidhya
pre-insert trigger fails and starts throwing me an error that value has to be entered.(FRM:40202)that's FRM-40202 (Field Must be entered)
pls make sure any new db column that's defined as NOT NULL in the table that u r trying to insert in is pre-insert has an insert statment.; must have a value.
the main issue here is ur table u r trying to insert in ; it has nothing to do with the form wizard's item on the left or the right hand side.
Hope this helps...
Regards,
Abdetu... -
Help - Stored Procedure/datablock question
I have a fair understanding, but I'm a bit confused right now. Here' the scenario:
For performance reasons, I have many tables that I want to load using stored procedures. They are all "look up" tables and don't need to be updated.
How do I call a stored procedure and populate my datablock?
Could someone post sample code for the stored procedure and how I integrate that into a data block? THANKS!!!!!
nullBert,
Create your stored procedures in the database.
Choose the data block you need populated.
Select the Data Block Wizard and choose Stored Procedure. Enter the Procedure name as stored in the database, click refresh and you are on your way.
You will be prompted for each type of operation(the first screen is Select, the next INS, UPD, LOCK). Use the procedures you have defined as appropriate to each screen and Forms does all the work for you. You can define arguments to the procedures if necessary on each of the screens. -
We want to implement application, which consist of a master and
about 50 details. Because we want to refresh all details
automatically when master is changed, we suppose, that place all
details in one form - into separate windows in this form is only
possibility.
That is over 50 datablock and window in a form. But we are not
sure if it is the best solution. Does anybody have experience
with so big form or any other idea ?
nullTry creating a view containing all of the details, from the form
define the master detail relationship using the master table to
the detail view. You can modify the data in the detail tables
through the view if the primary key, foreign keys are setup
properly.
Jaroslav Benek (guest) wrote:
: We want to implement application, which consist of a master and
: about 50 details. Because we want to refresh all details
: automatically when master is changed, we suppose, that place
all
: details in one form - into separate windows in this form is
only
: possibility.
: That is over 50 datablock and window in a form. But we are not
: sure if it is the best solution. Does anybody have experience
: with so big form or any other idea ?
null -
Multiple Canvas Multiple Datablocks Reload Query
Hi I am running form 9.0.4
I have a problem where I have two datablocks which have there a canvas each and each canvas has its own window.
When I try and load both only the last one refreshes.
EG
go_block('team_case_load_view');
execute_query;
go_block('ds_team_case_load_view');
execute_query;
The 'ds_team_case_load_view is shown if I do
EG
go_block('ds_team_case_load_view');
execute_query;
go_block('team_case_load_view');
execute_query;
The team_case_load_view is shown
Are there any known issues which would cause this behavouir?
ThanksTry putting a Synchronize; after the first Execute_query.
-
Can not refresh view data in STRUST
I am using the JSP (STRUTS) for developing my App.
I get a list of contact. In bellow it, I make a link for each contacts.
When i view details of one contact. On click link below.
My pages:
listcontact.jsp
contactdetails.jsp
When i request a details of contact from list contact -> View successfull.
But when i refresh the contactdetails.jsp page. I got a message error:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.7 logs.
I have to use:
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
But can't refresh any way this page.
Plase show me the way to solve it.
Thanks
Vu Nguyenhi,
Here are codes
listdata = new CompanyListData();
companyList = (ArrayList) session.getAttribute("datalist_company");
if (companyList == null)
companyList = (ArrayList) listdata.getCompanyList(datasource);
session.setAttribute("total", companyList.size()+ " companies");
session.setAttribute("datalist_company", companyList);
return (mapping.findForward("success"));
And for details:
if ((addressItem==null && companyName!=null)||(addressItem==null&& companyId!="0"))
addressData = new AddressDetailData();
addressItem = addressData.getAddressItem(datasource, companyId);
session.setAttribute("addressDetail", addressItem);
I got companyID by:
String companyId = request.getParameter("companyId");
return (mapping.findForward("success"));
Please gest the problems that.
Thanks, -
Hi All ,
I am facing an issue where the EPM Excel Templates on SERVER ROOT FOLDER take time to open on 1 system . It also takes great amount of time to REFRESH . While on an another system the same Report opens rather quickly and refreshes also quickly .
Regards,
SHUBHAMHi Shubham,
Now day excel problems are due to some MS update. Not sure but have a look at below note.
2107965 - Issues in EPM Add-in after installing Microsoft updates -
Refreshing the Data from a embed view in a view container
Hi everybody
I would like to know how can I do to refresh all data from a View with a view container the problem is:
that I have a window that has a view at the same time this has a view container. The Main view brings the data of editable elements when I select one element of the main view the view container brings a list for that element (dependencies) but only the first time a choose an element loads the correct data, when I choose another one it brings the same old data and doesn't make the call for the wdDoInit() method.
The question is:
How do I force the view to refresh all the data or call again the wdDoInit() method?
Thank you for your helpAida,
Lets say you have two components C1 and C2 and you want method from C1 to be available in C2 then follow these steps:-
1) Goto the Interface Controller of C1 and create a method there lets say doSomething
2) Then goto C2. There you can see Used Web Dynpro Components --> Right click Add Used Component --> Give some name say C1Comp --> Click browse and select C1 --> Click Finish.
3) Next goto Component Controller of C2 --> Properties --> Click Add and check if C1 is added. If not then select the checkbox and select OK.
4) Now goto Implementation tab of C2 and lets say wdDoInit you can write following code:-
wdThis.wdGetC1CompInterface().doSomething();
Chintan -
Not able to refresh the data in a table
Hi In my application i fill data in a table on clikc of a button ..
Following are the line of code i have user
RichColumn richcol = (RichColumn)userTableData.getChildren().get(0); (fetch the first column of my table)
richcol.getChildren().add(reportedByLabel); (reportedByLabel is a object of RichInputText)
AdfFacesContext adfContext1 = AdfFacesContext.getCurrentInstance();
adfContext1.addPartialTarget(richcol);
adfContext1.addPartialTarget(userTableData);
But on submit of that button table data is not refreshed after adding partial trigger on that table as well as that column also .... any idea??
Edited by: Shubhangi m on Jan 27, 2011 3:50 AMHi,
The Code that you have shown adds an additional inputText component to the first column of a table.
Is that your intention?
If yes, please use the following code snippet to achieve your functionality:
JSPX Code:
<af:form id="f1">
<af:commandButton text="Add Column" id="cb1"
actionListener="#{EmployeesTableBean.onAddColumn}"/>
<af:table value="#{bindings.Employees.collectionModel}" var="row"
rows="#{bindings.Employees.rangeSize}"
emptyText="#{bindings.Employees.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.Employees.rangeSize}"
rowBandingInterval="0"
selectedRowKeys="#{bindings.Employees.collectionModel.selectedRow}"
selectionListener="#{bindings.Employees.collectionModel.makeCurrent}"
rowSelection="single" id="t1"
binding="#{EmployeesTableBean.table}">
<af:column sortProperty="EmployeeId" sortable="false"
headerText="#{bindings.Employees.hints.EmployeeId.label}"
id="c1">
<af:outputText value="#{row.EmployeeId}" id="ot2">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.Employees.hints.EmployeeId.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="FirstName" sortable="false"
headerText="#{bindings.Employees.hints.FirstName.label}"
id="c2">
<af:outputText value="#{row.FirstName}" id="ot1"/>
</af:column>
<af:column sortProperty="LastName" sortable="false"
headerText="#{bindings.Employees.hints.LastName.label}"
id="c3">
<af:outputText value="#{row.LastName}" id="ot3"/>
</af:column>
</af:table>
</af:form>
Bean:
public class EmployeesTableBean {
private RichTable table;
public EmployeesTableBean() {
public void setTable(RichTable table) {
this.table = table;
public RichTable getTable() {
return table;
public void onAddColumn(ActionEvent actionEvent) {
RichInputText newRichInputText = new RichInputText();
newRichInputText.setId("new");
newRichInputText.setValue("Name:");
RichColumn richcol = (RichColumn)table.getChildren().get(0);
richcol.getChildren().add(newRichInputText);
AdfFacesContext adfContext1 = AdfFacesContext.getCurrentInstance();
adfContext1.addPartialTarget(table);
Thanks,
Navaneeth -
Not having to refresh the data in the main report but only in the subreport
Hi SAP,
I have a report that uses a stored procedure in the main report and uses regular database tables in the subreport. The data returned from the stored procedure reports information from the month-end database (a cutoff point from the previous month's numbers) while the subreport reports information from the live database. This report gets run everyday to show the changes in numbers from the live database. Obviously the numbers from the month-end database remainds static until the next month's cutoff database is created.
My problem is that everyday when I run the report, the data needs to refresh from both the stored procedure in the main report and the live database tables in the subreport. How can I leave the data returned from the stored procedure static or as is without refreshing the stored procedure returned data and just have the subreport data refresh itself? The stored procedure really puts a strain on the database and I would like to cut-out the time to process the report as well. Does anyone have any ideas?
ZackHi Zack,
Try the following under Report options.
1. Clear the check box of "Verify Stored Procedures on First Refresh" in the Main report.
2. Select the check box of "Verify on First Refresh" in the sub report.
Hope this helps. -
Can not refresh ValueObject after altering database table
Hello All,
In FB4, in order to refresh a service, I used to
- select a service operation
- select configure return type
- select auto-detect
- hit next and on the follow page select the existing ValueObject
...it would update.
As far as I can see, this does not work in FB4.5. Instead, after selecting auto-detect and clicking next:
There was an error while invoking the operation. Check your operation inputs or server code and try invoking the operation again.
Reason: Warning: mysqli_stmt_bind_result(): Number of bind variables doesn't match number of fields in prepared statement in...
Is there a way to refresh a ValueObject. Clicking refresh is a no go.
Thanks for your help!
Jhey jay. did you ever figure out how to update your valueObject? I just posted a similar discussion "changing php-service in FD breaks AS3 service class and valueObjects" here: http://forums.adobe.com/thread/882288
maybe we'll get a reply.... -
Can not refresh contents of finder windows
I can not get my finder windows to refresh their contents. My picture folder is the one that really bothers me. When I am trying to upload pictures to the internet, the picture folder is never accurate. I have tried the refresh finder apple script, restarting the computer, opening and closing the window, nothing seems to work.
The content is there, when I search for a specific picture file it is there, but it is not located in the right subfolder. I download and manage my pictures on kodak easyshare.Hi there,
The content is there, when I search for a specific picture file it is there, but it is not located in the right subfolder.
Hmmm, are you saying something is moving them? Or the Finder isn't opening them to the right folder?
Have you tried this one...
http://www.versiontracker.com/dyn/moreinfo/macosx/10958253
Safe Boot, (holding Shift key down at bootup), & use Disk Utility from there to Repair Permissions, reboot once more.
Then Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions...
Move this file to the desktop...
/Users/YourUserName/Library/Preferences/com.apple.finder.plist
reboot when it completes. -
Can not refresh server manager Error:0x8007045b
OS: Windows 2012 R2 Core
Services: Hyper V
I was trying to remote reboot and the session hung. No worries I decided I could just reboot the next morning. So I rebooted the next day but when I go into server manager I get
an errror can not refresh server manager Error:0x8007045b. Did some research found suggestions to fix it using a DISM.exe /Online /Cleanup-image /Restorehealth.
But then I get an error 1115 A system Shutdown is in progress. I attempt to fix this issue using pskill winlogon but the issue pursistest. I have restarted the server several times now. Not sure how to fix this.
Thanks in advance,
JakeHi,
In addition to the above information,
Checkout the below thread for similar discussion,
http://social.technet.microsoft.com/forums/windowsserver/en-US/a700e9f6-4491-4c70-8bd0-d9d3111e2f70/windows-reboot-error
Regards,
Gopi
JiJi
Technologies
Maybe you are looking for
-
List of all interfaces in the XI landscape
Hi Experts, Currently my company is going through a merge project with a second company, and we want to integrate the SAP systems. This will inevitably mean more interfaces to be built. What we would like to have is a way to generate a list of all th
-
I am trying to connect to a MS SQL Server 2000 db from my linux Mandrake10 box using SQuirreL. I have downloaded a tar file from MS's website, which I have untarred to produce 3 jar files: msbase.jar, mssqlserver.jar and msutil.jar. According to the
-
Quadtone ICC print profiles not found in CS6
I have several ICC profiles installed in the Colorsync>Profiles folder. They are QTR ICC profles for B+W printing. CS5 sees these profiles when assining custom profle for soft profing and when choosing a profile for printing. CS6 finds the profles
-
Why has print module stopped functioning
I have lightroom 4, running on mac book pro OS 10.2 (maverick). When I go from the images in the library to the print module, the pictures darken and cannot be accessed. The preview is a blank page. I even tried downloading a trial version of lightro
-
Two account with same UPN in Active Directory
Is it possible to have two accounts with same UPN in AD? I'm using Windows Server 2012 R2