Run the query qutomatically?
I have some static queries, where nothing changes, they just need to be re - run the first thing Monday morning.I would like to know the best way to automate this? I'm on Oracle 11 G Enterprise and just an end user without administrator privileges.
I have SQL * Plus, Toad and SQL Developer available and I'm trying to figure out the best wa this simply. I thought that it
a way to store the SQL code on the side server, as with the function or Procs and just load the database when run the SQL.
So maybe instead of one email, maybe a follow-up table can be updated with the status of the update. So, if I have 3-6 different
SQL, the tracking table would have column 2, name of the Table and column DDL Date or anything that makes sense.
So my tracking table would be updated when you complete the SQL and tell me when it has finished running to be looking in the DDL Date column.
and then I could see what table he speaks, not sure... or what's the best way it is to do.
At this point, I'm in search mode, so some of my question may sound silly, but that's how I learned, thank you.
Hello
You can use dbms_scheduler to run a procedure at regular intervals (for example, every Monday at 6:00).
http://download.Oracle.com/docs/CD/E11882_01/AppDev.112/e16760/d_sched.htm#CIHHBGGI
The easiest way to view the results is probably to have the procedure INSERT messages into a log table. I think that's what you mean by a "tracking table.
Tags: Database
Similar Questions
-
Run the query in accordance with condition
Oracle 10g version
Hi gurus
I have the following data
Examples of data
SELECT DeptNo FROM scott.emp
UNION ALL
SELECT EmpNo FROM scott.emp
;
Now what I want is I want to execute conditionally of those surveyed, something like below:
If list_item = 'I', then run below
SELECT DeptNo FROM scott.emp
otherwise run below
SELECT EmpNo FROM scott.emp
End if;
------
I want to keep the union all and run the query under the terms...
Set a long tank (max 4000)
L_WHERE_CLAUSE
Use it in your application as a substitution variable by prefixing with &
WHERE & L_WHERE_CLAUSE
Assign the value into a pl/sql block (trigger, formula column)
IF condition THEN
L_WHERE_CLAUSE: = '1 = 1';
ON THE OTHER
L_WHERE_CLAUSE: = '1 = 2';
END IF;
Now, among the options that have been suggested to you and the information you provided, I think the solution of Solomon should be easier. Just refer to the column list_item has a link within your query variable (assuming that this and the query where list_item belongs are related, for example, there is a join between them)
SELECT DeptNo FROM scott.emp, t
WHERE: list_item = 'l '.
UNION ALL
SELECT EmpNo FROM scott.emp, t
WHERE nvl(:list_item,'x')! = « l »
-
use F8 &; F10 keys on the keyboard to run the query and save a form
I created a screen. Here I can save by pressing CTRL + S (written a validation key trigger) or the button Save, I placed.
Now the user want to F10 to save & key F8 to run the query.
How can I do? Should what trigger I write the code...
I use oracle 10g and oracle developer suite 10 g.
I have fmrweb.res as follows:-
9: 0: 'Tab': 1: "then on the ground."
9: 2: "Ctrl + Tab": 1: "then on the ground."
9: 1: "Shift + Tab": 2: "previous field.
9: 3: 'Shift + Ctrl + Tab': 2: "previous field.
85: 2: "Ctrl + U": 3: "clear the field".
38: 0: 'Up': 6: 'Up '.
40: 0: 'Down': 7: "Down".
33: 0: 'PG': 12: "scroll to top".
34: 0: "PageDown": 13: "scroll."
69: 2: 'Ctrl + E': 22: 'Edit '.
10: 0: "Enter": 27: «Back»
120: 0: 'F9': 29: "list of values".
76: 2: "Ctrl + L": 29: "list of values".
81: 2: 'Ctrl + Q': 32: "Exit".
75: 2: "Ctrl + K": 35: 'display keys '.
112: 2: 'Ctrl + F1': 35: 'display keys '.
83: 2: 'Ctrl + S': 36: 'engage '.
121: 2: "F10": 36: 'engage '.
114: 1: 'SHIFT + F3': 61: 'next primary key '.
115: 1: "SHIFT + F4": 62: "delete folder".
117: 1: "SHIFT + F6": 63: 'delete folder '.
115: 0: "F4": 64: "Double registration".
117: 0: 'F6': 65: "insert record".
119: 1: "SHIFT + F8": 66: "a next Recordset.
1005: 0: 'Down': 67: "then save.
1004: 0: 'Up': 68: "history".
40: 1: 'Shift + down': 67: "then save.
38: 1: "shift + up": 68: "history".
116: 1: "Shift + F5": 69: 'clear the block '.
116: 0: 'F5': 70: "block the Menu."
34: 1: "shift + page down": 71: 'then block '.
33: 1: ' shift + Pg. Prev ': 72: "previous block.
34: 2: "Ctrl + PG. Next": 71: 'then block '.
33: 2: "Ctrl + PG. Prev': 72: "previous block.
114: 0: "F3": 73: "duplicate field '.
118: 1: "Shift + F7": 74: 'clear form '.
118: 0: "F7": 76: "enter the query."
119: 0: 'F8': 77: 'execute the query. "
122: 0: 'F11': 76: "enter the query."
122: 2: "Ctrl + F11": 77: 'execute the query. "
112: 1: "SHIFT + F1": 78: "error to display.
80: 2: 'Ctrl + P': 79: 'print '.
113: 1: "SHIFT + F2": 80: "request Count".
123: 0: "F12": 81: "update file".
121: 3: 'Shift + Ctrl + F10': 82: "function 0".
112: 3: 'Shift + Ctrl + F1': 83: «Function 1"»
113: 3: 'Shift + Ctrl + F2': 84: «Function 2"»
114: 3: 'Ctrl + Shift + F3': 85: «function 3"»
115: 3: 'Shift + Ctrl + F4': 86: «function 4"»
116: 3: 'Shift + Ctrl + F5': 87: «Function 5"»
117: 3: 'Shift + Ctrl + F6': 88: «function 6"»
118: 3: 'Shift + Ctrl + F7': 89: «Function 7"»
119: 3: 'Shift + Ctrl + F8': 90: «Function 8"»
120: 3: 'Shift + Ctrl + F9': 91: «Function 9"»
113: 0: 'F2': 95: "list of tab Pages.
72: 2: "Ctrl + H": 30: "Help".
112: 0: 'F1': 30: "Help".
Please suggest...Hello.
First of all check that you have set "term" among others in the variable 'otherparams' in formsweb.cfg
For example:
otherparams = expression = term %
Then make sure that you put the correct path for the keyboard mapping file in the variable "term" as I wrote in the previous post.
Things should work as I did several times.
Best regards.
-
Run the query according to the transaction.
Hi all
I am able to run the query, but I want to run query award date.
I created the timer for shape and I want when user update the record for the same registration date must run, do not run the query from the previous day.
is this possible?
can someone help me?
SarahSee other thread
-
Hello
I have a form based on the table that store only 1 card. I have created a form page, but may not know how to run the query and display the record in the table. If there is no record in the table, I want that the user can use this page to create a record.
Thanks in advance
NRIHello Nri,
What value does P18_SCHOOL_ID?
If you look at the State of Session (toolbar) developer. If that does not have a value, it's your problem.You can create a calculation before the process that gives the correct value. (In one case more often, you have a report and when you click on the link change that id is activated and you see the recording in your form)
Dimitri
-
Run the query with multiple parameters
Dear
Motion code below for the data is of per_all_people_f, who works for only one setting, when I pass 2 parameters, then is to take the last of them fail times two, could you pls advice how it both join in where clause.
================================================================================
--------------------------------control file ----------------------------------
================================================================================
' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processFormRequest (pageContext, webBean);
Am = (OAApplicationModule) pageContext.getApplicationModule (webBean) OAApplicationModule;
OAApplicationModule am = pageContext.getRootApplicationModule ();
String model = pageContext.getParameter ("ALL");
String pempno = pageContext.getParameter ("paramEmpNo");
String phiredt = pageContext.getParameter ("paramHireDate");
System.out.println ("control controller exucution");
If (pageContext.getParameter ("GetData")! = null)
{
System.out.println ("controller exucution");
Boolean ExecuteQuery = BooleanUtils.getBoolean (false);
[Serializable] parameters = {pempno, phiredt, model, executeQuery};
Class [] paramTypes = {String.class, String.class, String.class, Boolean.class};
am.invokeMethod ("initSummary", parameters, paramTypes);
OAAdvancedTableBean = table
(OAAdvancedTableBean) webBean.findChildRecursive ("ResultsTable");
When a user of handling started looking, we always need to run
the query, so we move on 'false' to queryData().
table.queryData (pageContext, false);
}
}
================================================================================
-Request module file-
================================================================================
public void initSummary (string model,
String ParmEmpNum,
String ParmHireDt,
String created,
String showMyOrders,
Boolean ExecuteQuery)
{
xxEmployeeVOImpl vo = getxxEmployeeVO1();
If (vo is nothing)
{
Tokens [] MessageToken = {new MessageToken ("parameter", "xxEmployeeVO")};
throw new OAException ("AK", "FWK_TBX_OBJECT_NOT_FOUND", chips);
}
vo.initQuery (model, ParmEmpNum, ParmHireDt, executeQuery);
System.out.println ("calling vo...");
}
================================================================================
-xxEmployeeVOImpl-
================================================================================
public void initQuery (String, String ParamEmpNum, String ParmHireDt, Boolean executeQuery model)
{
StringBuffer whereClause = new StringBuffer (100);
Whole CheckWhere;
Vector of parameters = new Vector (3);
setWhereClause (null);
setWhereClauseParams (null);
Integer bindCount = 0;
String WhereClause = null;
If ((ParamEmpNum! = null) & & (!("".)) Equals (ParamEmpNum.Trim ()))
{
setWhereClause (null);
setWhereClauseParams (null);
setWhereClause ("EMPLOYEE_NUMBER =:" + CheckWhere);
setWhereClauseParam(0,ParamEmpNum);
System.out.println ("request" + this.getQuery ());
System.out.println ("ParamEmpNum" + ParamEmpNum);
CheckWhere = CheckWhere ++;
}
If ((ParmHireDt! = null) & & (!("".)) Equals (ParmHireDt.Trim ()))
{
CheckWhere = CheckWhere ++;
If (CheckWhere > 1)
{
setWhereClause (null);
setWhereClauseParams (null);
setWhereClause ("AND START_DATE =:" + CheckWhere);
setWhereClauseParam(0,ParmHireDt);
System.out.println ("request" + this.getQuery ());
}
on the other
{
{setWhereClause (null);
setWhereClauseParams (null);
setWhereClause ("START_DATE =:"+ CheckWhere ");
setWhereClauseParam(0,ParmHireDt);
System.out.println ("request" + this.getQuery ()) ;}
}
System.out.println ("ParamEmpNum" + ParmHireDt);
}
System.out.println ("request" + this.getQuery ());
executeQuery();
Try this:
public void initQuery(String dummy,String ParamEmpNum,String ParmHireDt, Boolean executeQuery) { System.out.println("ParamEmpNum: "+ ParamEmpNum); System.out.println("ParmHireDt : "+ ParmHireDt); setWhereClause(null); setWhereClauseParams(null); String WhereClause = null; int bindCount = 0; HashMap paramMap = new HashMap(); if ( (ParamEmpNum != null) && (!("".equals(ParamEmpNum.trim()))) ) { paramMap.put(bindCount,ParamEmpNum); WhereClause = "EMPLOYEE_NUMBER = :"+ (++bindCount) + " AND "; } if ( (ParmHireDt != null) && (!("".equals(ParmHireDt.trim()))) ) { paramMap.put(bindCount,ParmHireDt); WhereClause = WhereClause + ("START_DATE = :"+ (++bindCount) + " AND "); } if(bindCount > 0) { // Remove the AND at the end WhereClause = WhereClause.substring(0, WhereClause.length()-5); setWhereClause(WhereClause); for(int i = 0; i < bindCount; i ++) { setWhereClauseParam(i,paramMap.get(i)); } } System.out.println("Query "+ this.getQuery()); executeQuery(); }
You may need to change the START_DATE whereclause as below:
WhereClause = WhereClause + ("START_DATE = TO_DATE (:" + (++ bindCount) + ', "MON-DD-YYYY" ") AND" ' ");
Note:-need to specify the correct format.
See you soon
AJ
-
NoAvailableServersException when you run the query in applications
I only run the UI applications connected to a carrier co-located in my distributed system. When I run a query of the applications I have a NoAvailableServersException. The trace of the full stack of the applications log is below. I can run the same query successfully in gfsh on the same machine, the I'm running the applications. I' wvv looked through the applications documentation but can't find problems with my setup. Please let me know if you need more information.
Tom
[06/02/2013 INFO 17:39:19.135 IS main] Manual applications path is C:\vmware\vfabric-gemfire\vFabric_GemFire_70_b38623\tools\DataBrowser\docs\index.html[06/02/2013 INFO 17:39:19.512 IS main] Start interviewing for the results link to JMX Manager operation.[17:39:19.692 JMXCallExecutorThread IS SERIOUS 2013/02/06] An exception occurred while connecting to the mark on the host: idcprdgflocator2.carecorenational.com and port: 1099: com.gemstone.gemfire.management.ManagementException: Locator has failed. It is normal if the index was arrested. If it wasn't not check his diary for exceptions.[06/02/2013 INFO 17:39:19.692 IS JMXCallExecutorThread] Try to connect to a JMX Manager on the host: idcprdgflocator2.carecorenational.com and port: 1099[06/02/2013 INFO 17:39:19.793 IS JMXCallExecutorThread] Connected to the Gemfire distributed system[06/02/2013 INFO 17:39:21.666 IS JMXCallExecutorThread] Added members: ccnscupadsgf01 (10552) < v14 >: 4709[06/02/2013 INFO 17:39:21.679 IS JMXCallExecutorThread] Updated the refreshInterval to 60000[06/02/2013 INFO 17:39:23.594 IS JMXCallExecutorThread] GemFire (7.0) Cache is created. Support PDX is available.[06/02/2013 INFO 17:39:23.710 IS JMXCallExecutorThread] GemFire jar in the classpath version: 7.0[06/02/2013 INFO 17:39:23.710 IS JMXCallExecutorThread] Is the system of GemFire version: 7.0[06/02/2013 INFO 17:39:23.710 IS JMXCallExecutorThread] The LIMIT clause is supported by this version of the GemFire system: false[06/02/2013 INFO 17:39:23.711 IS JMXCallExecutorThread] The user is connected successfully to JMX Manager to idcprdgflocator2.carecorenational.com: 1099[06/02/2013 INFO 17:40:01.633 IS query run] Pool preparation for members:[06/02/2013 SERIOUS, 17:40:04.692 IS run query] Error occurred during execution of the query: com.gemstone.gemfire.mgmt.DataBrowser.controller.QueryConfigurationPrms@5608a6fc com.gemstone.gemfire.mgmt.DataBrowser.query.QueryExecutionException: com.gemstone.gemfire.cache.client.NoAvailableServersExceptionat com.gemstone.gemfire.mgmt.DataBrowser.query.QueryUtil.executeQuery(QueryUtil.java:74)at com.gemstone.gemfire.mgmt.DataBrowser.connection.internal.GemFireClientConnectionImpl.executeQuery(GemFireClientConnectionImpl.java:122)to com.gemstone.gemfire.mgmt.DataBrowser.controller.internal.QueryExecutionHelper$ QueryExecutor.run (QueryExecutionHelper.java:169)at java.lang.Thread.run(Thread.java:662)Caused by: com.gemstone.gemfire.cache.client.NoAvailableServersExceptionat com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.borrowConnection(ConnectionManagerImpl.java:246)at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:135)at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:114)at com.gemstone.gemfire.cache.client.internal.PoolImpl.execute(PoolImpl.java:638)at com.gemstone.gemfire.cache.client.internal.QueryOp.execute(QueryOp.java:51)at com.gemstone.gemfire.cache.client.internal.ServerProxy.query(ServerProxy.java:81)at com.gemstone.gemfire.cache.query.internal.DefaultQuery.executeOnServer(DefaultQuery.java:282)at com.gemstone.gemfire.cache.query.internal.DefaultQuery.execute(DefaultQuery.java:213)at com.gemstone.gemfire.cache.query.internal.DefaultQuery.execute(DefaultQuery.java:195)at com.gemstone.gemfire.mgmt.DataBrowser.query.QueryUtil.executeQuery(QueryUtil.java:70)... 3 more[06/02/2013 SERIOUS, 17:40:04.694 IS query result processor] Error executing query: com.gemstone.gemfire.mgmt.DataBrowser.query.QueryExecutionException: com.gemstone.gemfire.cache.client.NoAvailableServersExceptionat com.gemstone.gemfire.mgmt.DataBrowser.query.QueryUtil.executeQuery(QueryUtil.java:74)at com.gemstone.gemfire.mgmt.DataBrowser.connection.internal.GemFireClientConnectionImpl.executeQuery(GemFireClientConnectionImpl.java:122)to com.gemstone.gemfire.mgmt.DataBrowser.controller.internal.QueryExecutionHelper$ QueryExecutor.run (QueryExecutionHelper.java:169)at java.lang.Thread.run(Thread.java:662)Caused by: com.gemstone.gemfire.cache.client.NoAvailableServersExceptionat com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.borrowConnection(ConnectionManagerImpl.java:246)at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:135)at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:114)at com.gemstone.gemfire.cache.client.internal.PoolImpl.execute(PoolImpl.java:638)at com.gemstone.gemfire.cache.client.internal.QueryOp.execute(QueryOp.java:51)at com.gemstone.gemfire.cache.client.internal.ServerProxy.query(ServerProxy.java:81)at com.gemstone.gemfire.cache.query.internal.DefaultQuery.executeOnServer(DefaultQuery.java:282)at com.gemstone.gemfire.cache.query.internal.DefaultQuery.execute(DefaultQuery.java:213)at com.gemstone.gemfire.cache.query.internal.DefaultQuery.execute(DefaultQuery.java:195)at com.gemstone.gemfire.mgmt.DataBrowser.query.QueryUtil.executeQuery(QueryUtil.java:70)... 3 moreIf you set the gemfire bind-address on the cache server, applications will be able to connect. If a bind-address is not defined in gemfire.properties for a server remote cache, applications unfortunately just silently by default is localhost. This is something that will have to solve. In the meantime, you can work around this by setting the property gemfire bind-address on the cache servers for either the IP address or host name.
-
Data not to see the detail block on running the query
I have a dev - 6i form. It contains two revenge joined database. The form was working properly but now all of a sudden, as I F8 run query it gives two error messages and do not run the block of detail data.
FRM-40819: System Variable is not editable.
FRM-40735: trigger YOU POPULATE DETAILS raised unhandled exception ORA-06502.
What is the reason how to get rid of him?Hello
Unless changes occurred, you will not get error, maybe it occurred without your knowledge.
Cases - open your source fmb file, rename and delete the link and create the link - compiles now.
Run the form, and then paste the result here.
-------------
Gul says:
I have a dev - 6i form. It contains two revenge joined database. The form was working properly but now all of a sudden, as I F8 run query it gives two error messages and do not run the block of detail data.FRM-40819: System Variable is not editable.
FRM-40735: trigger YOU POPULATE DETAILS raised unhandled exception ORA-06502.
What is the reason how to get rid of him? -
If I press the button 2 times to run the query 2 times
Hello..
If I press the button 2 times to run query 2 times
I want to limit this problem, than a run time enough.
no need to rerun query when I press the button because it will make the erroneous data.
Please give me a solution
MahaHello Maha
did you use KEY-EXEQRY trigger and turn off the query button?
SET_ITEM_PROPERTY('BLOCK1.) REPRINT ', ENABLED, PROPERTY_FALSE);
Sorry not clear for me, but plu everything sounds good :)
Kind regards
Amatu Allah
-
How do I run the query by quarter
Hi all, I would like to run this query based on the users selection from the interface. For example if the user select year 2011 and quarter 1, then this code will be like this AND (B.DATELET >= TO_DATE ('2011-01-01', 'YYYY-MM-DD') AND B.DATELET <= TO_DATE ('2011-03-31', 'YYYY-MM-DD')) When the user select year 2011 and quarter 2 then this code will be like this AND (B.DATELET >= TO_DATE ('2011-04-01', 'YYYY-MM-DD') AND B.DATELET <= TO_DATE ('2011-06-30', 'YYYY-MM-DD')) Will this possible to change my code here or I need to code this in PL/SQL? any clue will be appreciated. SELECT DISTINCT COUNT (P.CPROJNUM) ProjectAwarded, SUM (MIN (c.calcbtot)) AwardedDollarAmount, SUM (COUNT (C.VENDOR)) NumberOfBidders, (SUM (COUNT (C.VENDOR)) / (COUNT (P.CPROJNUM))) AverageNumberOfBidder FROM BIDDERS C, BIDLET B, LETPROP L, PROPOSAL P WHERE C.LETTING = B.LETTING AND P.CONTID = L.LCONTID AND C.LETTING = L.LETTING AND C.CALL = L.CALL AND l.lcontid IN (SELECT lcontid FROM letprop c, PROPOSAL d WHERE datestat IS NOT NULL AND UPPER (letstat) <> 'R' AND UPPER (letstat) <> 'B' AND TRIM (UPPER (TIMELET)) = TRIM ('9:30 A.M.') AND c.LCONTID = d.CONTID) AND (B.DATELET >= TO_DATE ('2011-04-01', 'YYYY-MM-DD') AND B.DATELET <= TO_DATE ('2011-06-30', 'YYYY-MM-DD')) GROUP BY l.call
Hello
If: p_year and: p_quarter are variables NUMBERS, container of the year and the quarter you want, then you can do something like this:
WITH got_report_start_date AS ( SELECT ADD_MONTHS ( DATE '2000-01-01' , (12 * (:p_year - 2000)) + ( 3 * (:p_quarter - 1)) ) AS report_start_date FROM dual ) -- Everything above is NEW SELECT DISTINCT COUNT (P.CPROJNUM) ProjectAwarded, SUM (MIN (c.calcbtot)) AwardedDollarAmount, SUM (COUNT (C.VENDOR)) NumberOfBidders, (SUM (COUNT (C.VENDOR)) / (COUNT (P.CPROJNUM))) AverageNumberOfBidder FROM BIDDERS C, BIDLET B, LETPROP L, PROPOSAL P , got_report_start_date r -- NEW WHERE C.LETTING = B.LETTING AND P.CONTID = L.LCONTID AND C.LETTING = L.LETTING AND C.CALL = L.CALL AND l.lcontid IN (SELECT lcontid FROM letprop c, PROPOSAL d WHERE datestat IS NOT NULL AND UPPER (letstat) <> 'R' AND UPPER (letstat) 'B' AND TRIM (UPPER (TIMELET)) = TRIM ('9:30 A.M.') AND c.LCONTID = d.CONTID ) AND B.DATELET >= r.report_start_date -- CHANGED AND B.DATELET < ADD_MONTHS (r.report_start_date, 3) -- CHANGED
Look at the comments that say NEW or MODIFIED; the rest is just what you've posted.
Note that you must use < (not=""> <=) when="" testing="" the="" end="" of="" the="" date="" range,="" and="" the="" date="" after="" the="">=)> < sign="" is="" the="" first="" date=""> NOT be included in the results.
-
Is it possible to run the query created in Discoverer Plus (v10) from PL/SQL
Hello
As a subject - is it possible to create a PL/SQL code (or any other), who runs a query saved in Discoverer?
Concerning
PiotrHello
This table is not part of the discoverer EUL and is probably maintained by a trigger of discoverer. The trigger can save the SQL used in the workbook in a custom table when the workbook is run. This is why the table will contain the last SQL for all workbooks that have been executed. It may be what you want but does not contain the last SQL for all workbooks.
Rod West
-
Trigger to run the query when the value of LOV is selected
HI guys,.
I have a form in which I have 2 fields in Master and 4 fields in detail, showing all on the same canvas.
I put a "execute_query" in when_new_form_instance trigger so that when I open the form it is pre - filled.
The fields get the values LOVs. I want to run the master block query when the user selects a value in LOV, then in what trigger should I put it.
I tried in 'when_validate_item' and 'when_list_changed' triggers, but it showed an error.
So, what should I do?
Concerning
Ranjanuser8664136 wrote:
I want to run the master block query when the user selects a value of LOVIf master block (header) is based on the table, using LOV without pressing enter_query firstly, update existing record.
Here's my version (Andreas, sorry, I used your code :))TO KEY-LISTVAL:
DECLARE tm TIMER:=FIND_TIMER('TM_QUERY'); BEGIN IF ID_NULL(tm) THEN tm:=CREATE_TIMER('TM_QUERY', 1, NO_REPEAT); END IF; ENTER_QUERY; END;
In WHEN-TIMER-EXPIRED:
IF SHOW_LOV('LOV') THEN EXECUTE_QUERY; END IF;
-
Hello world
First of all I must say that I am a newbie in Alice & jdev and also at this forum. So I ask sorry in advance for maybe a few obvious questions.
Here you go, I am currently using JDev version: 11.1.2.3.0.
Scenario: I created an OT and three based on VO. The first VO is used as a form and has a LOV as a field that displays the names of the entities are not currently assigned to any side (available for selection). The other two VO are displayed as tables and each one has a WHERE clause in the query to display the correct data, based on a value of one of the value of fields in tables (i.e. the parts mentioned above).
What I want to do is to update the content of their iterators correspondents so that they to display up-to-date data (when an entity is assigned to one side or when it is removed or he is available for selection again).
I use a clove of support for it:
public class RefreshBean {}
public RefreshBean() {}
}
public String refresh() {}
DCB = DCBindingContainer
(DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding iter = DCB.findIteratorBinding ("SellerVO1Iterator");
iter.executeQuery ();
ITER = DCB.findIteratorBinding ("BuyerVO1Iterator");
iter.executeQuery ();
ITER = DCB.findIteratorBinding ("PartiesContractsView1Iterator");
iter.executeQuery ();
Returns a null value.
}
}
It is called when I press the button Commit (or Rollback).
Is that for arrays, it works fine, but not for the LOV (PartiesContractsView1Iterator), which she gets updated when the application is redeployed, or when restoring touches (strange).
The only difference I see in the Commit and Rollback properties (except the resetActionListener for Rollback) is the immediate property which has the value true in Rollback and false in Commit. I tried casually set immediate validation for real, but have only a strange behavior.
Any help would be appreciated.
Thnx in advance, Charlotte.
Published by: Endrik Lelo on 6 June 2013 23:38Just to post the last result of my research. Using Rollback like I said would be tricky, and it could cause unknown behavior. So, I found the right solution.
I've got the VO of the iterator and the Module of the Application. That I called the clearVOCaches of her method.
This code snippet is added after the iterator I wanted to refresh:
ViewObject vo = iter.getViewObject ();
vo.getApplicationModule () .clearVOCaches (null, true);
-
Is it possible to run the cfquery command when the user clicks on a line (inside the table) using the javascript onclick command.
I activates a button based on some queries when it is clicked on a particular record.
Thanks in advance.What do you use for your "table of records? A link, select box, radio, div buttons?
Not sure if I have this right, but you know the record number beforehand and they exist in the table. Fix?
You know what registration numbers should be allowed to deactivate/activate the button beforehand. Fix?Try this:
It's your page processing:
You can click on a registration number and it will toggle the State of the button. If you need each file has a toggle button, this can be done too. Code must be changed.
-
Change in color of the element when it is activated to run the query?
I have master detial shape for up to three level, I want as the background color of the item change when our mouse over that element in run query. Please if any body tried and success please share with all regards and thanks in advance.
Abbas.Try setting VISUAL_ATTRIBUTE by set_item_instance_property.
Maybe you are looking for
-
When calling from my iphone, I get a busy signal, but it does not
Iphone5S: when calling from my Iphone, they get a busy signal, but I do not use it.
-
This is to say that it is not compatible with my version of windows, I tried to open it with other versions of windows, xp, or 2000 and it does not open. He refuses to install and I am really frustrated. The bed 16-bit application error is... Any hel
-
I applied the MS temporary FIX to deal with the zero-day exploit. It doesn't bother the upgrade from Vista to 7?
-
Display no. DP U2414H, XPS 8700.
I just unboxed and configure my new PC from Dell XPS8700 and the new Dell U24214H monitor. I can't monitor to work and continually get "No. Displayport Cable" message on the screen. I rebooted several times and no luck. Any ideas?
-
We have several older versions of Photoshop licenses that have been installed on the workstations to which we do not have access more, cannot reactivate these versions photshop on other stations to work because it is not possible to obtain the number