Button Condition Failing To Work
Hi,
I use the following in a 'PL/SQL Function Body Returning A Boolean' condition to determine whether or not the button is displayed:
BEGIN
IF :P33_PRIVILEGE != -1 AND :P33_PRIVILEGE_LEVEL != 'NIL' THEN
return true;
ELSE
return false;
END IF;
END;
:P33_PRIVILEGE and :P33_PRIVILEGE_LEVEL are 'Select List' items, where -1 and 'NIL' are the null values. So basically, unless someone has selected items from these two select lists the button should be hidden.
But it doesn't work, the button is always hidden.
What I don't understand is the exact same funtion is used on a Shuttle item on the same page, and that hides and displays as expected.
Any ides why it doesn't work with buttons?
Cheers
Simon
Hi,
I posted a page on apex.oracle.com - and it worked as expected.
I cpoied the PL/SQL code from there onto my own page, and that started working as expected.
Maybe I had a spelling mistake somewhere that i missed, but double checked it so many times.
Anyway thanks for replying to my post.
Cheers
Simon
Similar Messages
-
Disabling Radio Button Conditionally is not working Well
Hi friends,
I have three radio buttons
<li>self
<li>New Hire
<li>On Behalf of
I will be showing this radio button conditionally according to the user who logs into the application.
Assume, suppose if a person 'A' enters into the application means he will be shown only these radio button options ---NH---,----OB----,----Self-----
Suppose, if a person 'B' enters into the application means he will be shown only these radio button options ----NH----,----Self---
If a person 'C' enters into the application means he will be shown only these radio button options ---Self---
I have restricted those radio buttons according to the users who enter into the application using their roles.
But my challenge here is once the user logged in and if he select anyone of the radio button means,
Example if he selects----NH---means, then ---OB----and -----Self---radio button has to disable and if he selects ---OB----means then ----NH-----and ---Self---has to
disable(vice versa).
I have also achieved the same using the DA.
With true action as: javascript Expression i have given the following codings( i have written the below DA for three cases, if the request_class_code is equal to
(NH,OB,S)
var enabled=$v('P22_REQUEST_CLASS_CODE');
if (!$u_SubString(enabled,'S')) $('#P22_REQUEST_CLASS_CODE_2').attr("disabled","disabled");
if (!$u_SubString(enabled,'NH')) $('#P22_REQUEST_CLASS_CODE_0').attr("disabled","disabled");
if (!$u_SubString(enabled,'OB')) $('#P22_REQUEST_CLASS_CODE_1').attr("disabled","disabled"); The above DA is working great only for the user who has the option of viewing three radio buttons in my form(i.e)(NH,OB,S).
For the user who has the option of viewing two or one radio button, it is not working properly(i.e)(NH,S) or(OB,S) or(S).
Why it is not working for the user with two options or with one option radio button means, the source of that radio button property is changing. Since i have taken
the source of my radio button in my DA only when the three options are present.
How i can solve this issue for the user who is having this two radio option or one radio option.
Hope you understood clearly about the problem.
Brgds,
MiniHi,
If I did understand what you like have this might work
var lVal = $v('P22_REQUEST_CLASS_CODE');
$('#P22_REQUEST_CLASS_CODE input:not([value="' + lVal + '"])').attr("disabled","disabled");Regards,
Jari
http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME -
Occasional MacBook Pro 8,1 / Feb 2011 trackpad button fails to work
Having this really annoying problem on occasion with a new 13" MBP (purchased a month ago in Toronto from the Apple Store Eaton) - every once in a while the trackpad button will fail to work. The trackpad will function just fine, but the button will not work no matter what you do. I also have a Magic Mouse; if the trackpad button won't work, neither will the MM.
It's a new MBP 8,1 running Lion, with 8gb RAM (1333mhz DDR3, 4gb per stick) and a new 1Tb drive. I will point out that this error preceded the RAM and HDD upgrade by some time, which suggests it's not due to the new components.
Being new, it doesn't run hot, nor is it due to a swollen battery. I spoke with a friend who suggested a PRAM reset. That didn't work; the behaviour started up again within 1 hour of resetting this.
I've noticed that it only seems to arise with Internet connectivity issues - if I turn WiFi off (on purpose as I want to save battery) and I leave a browser window open, chances are high that I won't even be able to log in using the trackpad button. In these cases I can usually use the keyboard with an Alt-Tab to switch out of hung applications, but it doesn't always work. If Safari is left open (say at a coffee shop) and I take the MBP home, and reconnect, it will frequently show this non-working button behaviour too.
Other 'remedies' or workarounds include re-enabling Wifi off and on again, but that doesn't always work; flipping the lid down, then reopening for another attempt at login doesn't always work either.
I took it back to the store 2 weeks ago, but they kept thinking it would be a hardware issue and wanted to replace the trackpad - without guaranteeing that this would solve the problem. And the fact that it does work again after a log off suggests to me it's not hardware, it's software.
Tonight after the coffee shop at lunch, the MBP button would not work after I returned home. Rebooting twice did not help.
Any ideas, anyone?
Cheers
Massimo SavinoDelete CleanMyMac2. You do not need it and may be a contributing reason for your problem.
Check Activity Monitor for applications that may be using a lot of CPU resources:
http://support.apple.com/en-us/HT203184
Run an Apple Hardware Test:
http://support.apple.com/en-us/HT201257
Note that an error free AHT is not definitive.
You also might test the MBP with the original RAM module in place of the 8GB module you installed. There may be compatibility issues.
Ciao. -
Button condition on page item and Validation error Conflict
Hi,
I have a select list page item and a button on page whose condition is based on the select list page item value(eg, If (:P2_item1='val1'){return true;}) with condition type=PL/SQL function returning boolean. This buttons submits the page.
It' coming fine in normal case. However, if I select some value val2 from the list and then click the button, and if there are any validation errors (like mandatory check or email check fail etc), then the button disappears because it evaluates the button condition based on the changed value(val2), but the page has not yet been submitted because of validation errors.
I think this can be solved if I create the button condition based upon database column value instead of page item as db col value won't change until the page is submitted.
This look like very basic use-case and I would like to know if there is any better solution to this problem.
Note: I am using Apex 4.2.1I don't want to show/hide the button on the change of the page item lov value, so i am not using Dynamic action.
What i was is to make button visible based on a condition(which is based on page item), for which we have condition attribute of a button available.
This is a very common thing where a user chooses the button condition as Value of item/column in expression 1 is null/expr2. But what if the user changes the page item value but it doesn't get submit due to validation error. In that case, the button condition fails.
So, i guess i have to use column name in expression 1, can u tell how to do that?
Expression 1 = IF (:P2_STATUS='val1') then return true;
How to change the above to use db column 'status' instead? Any direct way(like #Status#) or I have to query db to get it using select.
Any alternative approach? -
Power button fails to work about 95% of the time
Hello,
I have a Toshiba P205-S6267 that is having a strange issue.
About 95% of the time the power button fails to work when on battery, and it fails 100% of the time when the AC adapter is plugged in.
I am getting pretty stumped on this one and starting to think I may need to replace the 7-button circuit under the power button. Before I spend the $55 to do that, I wanted to see if anyone had any advice for me.
Here are the things I have tried.
- the standard unplug the power / battery and wait a few minutes then plug it back in.
- tried this only on battery, same issue
- tried only on AC, won't power up at all
- checked AC adapter with multimeter and it was outputting the correct voltage (also it keeps the battery charged still)
- removed the keyboard and speaker cover then reseated the 7-button circuit
- cleaned the ribbon cable contacts and reseated the ribbon cable for the circuit
- removed RAM and tried each stick by itself, no change.
I'm kind of lost here. Again, I am probably at a point where I need to replace hardware but I don't want to drop the cash without some kind of verification that I'm not retarded.
Any assistance or advice is welcome. Thank you.Ah, I've been playing around with this and it seems I was mistaken about the nature of the problem.
It is deterministic, for one. It seemed nondeterministic because the action that makes the glasspane paint() fail is the act of giving focus to the JInternalFrame that the glasspane belongs to.
Why does giving focus to a JInternalFrame disable that frame's GlassPane? I can take focus away from it, and the repaint() method starts working again. -
I am about to buy and iphone 4, its second hand and is in amazing condition. The only problem is that the 'wi-fi' button doesn't not work. I tried to click on it but nothing responds. Can this be fixed? Should i still purchase it?
while you are with the person selling it to you, ask if you can do a complete restore of the software settings->general->reset->reset all
reboot the phone to factory settings and see if that fixes the problem. if not, i wouldn't buy it unless they are selling it to you for less than $50. wifi is crucial for keeping data low and using features like facetime -
RED IPOD CHROMATIC 8GB BUTTONS FAIL TO WORK
Okay so, to my recollection:
1.I added a podcast to the iPod
2.I clicked the eject button on itunes after the little circle thing had 3.finished spinning and my ipod disapears from the itunes menu
4.I look at my iPod - it still says "synchronizing - do not disconnect"
5.The buttons on my iPod fail to work
6.I plug my iPod into speaker dock, and am able to use all the buttons including the click wheel to turn up the volume.
7.I take the ipod out - the buttons stop working again.
8.I return to my iPod a day later, and try to plug it into the speakers - now the buttons are either not working altogether or acting up (if I press >> to skip a song, it instead fast forwards the song)
9.I've reset the iPod several times (Menu & Select) and nothing is working
p.s. my computer still recognises the iPod on itunes!
Has anyone else experienced this? Really annoyed..this iPod was brand new at christmas. It is my 2nd ipod, my first one had the 'dreaded white screen'.
Do iPods have built in obsolescence?I unfortunately have to join the group. This just happened to me 4 hours ago and I have had no luck at getting any reaction out of my laptop or the ipod. Do any of the IT people for Apple or any of the programers not have any suggestions?!
-
Why does my home button fail to work
My home button on iphone 4 does not work unless I hold it for 15-20 sec, then voice control comes up.
why does my home button fail to work
maybe it's broken?
Restore the phone and set it up as a new phone to isolate a software issue. -
Tecra A7: Some keyboard buttons fail to work
Hi,
all of a sudden the following keys on my Tecra A7 fail to work:
8 9 i o k l , . and the arrows down and right.
The first 8 are in a straight line downwards. Now using a USB External keyboard, but that won't fit in my bag when visiting clients.
Anyone has any idea what might be wrong?
Thanks,
MarcHello Marc,
your problem can be something simple (the connector of your keyboard needs to be reseated as it got loose), or in the worse case, the connecting film got broken (cut) and does not allow the signals to be forwarded to the mainboard. If you are still on warranty, you should prefer consulting Toshiba for a quote rather than trying to fix this on your own.
If you feel confident to do it on your own, lift the plastic cover above the keyboard and remove the two screws that are securing the keyboard (the screws are hidden below the plastic cover). Then you can reseat the "negative film alike" connector into its place.
Here is an example image of a removed keyboard showing the location of the two screws (top side) and the film-a-like connector (bottom):
http://tinyurl.com/2cufxd
Good luck,
regards
electrochain -
Maximise button (green) does not work on Quicktime
Anyone else seen this problem or know how to fix it? For some time now, the green maximise button on my Quicktime application window has failed to work... Clicking on it produces no reaction whatsoever. Previously, clicking on the green button used to expand QT to expand to its maximum size within the screen. Now, no more - the only way I can do it now is to use command-3....
Anyone suggest what might have gone wrong and how to fix it?The green + button merely "restores" the Player window state to a previously used dimension.
You can drag the lower right corner or use the keyboard shortcuts to increase or decrease the dimension and then use the green + button to toggle between states.
This is the expected behavior.
Use the keyboard shortcuts Command + 0, 1, 2, 3 and F to change the window size. -
Exception condition "FAILED" raised.
My TRM functional consultant has been trying to run end of day processes in the Transaction RKLNACHT but the following dump appears:
Runtime Errors RAISE_EXCEPTION
Date and Time 16.05.2008 10:33:21
Short text
Exception condition "FAILED" raised.
What happened?
The current ABAP/4 program encountered an unexpected
situation.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
A RAISE statement in the program "CL_POSITIONSERVICE_TRQ========CP" raised the
exception
condition "FAILED".
Since the exception was not intercepted by a superior
program, processing was terminated.
Short description of exception condition:
For detailed documentation of the exception condition, use
Transaction SE37 (Function Library). You can take the called
function module from the display of active calls.
How to correct the error
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"RAISE_EXCEPTION" " "
"CL_POSITIONSERVICE_TRQ========CP" or "CL_POSITIONSERVICE_TRQ========CM00I"
"GET_POSITIONS_BY_DIFF"
or
"CL_POSITIONSERVICE_TRQ========CP" "FAILED"
or
"RKLNACHT " "FAILED"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Utilities->Upload/Download->Download".
4. Details about the conditions under which the error occurred or which
actions and input led to the error.
System environment
SAP-Release 700
Application server... "tetradev"
Network address...... "192.168.1.81"
Operating system..... "SunOS"
Release.............. "5.9"
Hardware type........ "sun4u"
Character length.... 16 Bits
Pointer length....... 64 Bits
Work process number.. 0
Shortdump setting.... "full"
Database server... "tetradev"
Database type..... "ORACLE"
Database name..... "DEV"
Database user ID.. "SAPSR3"
Char.set.... "C"
SAP kernel....... 700
created (date)... "Aug 31 2006 20:59:23"
create on........ "SunOS 5.9 Generic_117171-13 sun4u"
Database version. "OCI_102 (10.2.0.2.0) "
Patch level. 75
Patch text.. " "
Database............. "ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE 10.2.0.."
SAP database version. 700
Operating system..... "SunOS 5.9, SunOS 5.10"
Memory consumption
Roll.... 16192
EM...... 16759392
Heap.... 0
Page.... 180224
MM Used. 10608952
MM Free. 1957592
User and Transaction
Client.............. 300
User................ "DARLINGTON"
Language key........ "E"
Transaction......... "KLNACHT "
Program............. "CL_POSITIONSERVICE_TRQ========CP"
Screen.............. "SAPMSSY0 1000"
Screen line......... 6
Information on where terminated
Termination occurred in the ABAP program "CL_POSITIONSERVICE_TRQ========CP" -
in "GET_POSITIONS_BY_DIFF".
The main program was "RKLNACHT ".
In the source code you have the termination point in line 37
of the (Include) program "CL_POSITIONSERVICE_TRQ========CM00I".
Source Code Extract
Line SourceCde
7 l_selector TYPE REF TO cl_flow_selector_dif,
8 * workarea for table with positions
9 l_tab_position TYPE trqy_position_obj,
10 l_position TYPE REF TO if_position_trq,
11 l_count type i.
12
13 * initialization
14 CLEAR re_tab_position.
15
16 * Get positions for ranges
17 CALL METHOD ca_pos_identifier_dif=>agent->get_persistent_by_range
18 EXPORTING
19 im_context = trqco_con_trq
20 im_ranges = im_ranges
21 RECEIVING
22 re_identifiers = l_tab_identifier.
23 CHECK NOT l_tab_identifier IS INITIAL.
24
25 LOOP AT l_tab_identifier INTO l_identifier.
26
27 l_selector = l_identifier->derive_selector( ).
28
29 * get TRQ positions for selectors
30 CALL METHOD read_positions_by_selector
31 EXPORTING
32 im_selector = l_selector
33 RECEIVING
34 re_tab_positions = l_tab_position.
35 DESCRIBE TABLE l_tab_position LINES l_count.
36 IF l_count <> 1.
>>>>> raise failed.
38 ENDIF.
39 APPEND LINES OF l_tab_position TO re_tab_position.
40 ENDLOOP.
41
42 ENDMETHOD.
Contents of system fields
Name Val.
SY-SUBRC 0
SY-INDEX 0
SY-TABIX 2
SY-DBCNT 1
SY-FDPOS 0
SY-LSIND 0
SY-PAGNO 0
SY-LINNO 1
SY-COLNO 1
SY-PFKEY
SY-UCOMM
SY-TITLE End-of-Day Processing
SY-MSGTY E
SY-MSGID 64
SY-MSGNO 030
SY-MSGV1
SY-MSGV2
SY-MSGV3
SY-MSGV4
SY-MODNO 0
SY-DATUM 20080516
SY-UZEIT 103319
SY-XPROG SAPLSBAL_DB
SY-XFORM %_CONTROL_EXIT_DYNPRO
Does anyone have suggestions as to how I can solve this problem?
Assistance will be appreciated.bumping...any suggestions...welcome
-
Hi,
When i preview my Bi query in potal i am getting following exception :
RFC_ERROR_SYSTEM_FAILURE: Exception condition "FAILED" raised
Earlier i had already published some query which is working properly, but the new one which i am publishing now is giving me above exception.
Regards,
Jigar OzaHi,
Check the target on which the query is built is active in the same server. -
Simple compare condition fails [Solved: Bug 4619731]
Edit: I have found the root of the problem, and Simple compare condition fails [Solved: Bug 4619731]. I have opened a Service Request 7045745.993 on the problem.
Original text:
I have encountered the most bizarre bug today. An associate is trying to debug a 1900 line package that was NOT terminating a loop properly.
The package has the code:
Exit when x <> y;where x and y are VARCHAR2(8) variables.
The problem is that even though the values were UNequal, the loop never ended. We added dbms_output debugging code to display x and y, and we could easily see that their values were NOT equal.
For instance, one was 19824E1A and the other was 19824E2A. Or one was 19824E1A while the other was 99999999.
I even added a block of code re-testing the condition like this:
If x <> y then
dbms_output.put_line(x||'<>'||y);
Else
dbms_output.put_line(x||'='||y);
End if;But no matter what the values of x and y, it always reported them equal.
I found two workarounds:
1. concatenate a character (I used a period) to the end of each variable in the condition.
Exit when x||'.' <> y||'.'2. Or, add an anonymous block before or after the Exit when..., such as:
Declare
v varchar2(2);
Begin
v := 'AB';
End;Curiously, when I replaced the v := 'AB'; with NULL;, the bug came back.
This bug occurs on Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
I am not sure where to start to try to solve or report this problem. It pretty much destabilizes the entire PL/SQL programming foundation for all our packages. It leaves me wondering where else the code may be failing.
Has anyone seen something like this reported before?
Edited by: Steve Cosner on Aug 27, 2008 10:05 PMNo offense taken, SY. I was just trying to express how aware I am of the issue of comparing null values in condition statements.
All I can do here is underscore that it is not an issue with null values. The problem is with the statement in the first line. To prove that it was not null values, I coded the second line following the first:
exit when x <> y;
dbms_output.put_line('x='||x ||' and y='||y);The output from the run showed in the first pass through the loop, x and y were equal and were not null. So the process ran correctly that time. But in subsequent passes through the loop, they were NOT equal and were not null, but the debugging code was executed.
There is no way the values were null.
I certainly wondered about the null issue when I concatenated a character to the variables in the conditional test. But my debugging lines first confirmed that they were not null. I suspect more that the bug has something to do with the size of the package and the variables being exactly eight characters, which is 64 bits, which has special significance in many computer languages.
Regarding your concern of the variable names and scope issues, the actual variable names in the actual code can be seen below (I just used x and y for simplicity within this thread):
LOOP
EXIT WHEN V_LAST_PERIOD <>
SIPK0003.COURSE_ADJUST_REC.ACAD_REC_PERIODwhile the silly anonymous block that caused the process to work, using the variable named v, was the actual code. There is no way we use simple one-character variable names in a 1900 line package. There is no way the scope of variable V extended outside the embedded anonymous block. My point was that somehow, changing the size of the compiled package object, or at least the size of the code generated for the loop process caused the package to run correctly. In fact, thinking about the
Declare V... Begin Null; End; sequence, I'll bet the PL/SQL compiler is sharp enough to notice that it was a do-nothing block, so never included it in the compiled object. As soon as I assigned V a value, the code WAS included, so the size of the generated code for the loop changed, and somehow, that caused it to run correctly.
Regarding the use of the package.record.column value above, we even copied the value to a local variable, and then used the local variable in the Exit When statement. Doing that made no difference. -
icloud drive fails to work at all on my Macbook Air 11 inch with Yosemite recently installed, 2014-09-20. It works fine on my iMac, but that's no use to me. Unless it works with my Macbook Air, it's useless. Dropbox manages very well, but Dropbox has recently promoted the War Criminal Condoleeeza Rice to its board, presumably so it can spy on its users better. So, Apple, what's the problem? Any answers to this common problem?
I like it very much. I use it on my iPad (and occasionally my iPhone). I'm kind of a keyboard snob actually. I tried the Apple wireless keyboard first. Apple keyboards have a short throw that hurts the tips of my fingers. They're very pretty but the on button turns on when I don't want it to and my iPad wakes up in my bag. Strike 1.
I went to a little keyboard called the Joy and it had a positive switch so I didn't have the wakeup problem. It worked well though after several months I wore it out and had to replace it with another one. I also didn't like how flat it sat and used rubber bumpers on the back. It too had a short throw that hurt my finger tips after a while but it was better than the Apple.
Then I discovered the Logitech bluetooth keyboard, the K811. This is a great keyboard. It switches between multiple targets with one press, it has a positive on/off switch, the keys light up, it's rechargeable and lasts a long time, and the slight cushioning on the keys keeps my fingers from hurting. I put the rubber bumpers on it though like the Joy because I like the keyboard to sit up a little. It's a tiny bit bigger than the other keyboards but I like it a lot, better than my MBA keyboard and better than my iMac wired keyboard. I'm trying out an after market keyboard on the iMac now but I'm thinking about switching to one of these for the iMac. -
Dump: ASSERT condition failed - While creating followup to Package quote
Hi,
I am trying to create follow up (Service contract) document to Package Quotation. But, I am endedup with dump in Function Module saying : "ASSERT Condition Failed". And this is happening only in preproduction. In development system, it is working fine. I really do not understand the reason.
last week it worked fine ... but suddenly this error came up.
Please help me out to find the reason and solution.
Thanks,
SandeepHi Arun,
Please check the following in regards to the company code issue:
1. Go to transaction PPOME and search for your Top Org unit,
2. For that org unit, go to the tab Account Assignment.
3. Fill the field Company Code with appropriate value and save it
This should resolve the issue in regards to the message of the company code. The dump refers to the table V_T077D. Please check your number range settings for the customer account groups related to students table V_T077D. Once the necessary customizing is maintained, the problem should get solved.
Good luck.
Rob
Maybe you are looking for
-
Breadcrum in Web Dynpro Application?
Hi All, We have a web dynpro application which requires bread crums. I have never done this before. Could anyone please explain me in detail how to include the feature of breadcrum in a web dynpro application. I'm using EP6.0 SP11. Thanks Regards LM
-
Best practice for client migration from SMS 2003 to SCCM 2012 R2?
Can anyone advise what the most recommended method is for migrating SMS 2003 clients (Windows 7) to SCCM 2012 R2? Options are: 1. SMS package to deploy ccmclean.exe to uninstall SMS 2003 client. Deploy SCCM 2012 R2 client via SCCM console push. 2. Si
-
Hi all, I have noticed a recent issue that came with my last update of Skype. Whenever I end calls, I get a Blue Screen of Death with varying errors, including irql_not_less_or_equal and others (that I cannot remember right now). If other people en
-
Michigan FUTA Credit - How to accrue for tax liability
My client has OSS Note 1413275 and 1422655. However, how is the FUTA tax liability accrued? My client has employees that live in Michigan and other states so we need to apply this tax to only the Michigan employees. How do we do this? thank you,
-
Can't install the Windows Update package KB2674319 (SQL Server 2012 SP1)
Hi. I need to get the update of my MS SQL Server 2012 installation in order to get the SP1. When I run the Windows Update it appears to download well the package. Then when it begins to install I get the error "84C4000E: Se ha producido un error con