Static LOV returns an incorrect value in a table
I created a tabular form and when the form is created, I have to go in and edit the source of the region to include a decoding of one of the columns that I chose in the wizard. I use tables to create users for my application using a custom authentication scheme. I decode the password column to display either Set Password or reset the password. Therefore, it is necessary to change the code.++ Code +++
Select user_name, created_on, expires_on, user_id, $admin_user,
decode (password, null, 'Set Password', 'Reset Password') PR
of app_users
where user_name! = "ADMIN".
++++++++++++++++++++++++++++++++++++++++++++++
I have a static LOV:
Yes; Y, no.; N
I use this to indicate whether the user is an administrator or not
I can fill data in the areas of text without a problem, but when I chose Yes for the admin_user column he always returns a value of "n" once I hit the Send button.
I can then go and you change this value after registration, and it will then submit the admin_user as column "Y".
Any ideas as to why its doing this and how to get it to stop?
Is that occur when you add a new row of data?
Any chance that there is a lack of "n" somewhere when you add new data?
Jeff
Tags: Database
Similar Questions
-
PDEElementGetBBox returns an incorrect value
Hello
I have developed a plugin that remove the object such as text, image, and path with respect to the coordinates of user input. In some cases, the value obtained by PDEElementGetBBox return the false value.
Code I used
If (PDEObjectGetType ((PDEObject) pdeElement) == kPDEPath)
{
PDEElementGetBBox (pdeElement, & bbox);
float PathTop = ASFixedToFloat (bbox.top);
float PathBottom = ASFixedToFloat (bbox.bottom);
float PathLeft = ASFixedToFloat (bbox.left);
float PathRight = ASFixedToFloat (bbox.right);
If (the Condition is true)
{
PDEContentRemoveElem (pdeContent, j);
}
}
Bbox return an incorrect value
Is all that I'm missing
Hmm. It seems that the method returns the BBox of the shape of XObject. This is the bounding box used to design the form elements, not the bounding box when she turned on the page scaling and offset. The documentation says that the BBox is returned in the 'user space '. I wonder, if you need to use PDElementGetMatrix and apply it to the BBox returned in this case - maybe anyway and you had the chance before - have you tried PDEImages?
-
PL/SQL in dynamic Action seems to return an incorrect value
Hi all
I am very new to the Apex and PL/SQL, so I don't know if I did something wrong here.
I have a form with a shuttle service (P4_ITEMS) and a field display only (P4_ORDER_TOTAL). I have a dynamic action put in place with the following PL/SQL:
declare tab apex_application_global.vc_arr2; total number := 0; itemPrice number; begin tab := apex_util.string_to_table (:P4_ITEMS); for i in 1..tab.count loop select PRICE into itemPrice from PRODUCTS where PRODUCT_ID = tab(i); total := total + itemPrice; end loop; return total; end;
If I understand correctly, tab must contain all the elements that are in the 'selected' part of the shuttle. I try to summarize the prices of selected items and return the set. Pretty simple, right?
Here is some info on the dynamic Action itself:
Event: Change; Selection type: Article (s); Article (s): P4_ITEMS (the shuttle)
The event (the PL/SQL function running) is also set to pull on the loading of the page. It is near the top not to expect results, so during the calculation, display field disappears briefly.
Here's the number: P4_ORDER_TOTAL updates only correctly when I first load the page. I enabled debugging but I changed my Shuttle, then checked out.
He recorded the P4_ORDER_TOTAL element. In this case, we will say it was 363.08. I added an item on the agenda and the PL/SQL is executed. The result, however, is 363.08, although he should have gone to the top. If I leave the page and then click its tab again, the order is always there, except that this time that it runs again the PL/SQL and it updates the P4_ORDER_TOTAL field to the correct value.
Can someone explain what is happening here? I can't understand why it isn't like I intend to work.
Feel free to ask me more questions if I'm not well explained.
Thanks in advance!
klanchman wrote:
I am very new to the Apex and PL/SQL, so I don't know if I did something wrong here.
Always include the following information in your question:
- Full version of APEX
- Complete version/edition/host operating system database
- Server Web architecture (EPG, SST or APEX listener/operating system host and versions)
- Browser (s) and version (s) used
For the layout and Visual set formatting issues. also include:
- Theme
- Type of zone
- Models used
Here is some info on the dynamic Action itself:
Event: Change; Selection type: Article (s); Article (s): P4_ITEMS (the shuttle)
The event (the PL/SQL function running) is also set to pull on the loading of the page. It is near the top not to expect results, so during the calculation, display field disappears briefly.
Here's the number: P4_ORDER_TOTAL updates only correctly when I first load the page. I enabled debugging but I changed my Shuttle, then checked out.
He recorded the P4_ORDER_TOTAL element. In this case, we will say it was 363.08. I added an item on the agenda and the PL/SQL is executed. The result, however, is 363.08, although he should have gone to the top. If I leave the page and then click its tab again, the order is always there, except that this time that it runs again the PL/SQL and it updates the P4_ORDER_TOTAL field to the correct value.
Can someone explain what is happening here? I can't understand why it isn't like I intend to work.
At the time the dynamic action is executed, the value of P4_ITEMS is not available for the PL/SQL code in session state, it takes place only in the browser. Include P4_ITEMS in elements of Page to submit property the dynamics of the action so that the changed value is updated in the State of session before the PL/SQL code is executed.
-
rowBytes returns an incorrect value
Hello
I am about to create an exporter for a compression format.
I feel a strange situation where the value of ExportRecord-> rowBytes is giving a strange value that gives my code crash Photoshop.
I process the image line by line and initially to create a buffer of size gStuff-> imageSize.h * gStuff - > imageSize.v * gStuff-> aircraft
Now, I get the image data line-by-line, plan by plan, copy it into the buffer I created and move a pointer by rowBytes assuming its value would be the same as imageSize.h to copy the following line.
This caused buffer overruns. After debugging using a simple 1000 x 1000 rgb image, I saw that returned 1008 rowBytes.
For an image of 900 x 900 he returned 912.
Why is this? It should be 1000 and 900 in these cases, I said to get only get a single plane and a single line.
The doc says "rowBytes = the offset between the lines for the requested image data.", so these extra bytes whence? What value do have?
If rowBytes is not the width of the image useful what?
Thank you
DiMI
Scanlines are usually completed within limits of 16 bytes, so rowbytes reflecting.
-
Capabilities.screenResolutionY returning an incorrect value for the iPhone5
Hello
I'm trying to make gui adjustments based on the values returned by flash.system.Capabilities. However, when I test on the iPhone5 in portrait mode the values returned are screenResolutionX: '640' and screenResolutionY: '960'. I am compiling with air 3.5 in renderMode: "gpu" and put the swf metadata tp widthPercent: 100% and the heightPercent: 100%. I'm doing something wrong?
Thank you
CJ
To get the right size, you will need to include a splash screen for the size of the iPhone 5, with the name of "[email protected]". This image would be 640 x 1136, and when he sees iOS, it knows that you want the iPhone 5 to use the entire screen.
-
PIC search returns an incorrect value
I use advanced research VI for the tendency of a power spectrum amplitudes. Advanced VI research is not showing the correct amplitudes. They are off by a little bit every time. I watched the berries from the exit of the power spectrum, and I checked the cutting-edge research is get good input data but out something unexpected. I have advanced research for: 1) Single Max Peak, threshold = 0, start = 57.8 Hz, Stop = 59 Hz and 2) Single Max Peak, threshold = 0, Start = 61 Hz, Stop = 62.2 Hz. Or a poster of the correct value. I'll post my code, but the file I open is a .dat so I can't post that.
Research of spectrum VI made an adjustment to identify the peaks of the curve. Advanced search algorithm is described in the help:
Details of the spectrum SVFA cutting-edge research
The Spectrum Peak Search VI SVFA finds all of the peaks in the spectrum and makes an estimate amplitude/frequency or amplitude/order on each individual pic. The VI works on the ghosts of greatness and power.
Usually, the spectrum is calculated based on an input with windows signal. The closed shape of any COS, such as Hanning, Hamming, Blackman-Harris window and so on, is known. The presence of three dominant bins indicates a local maximum on power spectrum. So, when the Spectrum Peak Search VI SVFA locates the three dominant bins, a curve maps algorithm the shape of window on three bins and believes that the true frequency and amplitude of this particular tone. The following illustration of the diagrams of the concept of the algorithm.
==================
If you want the local maxima of the spectra, you can use the following code:
-
stageHeight returns an incorrect value
Hi guys,.
I am finally making the jump to AS3 and pressing on, so thanks for any help here (I still) search first.
Writing a custom for my application Document class. I just set up a simple GUI with a header bar, toolbar and background using the drawing API so far. But in trying to position dynamically, I can't seem to get the correct size of the height of my step. It is too short of 100px!
I write the code here in the hope, there's something stupid I do and you can point that out.
Thank you.
Jim.Well, I looked more and found that this is a stupid bug that does not (apparently) appear in the published swf file. I've never noticed this before because it's never happened to me before.
-
return the minimum value from a table
Hi all, how can I output the lower value within an array of numbers?
I have this but it does not work, it is always the first number in the table.
function minF(a:Array):Number {var min:Number = [0]; for (var i: Number = 1; i >.) Length; i ++) {if (a [i] > min) {min = a [i];} } else {trace ("buahMin!"); return min}}; }
Thanks to you all.
This is because you have the sign on your conditional loop wrong.
You must make the comparison for all I less than your length of array.
function minF(a:Array):Number {}
var min:Number = [0];
for (var i: Number = 1; i
}
return min;
}
-
Returns all the values in the table
Hi team
I want a query please help
I have a table emp in that we ename, empno, sal comm
as
Select ename, empno, EMP comm
where comm = 300
It will run 300 records
If I don't give any number of comm as null
so I want to run the date all the
I user nvl
as
Select ename, empno, EMP comm
where comm = nvl (& comm, comm);
output: bad.Yes, it's the query I use also and is to return all the lines
SQL > select * from emp where nvl (to_char (comm), '0') = nvl (to_char(&comm), nvl(comm,'0'));
Enter the value of comm: "
old 1: select * from emp where nvl (to_char (comm), '0') = nvl (to_char(&comm), nvl(comm,'0'))
new 1: select * from emp where nvl (to_char (comm), '0') = nvl (to_char (""), nvl(comm,'0'))EMPNO, ENAME, JOB HIREDATE DEPTNO COMM SAL MGR
---------- ---------- --------- ---------- --------- ---------- ---------- ----------
7369 SMITH COMMITTED 7902 17 DECEMBER 20 800 80
7499 ALLEN 7698 1600 20 FEBRUARY SALESMAN 81 300 30
7521 WARD 7698 1250 22 FEBRUARY SALESMAN 81 500 30
7566 JONES MANAGER 7839 2975 2 APRIL 81 20
7654 MARTIN 7698 28 - SEP - 81 1250 1400 30 SALESMAN
7698 BLAKE MANAGER 7839 2850 MAY 1, 81 30
7782 CLARK MANAGER 7839 2450 JUNE 9 81 10
7788 SCOTT ANALYST 7566 3000 APRIL 19, 87 20
PRESIDENT OF 7839 17 NOVEMBER KING 81 5000 10
7844 TURNER 7698 08 - SEP - 81 1500 0 30 SALESMAN
7876 ADAMS 7788 1100 23 MAY CLERK 87 20EMPNO, ENAME, JOB HIREDATE DEPTNO COMM SAL MGR
---------- ---------- --------- ---------- --------- ---------- ---------- ----------
7900 7698 DECEMBER 3, CLERK JAMES 81 950 30
7902 7566 3000 3 DECEMBER ANALYST FORD 81 20
7934 MILLER COMMITTED JANUARY 7782 1300 23 82 1014 selected lines.
Kind regards
Navneet -
Return of NULL values in the table of results
OK the guru! Your genius has helped me before (see this post... ( Help to return the query results table ) but now I would return null results 0 to the number. Below is the structure of the table (again) and my desired result (new question):
The structure of the table is:
Year of sport
Baseball 10-11
Football 10-11
Football 11-12
Football 11-12
Football 11-12
Baseball 11-12
The result should be sports in each year and should be grouped by year but shown as columns so:
(GROUP OF the year)
1 hockey, ice 0, 1, Soccer baseball
2, 1, Football Soccer 1, Baseball
The new portion of this question is the "0, Soccer.
Thanks for any help!Hello
For counties of 0, you must join of a table that has one row per sport.
If you do in fact have such a table, you can build a game on the fly that will work just as well of results:WITH all_sports AS ( SELECT DISTINCT sport FROM t ) , sport_year_totals AS ( SELECT s.sport , t.year , COUNT (t.sport) AS cnt FROM all_sports s LEFT OUTER JOIN t PARTITION BY (year) ON s.sport = t.sport GROUP BY s.sport , t.year ) SELECT year , LISTAGG ( cnt || ', ' || sport , ' ' ) WITHIN GROUP (ORDER BY sport) AS sports FROM sport_year_totals GROUP BY year ORDER BY year ;
However, you may find it useful to have a table with one line per sport really. In this case, you wouldn't need the first auxiliary request. Simply use your name of the table where I used all_sports.
I copied the example of data that MichaelS posted in your previous thread {message identifier: = 10388879} below.
You should always post sample data yourself when you ask a question, especially if everything you have to do is copy and paste from another thread.CREATE TABLE t as ( select 'Baseball' sport, '10-11' year from dual union all select 'Football', '10-11' from dual union all select 'Football', '11-12' from dual union all select 'Football', '11-12' from dual union all select 'Soccer', '11-12' from dual union all select 'Baseball', '11-12' from dual );
-
How to return all the values in the table in AE/w alert() message script?
Here is my code:
{ var selectedItem = app.project.activeItem; var thisProj = app.project; var layerList = new Array(); var compList = new Array(); function listLayers(compNum){ for(i=1;i<=compNum.numLayers;i++){ layerList.push(compNum.layer(i).name); } } function listComps(){ for(i=1;i<=thisProj.numItems;i++){ if(thisProj.item(i) instanceof CompItem){ compList.push(thisProj.item(i).name); if(thisProj.item(i).numLayers>0){ listLayers(thisProj.item(i)); } } } } listComps(); alert("here's a list of all comp names:" + compList); }
When I run it with ExtendScript tool within EI, the alert() will cause this error message:
invalid numeric result (division by zero?)
It works fine if I don't write on one of the elements of the array. For example:
alert("blablabla"+complist[1];
Or if I leave aside the ' + '.
How can I write on the Board or even several bays at the same alert() and adding text between the two?
Thanks in advance,
Fynn
Try this way:
Alert ("here is a list of all layout names:" + compList.toString ());
Dan
-
COS() returning incorrect values
Hi, anyone of you tried get values of cos() to native c++... ? It seems that sin values are correct, but the cos returns incorrect values. As for example, sin(pi/2) Returns infinity. No idea what could be wrong?
@SuhairZain,
#include
#include int main(void) { float pi = 3.14159265f; printf("Result: %f\n", sin(pi/2)); } Result: 1.000000
-
LOV return the base column value
I have a problem with a LOV in dessiger 6i. Did not work for years in this, but I need to fix something in an earlier application.
MU problem, is that I created a new colum that is a FK in table A and the PK in table B.
I created a LOV on the ID and Description of table B, because I want to view the description of a record in table B in the LOV, but I want to save the FK (the ID of table B in table a.)
I; ve created the LOV, works very well, but the value of the ID is not be stored in the FK in table A. Am I missing something? As part of back to the LOV? I searched and searched, but did not succeed. Please any suggestion how can I bind the LOV to CF in Designer?
Thanks in advance.user564819 wrote:
I have a problem with a LOV in dessiger 6i. Did not work for years in this, but I need to fix something in an earlier application.
MU problem, is that I created a new colum that is a FK in table A and the PK in table B.
I created a LOV to the Description & ID of table B, because I want to view the description of a record in table B in the LOV, but I want to save the FK (the ID of table B in table a.)
I; ve created the LOV, works very well, but the value of the ID is not be stored in the FK in table A. Am I missing something? As part of back to the LOV? I searched and searched, but did not succeed. Please any suggestion how can I bind the LOV to CF in Designer?LOV a return clause. the return of the A.FK value ID column clause filed. and the id table in the column of table A FK.
Hope this will help you...
If someone answer is useful or appropriate, please mark accordingly.
-
Lov return value in a variable to library package (PLL)
Hello world!
I use a kind of generic/dynamic LOV for multiple forms (referenced LOV and custom in a library (PLL) functions.
Is anyway to set a LOV to return a value into a variable package library?
When I try, I get the error "+ name of the FRM-11908 element must be valid and exists in the form. +"When you click on the '+' column mapping LOV...
I also tried to use the global variable... I can put my LOV to return value to a global variable... but I can not access in the library package... I get an error: "+ error 49 bad bind variable... blah blah blah... met the OVERALL symbol while waits for blah blah blah... +»
Did anyone of you knows how to work around these errors and get my LOV returns values returned in a package variable or access a global variable in a package?
Thank you
GuillaumeApart from the form (pll, menu), read you with Name_In() and you write with Copy()
François
-
Hello
I have a Popup Lov key (description of the poster, returns the key value) and I want a default value. It is based on a list (user name, id).
I tried to put the id of the user logged on as default, but what I see on the screen in the field is the value of the id, not the username.
How can I pass the user id and see the user name?
Thank you.Oh! My bad, I thought you are talking about regualt lOVs not popups.
OK, so that's what you need to do, I tried it and it worked for me:
your popup LOV > default > type: body of the PLSQL function > and enter a query like:
declare
UID number.
Start
Select user_id from the uid of the user
where UPPER (username) = UPPER(:APP_USER);This should show username and retune userid.
Hope this helps,
Sam
Please give good answers by marking correct or useful.
Maybe you are looking for
-
Before the latest IOS update, calendars and contacts on all devices remained the same. Now, the ipad only synchronizes with other devices if a change is made on the iPad. IPad will not update the case. IPad 4, IOS 9.3.1. Any ideas?
-
HP Pavilion 15 laptop: update BIOS SP72549
Tried to install the recommended update SP72549. Failed to install. Do I need this. PC works fine.
-
How to permanently change the font for all emails color
How can I change the color of the font for all my emails constantly? E-mail address is removed from the privacy *.
-
I have Mcafee security installed. Do I need to install Windows Defender as extra security?
-
error java\jre6\bin\ssvagent.exe on IE start-up
Hello Would appreciate your help in fixing this issue during startup of IE works on vista java\jre6\bin\ssvagent.exe