How to forget the values of database in condition of dynamic action
Hi allIn my request for leave.
Emp_name
From_date
To_date
No_of_days
Status
I have two fields Date From_date and To_date in my form.I want to display the error if someone selected the From_date and To_date that has already been applied.
For example,.
If the employee employee already applied the leave.
From_date: June 12, 2012 and To_date: June 15, 2012 and if it is stored in the database.
If there still Ih tries to apply the dates between June 12, 2012 and June 15, 2012 I want to show the error message that are already applied in the selected dates, or alert
For this, I tried action dynamic, is - it possible to the dates mentioned in a State of DA (in the list or not list) the dates of from_date and to_date the database?
or what idea I can follow to verify this. ?
Can someone give an idea?
Thank you.
Hello
How can I insert the authorization information in your table? using process page?
If this is the case, add a page-level validation. posting type must be 'function body of PL/SQl returning a Boolean.
in the body of PL/SQL
DECLARE
ROW_COUNT NUMBER(1,0);
BEGIN
SELECT COUNT(*) INTO ROW_COUNT
FROM TABLE_NAME
WHERE FROM_DATE = :from_date AND TO_DATE = :to_date AND USER_NAME = :APP_USER;
IF(ROW_COUNT >0)THEN
RETURN FALSE;
END IF;
END;
in the validation process, you can specify the error message to be displayed when validation fails.there you give the message that you want to.
Published by: Apex-EPA on June 11, 2012 22:27
Tags: Database
Similar Questions
-
How to know the value of database user profile optoins?
I have debug PA activated for a particular user in my e-Business suite environment. I need to know for which user is enabled.
FND_PROFILE_OPTIONS shows that his permit user and responsibility level. But I'm not able to find out what user/responsibility is allowed, as this watch only flags.
Can anyone tell me please what table/view, I must check for this.Hi again;
You can also view
How to find all the users with a particular defined profile Option? [367926.1 ID}
How to change the value of the profile without forms Option? [943710.1 ID]Respect of
HELIOS -
How to get the value of an xml element attributes
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
I'm trying to parse an XML document
< response >
< well uwi = "102112900816W400" > < / well >
< production >
< PRODUCING_ENTITY >
< NUMBER YEAR = '2009' >
< NUMBER of MONTHS = LAST_DAY '1' = "31" / >
< NUMBER of MONTHS = LAST_DAY '2' = "28" / >
< NUMBER of MONTHS = LAST_DAY "3" = "30" / >
< / YEAR >
< NUMBER YEAR = '2010' >
< NUMBER of MONTHS = LAST_DAY '1' = "31" / >
< NUMBER of MONTHS = LAST_DAY '2' = "28" / >
< NUMBER of MONTHS = LAST_DAY "3" = "30" / >
< / YEAR >
< NUMBER YEAR = '2011' >
< NUMBER of MONTHS = LAST_DAY '1' = "31" / >
< NUMBER of MONTHS = LAST_DAY '2' = "28" / >
< NUMBER of MONTHS = LAST_DAY "3" = "30" / >
< / YEAR >
< NUMBER YEAR = '2012' >
< NUMBER of MONTHS = LAST_DAY '1' = "31" / >
< NUMBER of MONTHS = LAST_DAY '2' = "28" / >
< NUMBER of MONTHS = LAST_DAY "3" = "30" / >
< / YEAR >
< / PRODUCING_ENTITY >
< / production >
< / well >
< well uwi = "100092900816U400" > < / well >
< production >
< PRODUCING_ENTITY >
< NUMBER YEAR = "1999" >
< NUMBER of MONTHS = LAST_DAY '1' = "31" / >
< NUMBER of MONTHS = LAST_DAY '2' = "28" / >
< NUMBER of MONTHS = LAST_DAY "3" = "30" / >
< / YEAR >
< NUMBER YEAR = '2000' >
< NUMBER of MONTHS = LAST_DAY '1' = "31" / >
< NUMBER of MONTHS = LAST_DAY '2' = "28" / >
< NUMBER of MONTHS = LAST_DAY "3" = "30" / >
< / YEAR >
< NUMBER YEAR = '2001' >
< NUMBER of MONTHS = LAST_DAY '1' = "31" / >
< NUMBER of MONTHS = LAST_DAY '2' = "28" / >
< NUMBER of MONTHS = LAST_DAY "3" = "30" / >
< / YEAR >
< NUMBER YEAR = "2003" >
< NUMBER of MONTHS = LAST_DAY '1' = "31" / >
< NUMBER of MONTHS = LAST_DAY '2' = "28" / >
< NUMBER of MONTHS = LAST_DAY "3" = "30" / >
< / YEAR >
< / PRODUCING_ENTITY >
< / production >
< / well >
< / answer >
For the purposes of the practice, I have saved this in my table tdw_test_xml_files;
My goal is to get the /WELL/@uwi and /YEAR/@NUMBER
UWI YEAR
------ ---------------
102112900816W400 2009
102112900816W400 2010
102112900816W400 2011
102112900816W400 2012
100092900816U400 1999
100092900816U400 2000
100092900816U400 2001
100092900816U400 2003
I tried this... but I can't get the value of the attribute for the element < YEAR >
Select r.uwi, r.year
of tdw_test_xml_files.
XMLTABLE
(
"for $WELL in $ response/WELL/good.
for $DEPT to $UWIIDX in $WELL, Production, PRODUCING_ENTITY, YEAR
return < RESULT >
University of the West Indies West <>{fn:data($WELL/@uwi)} < / UWI >}
{
$WELL/production/PRODUCING_ENTITY/YEAR [$UWIIDX]-> (I don't know how to extract the value of the attribute here)
}
< / RESULT > '
passing FILECONTENT as 'GOOD '.
columns
UWI VARCHAR (50),
YEAR vARCHAR2 (24)
) r
/
If I do this; I get the Cartesian plan result set, which is not my goal
SELECT xtab.*, xtab2.*
OF tdw_test_xml_files, XMLTable (' for $i in/Response/Well)
Return $i"
PASSAGE filecontent
Uwi varchar2 COLUMNS (50) PATH'@uwi'
rn for ORDINALITE
) xtab
, XMLTable (' for $i in/Response/Well/Production/PRODUCING_ENTITY/YEAR)
Return $i"
PASSAGE filecontent
COLUMNS year varchar2 (50) PATH'@NUMBER'
) xtab2;
Any help will be highly appreciated thanks...I'm just curious to know how make the query now in unique XMLTable, not that I am forced by using x number of xmltable; - P, just look more clean...
Here goes:
SQL> SELECT x.* 2 FROM tdw_test_xml_files t 3 , XMLTable( 4 'for $i in /Response/Well 5 , $j in $i/Production/PRODUCING_ENTITY/YEAR 6 , $k in $j/MONTH 7 return element r { 8 $i/@uwi 9 , element year {data($j/@NUMBER)} 10 , element month {data($k/@NUMBER)} 11 }' 12 passing t.filecontent 13 columns uwi varchar2(50) path '@uwi' 14 , yr varchar2(4) path 'year' 15 , mon varchar2(2) path 'month' 16 ) x 17 ; UWI YR MON ------------------------------ ---- --- 102112900816W400 2009 1 102112900816W400 2009 2 102112900816W400 2009 3 102112900816W400 2010 1 102112900816W400 2010 2 102112900816W400 2010 3 102112900816W400 2011 1 102112900816W400 2011 2 102112900816W400 2011 3 102112900816W400 2012 1 102112900816W400 2012 2 102112900816W400 2012 3 100092900816U400 1999 1 100092900816U400 1999 2 100092900816U400 1999 3 100092900816U400 2000 1 100092900816U400 2000 2 100092900816U400 2000 3 100092900816U400 2001 1 100092900816U400 2001 2 100092900816U400 2001 3 100092900816U400 2003 1 100092900816U400 2003 2 100092900816U400 2003 3 24 rows selected
-
How to read the value of list boxes by iteration in a loop For?
I have a lot of list boxes on the front of my VI. I want to know how to read the value of this combo with a loop boxes For. The point is that I don't know how to get the reference of each combo box in a loop.
Any information would be welcome. Thank you!
su27 wrote:
I have a lot of combo boxes on the front of my VI [...]
Be sure to close the references that you have finished with them.
-
How to save the value controls in labview
Hello
I want to know how to record the value of controls in the PC. means if I attribute 5 numeric value to a control, he has to stay there even I restart my PC.And here is a simple example of using - http://decibel.ni.com/content/docs/DOC-15349
-
To build the waveform.vi function how to calculate the value of dt
Dear all
Please guide me How to calculate the value of dt according to waveform.vi of construction
My sampling rate is 25000 and I take 200000 samples.
Kind regards
Muhammad Irfan
It's all simple arithmetic. The inverse of the sampling frequency power of samples is then the dt or the time between samples the number of samples is not relevant.
-
How to connect the value of the input string to numeric values
Hello
I'm trying to figure out how to connect the value of unique user input string to numeric values. Basically I want the user to enter the name of a gas that I have a list for (I think I put the list of gases in a table >). Then I want to match numeric values 2 'a' and 'b', according to which gas, name of the user has set. These 'a' and 'b' values will be automatically matched with the name of the gas in a list that I put. For example, hydrogen gas has the value 3 for "a" and 4 for "b. when the user puts the ' hydrogen' name in a string constant, automatically 'a' and 'b' must be issued.» I have connect a and b to a formula
Thanks for any help
Hello
It is perhaps not exactly what you are looking for, but perhaps you could use the enumerated data type and the array of clusters of points (a, b).
Look at the VI I enclose.
-
How to calculate the value of 2.50e + 2 in the analysis of string function when the %f format string is selected?
the format may be stung a control
-
How to find the value max and min for each column in a table 2d?
How to find the value max and min for each column in a table 2d?
For example, in the table max/min for the first three columns would be 45/23, 14/10, 80/67.
Thank you
Chuck,
With color on your bars, you should have enough experience to understand this.
You're a loop in the table already. Now you just need a function like table Max and min. loop. And you may need to transpose the table 2D.
-
How to get the value of an editField on onUnfocus()
I want to check the value of an editfield on focusout/focusouthandler(), how to get the value in the onUnfocus() method?
getText
-
Hello.. I'm creating an application of streaming, in which I have a list field in a screen like this...
1
--------
2
--------
3
--------
and when the item 1 is selected means a url must be passed to the video player...
I created the list field screen in a package and a video player in other package... but I do not know how to pass the value of the field from the list to the player... Help, please... its URGENT...
You can get the index selected by the listname.getSelectedIndex () method and compare that value with Vector data (data store URL) .that you will give a correct value from the URL and pass it.
-
How to get the value of the TextField on Buton FieldChangeListener
friends I am new on the development of blackberry applications could you please help me how to get the value of text I typed in the textField when I click the button?
constructor
public Dialogs()
{
using design in the same screen
Display display = new MainScreen();
ButtonField btnPress = new ButtonField();
btnPress.setLabel ("press me");
btnPress.setChangeListener (ButtonPressListener);
TxtValue TextField = new TextField();
txtvalue.setLabel ("enter something :");
HFM VerticalFieldManager = new VerticalFieldManager (VerticalFieldManager.FIELD_VCENTER);
HFM. Add (txtValue);
HFM. Add (btnPress);
mainScreen.add (hfm);
pushScreen (mainScreen);
}FieldChangeListener ButtonPressListener = new FieldChangeListener() {}
' Public Sub fieldChanged (field field, int context) {}
Dialog.Alert (t.GetText ());
}
};any help would be appreciated.
You must ensure that your FieldChangeListener has access to the object of txtvalue, while it can make a
String inputString = txtvalue.getText ();
-
How to get the value of a column in sql query?
Hi, anyone knows how to get the value of a column in sql query?
Here is my code, the value must be 1350079224397 in my PB, but I get 0
QString query ("SELECT version FROM db_version");
QVariant result = sda.execute (query);
QVariantMap versionMap = result.toList () such () .toMap ();
If (! versionMap.IsEmpty ())
{
qDebug()<"Version: "="">"Version:><>
}OK, I have the solution
QString query ("SELECT version as version FROM db_version");
-
How to get the value of the interactive report into apex 5 column
Hello
I want to create the master detail report with ajax.
If I want to get the value of a specific column of interactive report when click on one line and has a value of element of selected row column value.
Then use the elements of value to refresh the details report.
You have a better idea to refresh the report Details according to select line of the master report without refreshing the whole page?
Hi SYSMAN2007,
SYSMAN2007 wrote:
I want to create the master detail report with ajax.
If I want to get the value of a specific column of interactive report when click on one line and has a value of element of selected row column value.
Then use the elements of value to refresh the details report.
You have a better idea to refresh the report Details according to select line of the master report without refreshing the whole page?
You can do this with the help of dynamic action. You need to get the value of the column of a line click in IR (using jQuery) and set the value to the elements which, in turn, can be used as a filter to other reports on the same page.
See: How to use the values in the columns of an interactive report (Apex 5)
Can you reproduce your problem on apex.oracle.com and share the credentials of the workspace, so that I can demonstrate how this can be achieved.
See an example of how it can be done with dynamic actions: https://apex.oracle.com/pls/apex/f?p=35467:5
Kind regards
Kiran
-
How to reset the value of a list of entry of null values
Hello
Jdev 12.1.3.0
How to reset the value of a list of entry of null values
Thank you
AR
Place this code in your ViewRowImpl (base) class and use it when you need to reset _all attributes applied by LOV
@Cvele: in fact, this will happen "by design" when you set the attribute which has attached lov to null, so there is no need of additional code.
See also this blog: binary: prevent the execution of query unwanted in British Colombia ADF when used in Non - UI applications
My previous answer is more related to this approach:
DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry(); DCIteratorBinding iterator = bindings.findIteratorBinding("IteratorName"); Row r = iterator.getCurrentRow(); r.setAttribute("SomeAttrib", null);
Dario
Maybe you are looking for
-
Where the Apple iOS 10 health dashboard?
I can't find the health Apple Dashboard in the new operating system. Online on Apple.com help shows a dashboard, but I can't seem to find how to get it. It was in the old version.
-
Any help with my question would be appreciated I won't be writing my favorites and have to connect again to all Web sites in order to save. sraffe8283
-
The data type double in CT that is converted to PDM
Hi allIn short, to be able to remove channels and groups of a PDM file, I convert the file to a tdm, delete channel or group storage using screws and the convert to PDM. The problem is when tdms is converted to tdm, double data types (64-bit) became
-
How to add icons of new programs in the lower plateau just to the right of departure?
For example, the status bar now shows the Excel 2003 icon. I want that it displays the icon of Excel 2010.
-
Windows Media Player will not burn CDs
I have a ton of gripes about this crappy program, at the absence of easy navigation (where the hell is the tab "Check for updates" / "about", * can't find anything) for the long time of waiting just for the stupid thing may work correctly. My questio