Cannot enable the text item after disable it in Forms 6i
Hi All,
I want to enable/disable the text items depending on the value of the radio group. Since the text items and the radio group are on different tab page, so I place the following code on the WHEN-TAB-PAGE-CHANGED trigger, to do this:
if :recordgroup ='P' then
set_item_property(item1, ENABLED,PROPERTY_TRUE);
set_item_property(item1, NAVIGABLE,PROPERTY_TRUE);
elsif :recordgroup ='K' then
set_item_property(item1, ENABLED,PROPERTY_FALSE);
set_item_property(item1, NAVIGABLE,PROPERTY_FALSE);
end if;
When recordgroup is 'K', item1 is disabled, then when recordgroup has changed to 'P', item1 is still disabled.
Both recordgroup and items are database items.
How come like this?
Thanks is advance,
Vanessa
Hi Vanessa, you must use a "when-radio-changed" trigger, and you need to know what properties of a item are afected when you change any one of this, for your problem ...
if :recordgroup ='P' then
set_item_property(item1, ENABLED,PROPERTY_TRUE);
set_item_property(item1, NAVIGABLE,PROPERTY_TRUE);
-- Add this line:
Set_Item_property(item1, Update_Allowed, Property_True);
elsif :recordgroup ='K' then
set_item_property(item1, ENABLED,PROPERTY_FALSE);
-- If you want, you can delete this line:
set_item_property(item1, NAVIGABLE,PROPERTY_FALSE);
end if;
try it!
Ruben.
Similar Messages
-
Displaying file from text item after browsing
hi, how would i display the directory of the file in the text item after i browsed it in windows?
thanks,
MajicThis works...
DECLARE
filename VARCHAR2 (200);
BEGIN
:SYSTEM.message_level := 25;
filename :=
GET_FILE_NAME (directory_name => 'D:\My STAFF\My Pictures\',
file_filter => 'jpg'
:block3.text_item4:=filename;
IF NOT FORM_SUCCESS
THEN
MESSAGE ('Unable to read file(The problem may be the format ) "' || filename || '"');
RAISE form_trigger_failure;
END IF;
:SYSTEM.message_level := 0;
END;
Just simplify little bit the code....
Greets -
cannot re enable the add ons after the new 13.0.1 update ,it shows no update available and all the add-ons are disabled
I have the same problem. One minute everything was okay, the next minute all my addons were disabled.
Adobe Acrobat 10.1.3.23
AVG Site Safety Plugin 11.1.0.4
Google Update 1.3.21.115
Java Deployment Toolkit 7.0.50.255 10.5.1.255
Java Platform SE 7 U5 10.5.1.255
Shockwave Flash 11.3.300.265
VLC Web Plugin 2.0.2.0
Windows Presentation Foundation 3.5.30739.1
I can reenable them but FF will disable them on the next startup. I uninstalled version 13 and installed version 12. Problem gone! So I'm still using version 12 and am afraid to update to version 13.
This problem began when I was trying to research and fix a problem (no history all-of-a-sudden) so it probably was something I caused. Can't recall everything I did though.
So: Does the addon problem I described have a solution? If so, I'll update my version 12 to version 13. Please respond..... -
After placing a new text box in my document, typing new text, clicking away, then coming back to edit the text, I am unable to get my cursor to reappear within that text box. I can only select the box itself. I cannot select the text. Where is my cursor?
Even simpler than that.
Clicking once in a text box selects it.
Clicking once in a selected text box places the insertion point in the box.
The clicks do not need to be close enough in time to be read as a double click.
The same behaviour applies to table cells in Pages and in Numbers.
Regards,
Barry -
Change the color of text item after execute query
Dear friends
I would like to know how can I make a tabular form like grid and chang the color of text item when (for exp in emp table) the value of sal column between 2000$ and 4000$.
I used the SE_IEM_PROPERTY command but it change all of the text items of sal column.
please help me
thanks a lotHighlight the Existing Record in Forms
(Compatible with 4.x, 5.x, 6.x & 9i)
Step 1: Create a New Visual Attribute(BLUE_VA) (Color of highlighted record)
Font â Arial
Size â 8
Style â Plain
Font width - Normal
Font Weight - Bold
Foreground Color â Black
Background Color â Blue
Fill Pattern â Transparent
Step 2: Create another Visual Attribute (WHITE_VA) (Default Color of the record)
Font â Arial
Size â 8
Style â Plain
Font width - Normal
Font Weight - Bold
Foreground Color â Black
Background Color â White
Fill Pattern â Transparent
Step 3: Add Following code to Block-level Trigger WHEN-NEW-RECORD- INSTANCE, POST-BLOCK
(Add to the block, which has these records)
-- Following code will only highlight an item
DISPLAY_ITEM(<block_name>.<item_name>,'BLUE_VA');
-- Following code will highlight complete Record (ref: DISPLAY_ITEM example)
DECLARE
cur_itm VARCHAR2(80);
cur_block VARCHAR2(80) := :System.Cursor_Block;
BEGIN
cur_itm := Get_Block_Property( cur_block, FIRST_ITEM );
WHILE ( cur_itm IS NOT NULL ) LOOP
cur_itm := cur_block||'.'||cur_itm;
Display_Item( cur_itm, 'BLUE_VA');
cur_itm := Get_Item_Property( cur_itm, NEXTITEM );
END LOOP;
END;
Step 4: Add Following code to Block-level Trigger PRE-RECORD, PRE-BLOCK
(Add to the block, which has these records)
-- Following code will only highlight an item
DISPLAY_ITEM(<block_name>.<item_name>,'WHITE_VA');
-- Following code will highlight complete Record (ref: DISPLAY_ITEM example)
DECLARE
cur_itm VARCHAR2(80);
cur_block VARCHAR2(80) := :System.Cursor_Block;
BEGIN
cur_itm := Get_Block_Property( cur_block, FIRST_ITEM );
WHILE ( cur_itm IS NOT NULL ) LOOP
cur_itm := cur_block||'.'||cur_itm;
Display_Item( cur_itm, 'WHITE_VA');
cur_itm := Get_Item_Property( cur_itm, NEXTITEM );
END LOOP;
END;
I am using the above code in one of my forms and I so far haven't seen any problem -
I cannot see the downloaded item in the downloads screen after the download is complete
This started from the previous release I guess... I cannot see the downloaded item... for example when I tried to download the latest adobe flash player ... it showed the message the download was successful... but the download screen did not have any item listed.
* Tools > Options > Privacy > History: Firefox will: "Use custom settings for history" > "Remember download history"
-
Cannot display the text in Hyp Planning via ODI
Hi,
has anyone follow the tutorial from John Goodwin here:
"http://john-goodwin.blogspot.com/2008/10/odi-getting-text-data-into-planning.html" ??
I'd tried the tutorial in order to able to display text in Planning.
However, I still cannot display the text in the end, only the numeric id values - taken from the HSP_TEXT_CELL_VALUE table.
Here the steps I've done:
- getting the list of id and text values to be inserted into HSP_TEXT_CELL_VALUE table
- make a new interface to load data into planning
- I want to load data from flat file to Planning, so I dragged flat file and also the HSP_TEXT_CELL_VALUE table into the source column, and then join the "MP3" column from flat file with values column from HSP_TEXT_CELL_VALUE table (like written in the tutorial ""http://john-goodwin.blogspot.com/2008/10/odi-getting-text-data-into-planning.html")
- after that, I dragged the Account dimension, and then join them. For the MP3 column in target column, I mapped it with "id" column from HSP_TEXT_CELL_VALUE table.
- Then I execute. The data loaded into Planning, but when I tried to open in report, the MP3 column shows the "id" instead of "values".
Am I missing something?
Has anyone experienced the same as mine?
Any help would be appreciated.
ThanksHi,
I may have followed the blog :)
First have you loaded the values into the HSP_TEXT_CELL_VALUE table, have you checked the values are now in the table ?
Also, you will unfortunately have to restart the planning service after you have loaded them as the table is cached and a restart clears the cache.
When you load into planning you need to map the "Value" field in HSP_TEXT_CELL_VALUE to your data source, and load in the id to planning.
If you are only getting numerical values it is either because you have not restarted planning or the HSP_TEXT_CELL_VALUE has not been updated correctly.
Cheers
John
http://john-goodwin.blogspot.com/ -
All,
We are trying to add a text item into portal and we get an error when the size of the item is approximately more than 24k.
The error shown is err-30584 dbms_sql raised and unhandled
exception.
When the size of the text item is more than 32k then, we get an
http 404 - page cannot be found error while trying to save the item.
Is there any limit on the maximum size of the text items
in portal? The version we are using is,
Oracle Portal Version: 3.0.9.8.0
Any workarounds are appreciated if this is a known problem.
Thanks in advance,
Sudhakar.Hi Peter,
FAGLB03 transaction shows the balances ( not the lines ). Only with drill-down you go to the BSEG table and then you can add whatever field you want using a standard SAP functionality of ALV.
Regards,
Eli -
We have the SharePoint Server 2010 with SP1 environment on which the custom SP2010 designer pages were working as expected before the
August 13, 2013 CU has installed. But, getting the below exception while trying to add the new item after the CU has installed.
Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.WebControls.SPDataSourceView.ExecuteInsert(IDictionary values) at
System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
06/19/2014 16:49:37.65 w3wp.exe (0x1240) 0x1300 SharePoint Foundation
Runtime tkau Unexpected Microsoft.SharePoint.WebPartPages.DataFormWebPartException: The data source control
failed to execute the insert command. 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc at Microsoft.SharePoint.WebPartPages.DataFormWebPart.InsertCallback(Int32 affectedRecords, Exception ex) at System.Web.UI.DataSourceView.Insert(IDictionary
values, DataSourceViewOperationCallback callback) at Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit() at Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e)
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean
inclu... 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
06/19/2014 16:49:37.65* w3wp.exe (0x1240) 0x1300 SharePoint Foundation
Runtime tkau Unexpected ...deStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
I have tried changing the "DataSourceMode" as below, now the insert command is working, but update command is not working.
<SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" />
Also, the lookup dropdown fields are displaying the value as "<a href="Daughterhttp://cpsp10/sites/Employees/_layouts/listform.aspx?PageType=4&ListId={8F62F444-FB6A-4F03-9522-C4696B45DCD1}&ID=10&RootFolder=*">Daughter</a>"
instead of only "Daughter".
Please provide the solution to get rid of this issue.
Thanks
RamasubbuTry below:
http://social.technet.microsoft.com/Forums/en-US/ae910269-3a0c-4506-844b-e8bc89d95b71/data-source-control-failed-to-execute-the-insert-command
http://blog.jussipalo.com/2012/01/sharepoint-2010-data-source-control.html
While there can be many causes for this generic error message, in my case the first parameter or ddwrt:DataBind function inside the SharePoint:FormFields element was
'i' and I was working with an Edit Form. Changing it to
'u' as it was with every other FormField fixed the issue.
<SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Esittaja" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Esittaja')}"
/>
Explanation:
DataBind operation type parameters (the first parameter) are listed below:
'i' stands for INSERT,
'u' stands for UPDATE,
'd' stands for DELETE.
http://webcache.googleusercontent.com/search?q=cache:d9HHY4I7omgJ:thearkfloats.blogspot.com/2014/03/sharepoint-2010-data-source-control.html+&cd=4&hl=en&ct=clnk&gl=in
If this helped you resolve your issue, please mark it Answered -
in a document with several sections, in section VIII and IX one cannot select the text of the page foot nor set the pointer in it; so, one cannot write nor change the page foot text. Please help!
Question already asked and answered several times.
It's a bug striking in long documents.
Select a word somewhere higher in the page then use the arrows to reach the wanted insertion point.
Yvan KOENIG (VALLAURIS, France) mardi 23 août 2011 15:44:24
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
My iDisk is : <http://public.me.com/koenigyvan>
Please :
Search for questions similar to your own
before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer ! -
whenever i try to sync iphone5(version8.0.2) with itunes 12 on macbookpro.it appears cannot sync the purchased items on itune store. authorize your computer.i authorized it many times. but same response comes again to authorize.
If you are sure that you are authorizing the correct account/ID then:
iTunes repeatedly prompts to authorize computer to play iTunes Store purchases -
Is there a way to obtain the text item's value when the mouse pointer at?
Hi,
Is there a way to obtain the text item's value when the mouse pointer at? Mouse pointer may be located somewhere out of current record and even out of current block.There is a when-mouse-over trigger and that works fine in client-server mode for Forms 5/6/6i, but that is less indicated when deployed using Application Server.
In that trigger you may write whatever code is necessary, restricted package procedures.
Still, I think, for your case, if you do not have to deal with a multi-record block, you should use the HINT property for that item and set_item_property with the HINT argument for that item in order to set the hint to the item's value - this should set_item_property should be called on the when-new-record-instance . -
I cannot activate the IPhone 3G after software updating
I cannot activate the IPhone 3G after software updating
You might be interested in visiting this thread which discusses a similar problem: https://discussions.apple.com/thread/4673269
-
What does the "text item" mean in SD?
what does the "text item" mean in SD?
Is that Item Text?
Please be clear in your questions.
As this is your first post you should have a look at the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement].
Also interview questions are not allowed here.
Regards
Karthik D -
I can't enter any value in the Text field, after loading flash files
Hi to all,
In my Java application, I'm using a text field and a panel to load flash files. I'm using JDIC 0.9.1 to load the flash files in the panel. The flash files are created by Flash CS4.
While running the application, I can't enter any value in the Text field, after minimize and maximize the application I can enter the values.
This problem happens after change the jre version from 1.6 to 1.7.
I'm getting the following exception while running the application.
org.jdesktop.jdic.init.JdicInitException: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at org.jdesktop.jdic.init.JdicManager.initBrowserNati ve(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.<clinit>(Unkn own Source)
pls give me a solution.
Thanks in advance...:)I can't enter any values in JTextField after loading the flash files., locking.
Maybe you are looking for
-
Well I have bought my iPad two weeks ago and my iTunes used to open on my pc and iPad, but in the last four days it never opens except at morning when I wake up, what's wrong, please help.
-
Quality inspection lot creation during GR for STO
Dear Friends, I have a Scenario for Quality inspection lot creation during GR with respect to STO can use inspection type 01 or is there any other inspection type to create inspection lot during GR for STO Thanks & Regards Raj
-
When viewing emails with an attachment, like reviewing a bid sent to me by a contractor, you can't return back to the email folder. There is no delete or any menu on the top. This has happened to me twice. I would go to home/desktop and hit mail agai
-
Can't import Java Netbeans libraries
Hi, I've inherited some code and cannot get it to compile. I get errors that the required import functions for various netbean classes cannot be found. These are for imports such as "import org.netbeans.spi.Wizard " which all fail stating that the cl
-
Path to FCPX share settings?
I am looking for where FCPX does store share settings. As the custom share settings don't appear, when I start FCPX with another user on the same machine, I recon tey are in user/library. I have deleted FCPX's p references in user/library/Application