FRM-41045 using checkbox
FRM-41045 on using a IF :b_gnp.GNP_MAIN_NO_PORT_IND = 'Y'
Hello - please help me. Using forms 4.5 oracle 8.1.7 on NT
I have a check box - GNP_MAIN_NO_PORT_IND - checked value is Y and unchecked is N, default is Y, other values not allowed. It is a dbase item. It has a relationship with a field on canvas called b_gnp.GNP_OLO_MAIN_BILLING_NO. I am wanting to do an action based upon user tikcking the ckbox whilst either this field is null and also scenario where chkbox is uncheked and field is also null.
I have a Key_commit form-level trigger which on its way to commiting checks for nulls - this is called p_check_mandatory_fields.
In this procedure I have a condition as follows ; -
IF :b_gnp.GNP_MAIN_NO_PORT_IND = 'Y' THEN
p_check_if_field_is_null('b_gnp.GNP_OLO_MAIN_BILLING_NO', 'number');
It compiles fine but then in runtime just as I hoit the button which calls Key_Commit I get FRM-41045 Cannot find item:Invalid ID!!!!
When I comment out this if condition it is ok - no error. I can also avoid getting the error if I do the following ; -
PROCEDURE p_check_mandatory_fields IS
v_checkbx VARCHAR2(1) := '0';
BEGIN
IF :b_gnp.GNP_MAIN_NO_PORT_IND = 'Y' THEN
v_checkbx := '1';
If v_checkbx = '1' then
p_check_if_field_is_null('b_gnp.GNP_OLO_MAIN_BILLING_NO','number');
PLEASE CAN YOU explain this.
I have also tried other things to overcome this error including writing a separate program unit for the IF conditions realting to the chkbox and the field and calling it from various places etc.. even using if checkbox_changed!!!
PLEASE HELP ME!!
Do you mean the naming is incorrect?????
- note I had also used the follwing appraoch ; -
ckbox VARCHAR2(12) := 'b_gnp.GNP_MAIN_NO_PORT_IND';
BEGIN
IF checkbox_checked('ckbox') then...
and
BEGIN
it_id := FIND_ITEM('item_name'); -- ie item_name is the name of my checkbox
Similar Messages
-
FRM-41045 no such object: invalid ID
Hi everyone,
I have an Alert with three buttons:
1 Save,
2 Rollback
3 Return to Item and not change anything.
The module is a master detail module. When the user presses the Edit-Button, there is a new record inserted on detail level, with a new date time. All the other fields have the same values.
This Alert will pop up, when the user presses the save button, after he pressed the edit button. Because for the system, the record already was in the database, the moment the user presses save, the message FRM-40401 -- No changes to save is displayed. I filtered this out.
When the user says yes (first button) the system saves. I, at first, had the built-in Commit_Form here but it gave me the FRM-41045 Error message.
Then I removed it and the error message stayed away.
Can anyone tell me why this message (FRM-41045) is displayed and what its premisses are?
Thanx
Hans van BaalThat error will be rasied by a Get/Set_<something>property call. e.g Setalert_property.
If you are passing Object IDs around - for instance variables of type ITEM or ALERT, you might want to do an ID_NULL() check on them before using them. -
FRM-41045 when returning to calling form
I'm using Designer 1.3.2 with Headstart 3.4.3 and Forms 4.5.
The situation is as follows:
I'm using the call_form functionality to call another form when using a form. This goes well. When I leave the called form to return into the calling form I get the error message 'FRM-41045 Cannot find item: Invalid ID'. The functionality of the form stays in tact, so my question is how can I solve this error or how can I suppress this message?Linda,
My suggestion would be to try to drill down on the cause of the problem in form builder. What causes the FRM message?
If you cannot track down to the cause and want to suppress this message, you could try to capture the event in the on-error trigger and continue without an error when this error occurs (maybe encapsuled by a helping global variable construction so that the message is not always suppressed)
In designer/forms 6.0 or 6i you could suppress the message in two ways:
1. By adding it to the suppress message stack (see hsdapp65.pll for an example).
2. Add the message to the qms_message_properties table and set the suppr_always_ind to Y.
The headstart 3.4 qms_messages table does not yet contain this column, but you might take a look at the headstart 2.1.2 procedure qms$forms_errors.add_suppress_message(<message number>); to code your own solution for it in headstart 3.4.
Regards, Marc -
How to modify a lookup field-type to use checkbox instead of radiobutton?
How to modify a lookup field-type to use checkbox instead of radiobutton?
I would like to modify the behavior for the lookup field.
Normally you get a screen where it is possible to search through a lookup. The items resulted from the search are listed as radiobutton items. Therefore you can select only one at the time to be added.
Is it possible to have the items to be listed as checkbox instead? So that you can check multiple items and therefore be able to add multiple items at the time?
For example:
To add the user to 10 different groups on MS-AD.
It is desired to have the ability to check multiple groups to be added instead only one at the time.
My client would like to use this feature in many other situations.Displaying will not be a big deal but with that you have to customize the action class and its working as well.
-
How to use Checkbox and radio buttons in BI Reporting
Hi BW Experts,
My Client has given a report in ABAP format and the report has to be develop in BI.It contains Check boxes and the radio buttons. I dont know how to use Checkboxes and radio buttons in Bex.For using this option, do we need to write a code in ABAP.Please help on this issue.
Thanks,
RamHi..
Catalog item characteristic
- Data element
- Characteristic type
Entry type
List of catalog characteristics
Designer
Format (character)
Standard characteristic
Alternative: Master characteristic
(used for automatic product
assignment)
Simple entry field
Alternatives:
Dropdown listbox or radio button
list -
"Enable Disk Use" checkbox is grayed out, can't untick.
Hi,
I just got my new iPod 30 GB video today! I've been reading these discussions, but haven't found an answer for this tiny problem of mine.
"Do Not Disconnect" constantly shows on the iPod screen when it's connected on the computer. Many have suggested ticking off "Enable Disk Use", but here's the problem: it's grayed out, and I can't change it, no matter what. I've gone through iTunes prefs, by right-clicking on the iPod in iTunes and selecting "iPod Options". My system seems to show iPod as a movable disk, but iTunes recognises it and I can easily put music into it, so I guess that isn't a problem (or is it?).
But how could I get my hands on the "Enable Disk Use" checkbox? It just isn't "tickable" now.
Thanks!
Windows XPIf you have your iPod set to manual update, the "Enable Disk Use" box will be greyed out and ticked by default, in that case use Safely remove Hardware icon or check this link: "Disconnecting iPod from your computer
" http://docs.info.apple.com/article.html?artnum=61135
For Info:
The iPod offers three ways to transfer music from your computer. You can select one of the following update modes from the iPod Preferences menu in iTunes (Edit=>Preferences=>'iPod' tab):
1) Automatically update all songs and playlists. This is the default mode, in which your entire music library, including playlists, is automatically synced to your iPod. If the music library on your computer exceeds the iPod storage capacity, you are prompted to select a different update method.
2) Automatically update selected playlists only. With this option, iTunes automatically copies the playlists you have selected to the iPod when you connect it to the computer.
3) Manually manage songs and playlists. You can also choose to transfer music to the iPod manually. This allows you to drag and drop individual songs and playlists from iTunes to the iPod. -
Using checkbox at selection screen
I used checkbox at selection screen and i want output as per selected checkbox. How to do that??
hiii
use following code
AT SELECTION-SCREEN.
IF p_char EQ 'X'.
w_check = 'X'.
WRITE: w_check.
ELSE.
w_check = ' '.
WRITE: w_check.
ENDIF.
SELECT b~carrid "Carrier Id
b~connid "Connection id
b~fldate "Flight date
b~price "Price
b~currency "Currency
b~seatsmax "Maximum Seats
INTO TABLE t_flight
FROM spfli AS a
INNER JOIN sflight AS b ON a~carrid = b~carrid
INNER JOIN sbook AS c ON c~carrid = b~carrid AND
c~connid = b~connid AND
c~fldate = b~fldate
WHERE b~carrid IN s_carrid AND
c~cancelled EQ w_check.
regards
twinkal -
Using checkboxes as datasource of TileList - how do I then receive selected checkboxes?
I've been googling and searching for this and it should be simple I'd imagine... (I'm new to Flex so that probably doesn't help:)...
I have an array that I create using CheckBox components. I then use this array as the dataprovider for a TileList and then also create a CheckBox itemrenderer.
The issue I'm having is that, I thought if I went over the underlying checkbox array at a later point (say a button click) - that I'd be able to see some selected items yet none of them show up selected as I iterate over them (even though I've checked some of the checkboxes.)
I have an event on the checkbox rendererer itself and when it fires I do see the selected property set - It's just going over the whole array that I'm not seeing them set. It's as if the underlying dataset is not being modified. What do I need to do so that I can capture the selected checkbox items? (Is the issue something to do with the renderer being reused?) I'm thinking getting a handle to checkbox items from from a TileList would be somewhat common so any help/examples appreciated.
Below is the pertinent code:
[CODE]
dataArray is an array of type [B]CheckBox[/B]
<mx:TileList id="reportMetricsBox"
borderStyle="solid" height="100%" width="100%" maxColumns="3"
columnWidth="110" paddingLeft="0" textAlign="left" borderThickness="0"
dataProvider="{dataArray}">
<mx:itemRenderer>
<mx:Component>
<mx:CheckBox click="handleClick(event)">
<mx:Script>
<![CDATA[
import com.foo.event.CheckBoxEvent;
private function handleClick(event:Event):void {
dispatchEvent(new CheckBoxEvent(CheckBoxEvent.CLICKED, CheckBox(this)));
]]>
</mx:Script>
</mx:CheckBox>
</mx:Component>
</mx:itemRenderer>
</mx:TileList>
[/CODE]Here's what I did to fix it...
in my item renderer click handler I set the data selected item:
private function onChange(event:Event):void {
dispatchEvent(new CheckBoxEvent(CheckBoxEvent.CLICKED, CheckBox(this)));
data.selected = !data.selected;
I'm assuming that's what I should be doing? -
Hi Experts, Crystal report mutiple value selection using checkbox in 8.81
Hi,
I am using Crystal report multiple value selection option using checkbox in 8.81 sap b1 pl 05.but i want default all check box value should be selected.
How do we achieve same.
Thanks
Rajkumar Gupta
Edited by: Rajkumar Gupta on Jul 11, 2011 5:45 AMDear Raj,
As per me, this can't be done in current version of SAP 8.81.
Alternate way is use SDK
Thanks
Kevin -
How to use checkboxes in jtable ?
I am trying to use checkboxes in
JTable,I set the property in the jtable column to boolean.The proplem is that i do no know how to use this property in java program.My intension is that,I will have a java form and a java button on it,by clicking the button, i will have to write a code,for example a code that fetches records from a table and displays them on the jtable(on the user interface),when I select the check box corresponding to any row,It should let me either delete or edit that row and this modification has to be reflected to the table in the database. At this time,i can fetch and display but i can not delete or modify any row because I do no know how to use the check box inside the jtable.
Thank you for your help!Multi-post: http://forum.java.sun.com/thread.jspa?threadID=5273661&tstart=0
-
I am going to make a ADG with around 7 columns 6 of which I am going to use checkboxes as Item renderers. Each of these 6 checkboxes renderers will be define in separate actionscript files as they will be updating different parts of the ADG data provider. Does this sound like the best option?
Well the only difference is that each checkbox effects a different attribute of the dataprovider of the ADG:
for example this renderer effects the isSelected attribute. I may want to set a different one , hope this explains it better
package
import flash.display.DisplayObject;
import flash.events.KeyboardEvent;
import flash.events.MouseEvent;
import flash.text.TextField;
import mx.controls.CheckBox;
import mx.controls.advancedDataGridClasses.AdvancedDataGridListData;
import mx.controls.listClasses.ListBase;
* The Renderer.
public class CheckBoxRenderer extends CheckBox
public function CheckBoxRenderer()
focusEnabled = false;
override public function set data(value:Object):void
super.data = value;
if(super.data.isSelected == null){
data.isSelected = false;
data.isSelected = this.selected;
invalidateProperties();
override protected function commitProperties():void
super.commitProperties();
if (owner is ListBase)
selected = ListBase(owner).isItemSelected(data);
override protected function keyDownHandler(event:KeyboardEvent):void
override protected function keyUpHandler(event:KeyboardEvent):void
override protected function clickHandler(event:MouseEvent):void
super.clickHandler(event);
if(!data.isSelected){
data.isSelected = true;
}else{
data.isSelected = false;
override protected function updateDisplayList(w:Number, h:Number):void
super.updateDisplayList(w, h);
if (listData is AdvancedDataGridListData)
var n:int = numChildren;
for (var i:int = 0; i < n; i++)
var c:DisplayObject = getChildAt(i);
if (!(c is TextField))
c.x = (w - c.width) / 2;
c.y = 0; -
Using checkboxes with JOption Pane
Hi, I having abit of trouble trying to implement a search utility into my swing based program. What I want is something also the lines of the "Find" feature available in MS Word and IE. Hence I want a message, input dialog box but also a checkbox to check does the user what to search for case sensitive material. So far I've been using JOptionPane and my code is as follows...
String userInput = (String) JOptionPane.showInputDialog(null,"Enter Search Criteria:\n", "Search Dialog",JOptionPane.QUESTION_MESSAGE,null,null,"");
However it seems I cannot use checkboxes with this. Any idea how I could go about doing this using JOptionPane or if not would someone care to shed some light on how I might accomplish it?
Thanks in advance,
SimonJOptionPanes can be extended, but you would rather want to make a JDialog.
Because you might also offer regular expression search (free in java 1.4),
or search-and-replace.
A google search will give examples like at the koders site.
In general it pays to have all those little dialogs really user-friendly, say saving the last N sought terms + whether case-sensitive or not.
Joop -
FRM-41045: Cannot find item: invalid ID (what's the ID?)
Hi!
When Forms run:go_item('<block_name>.<item_name>');and there's no such item in that block the error FRM-41045 appears. Is there any way to find out this "invalid ID"?
That information whould be very helpful in finding block of code resulting in this error.
Thanks in advance,
JackKJackK wrote:
Hi!
When Forms run:go_item('<block_name>.<item_name>');and there's no such item in that block the error FRM-41045 appears. Is there any way to find out this "invalid ID"?
That information whould be very helpful in finding block of code resulting in this error.
Thanks in advance,
JackKYou can "address" items in form by their name or by the ID. The ID for an item can be retrieved by FIND_ITEM.
That forms is not returning the item-name in a 41045 is a PITA since ever.
I recommend that you just wrap every GO_ITEM into another procedure, where you
.) try to find the item
.) raise an error-message with the item name
if the item does not exists. -
FRM-41045 cannot find item invalid id
Hi All,
I was working with custom form my form version is 10g.
We have developed a custom form in that we have a field called invoice_date
Invoice_date declare as Date column.
And we have given all other in the property pallatte correctly.
When we click the invoice_date field this pop message is coming
FRM-41045 cannot find item invalid id 10-15 times and then we are selecting the date.
Regards
SrikkanthHi,
You better post it on e-business suite dedicated forum, you will have people with more expertise on customization there. Its always good that you give complete information in your post like your version,environment,etc
See if you disable the call to the calendar.show and clicking the field is giving you any error.
Regards
Yoonas -
Using checkbox as ItemEditor fails
I am trying to use a CheckBox as an itemEditor inside a
DataGrid so i am doing this:
<mx:DataGridColumn dataField="idDoctoEnvio" headerText=" "
itemEditor="mx.controls.CheckBox" editorDataField="selected"
editable = "true"/>
I read in the developer's guide that this is the way to do
it, so i tried it and to my surprise, it doesn't work, i menan
there is no CheckBox control inside the datagrid, instead there is
a normal text value (true or false).
Any ideas on how to do this? I need the checkbox to be able
to change that property from true to false and viceversaI reported this problem to Adobe
last year. From your other post, I assume you already got
the upgrade and so I further assume they didn't fix it. Nice to see
they are listening.
Long story short, you can't use CheckBox as an
itemRenderer/itemEditor. It just doesn't work as promised. What I
did was I developed my own CheckBox item renderer class (I put the
CheckBox component inside an HBox so that I could also center it in
the cell). With the appropriate logic, it works fine. I made this
component a long time ago and the source is not on this computer,
but I think the problem was related to the CheckBox not updating
its selected property in accordance with the background data. In my
component, I set the CheckBox's selected value to update according
to the "dataChange" event and on the CheckBox's "change" event, I
called a method to update the data["columnName"] value so that it
matches the CheckBox's selected value. I think this will do the
trick. The code is probably still archived in this forum
somewhere.
Maybe you are looking for
-
New table contains data after Successful activation
HI All, one DSO activation got failed due to red request which was present in the target. We repeated the DSO Activation step once we deleted the bad request from DSO and it got completed successfully. Generally, as part of ODS Activation, the data w
-
Without being vulgar, I am EXTREMELY ANGRY right now because of this as a used iMac I just purchased is a BRICK thanks to Apple and their greedy big brother B.S. I purhcased a used iMac with OS X Lion pre-installed by the former owner. I do not have
-
Down payment for Serivice Call!
Hi all! I have a problem a bout services call. This is senarior of my customer. Before create Service Call, they have Down payment for service (not for Item) and then they create Service Call in next step. When they delivery some item( For Item) for
-
IChat Refuses To Vid/Screen Share
Date/Time: 2008-05-24 23:10:40.508 -0700 OS Version: 10.5.2 (Build 9C7010) Report Version: 4 iChat Connection Log: 2008-05-24 23:09:56 -0700: AVChat started with ID 466388131. 2008-05-24 23:09:56 -0700: bosoxnationx7: State change from AVChatNoState
-
Oracle 8i Multiple Sessions Configuration.
Background: I am setting up a second Oracle 8i server to mirror an existing one as part of an upgrade/ migration plan. We run a custom Multithreaded Service with Embedded Sql (pro-c compiled). When running normally on original system, this program sh