WordWrap property on an item in a datagridcolumn
Hi,
I coded it this way:
<mx:DataGridColumn wordWrap="true" width="200"
headerText="Comments" dataField="comments">
The text value doesn't wrap around though. It gets clipped.
What am i missing?
Thanks in advanced.
Hi Peter,
Thanks for the quick response. I poked around a little bit
more in the online help and stumbled into the 'itemrenderer'
property of the datagridcolumn component ... tried it out and
managed to get the result that I was looking for. Here's how I
coded it:
<mx:DataGridColumn width="320" headerText="Comments"
dataField="comments">
<mx:itemRenderer>
<mx:Component>
<mx:Text text="{data.comments}" selectable="false"/>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
Again, thanks for taking the time looking into it.
I'm having a great time learning Flex! The sample apps are
such great starters!
later,
pixelflip
Similar Messages
-
AppleScript 10.9.0 System Events -10006 Update property list file item
Have AppleScript that runs without error on Mountain Lion 10.8.5, but errors out on Mavericks 10.9.0.
At end of script, property list items need to be updated and this is when error occurs.
Put together a subset of the script, see below) that get the error
Statement reads "set value of property list item "ArrayList001" to ArrayList001"
Text of error:
error "System Events got an error: 'xxx.plist' is not a property list file."
number -10006 from contents of property list file "xxx05.plist"
=============================================================================
property myPListFile : "cbmck05.plist"
property myPListFilePath : ""
property constPreviousRunDay : "PreviousRunDay"
on run
set today to "Date01" as string
set List001 to {}
set List002 to {}
set myPListFilePath to ""
repeat with i from 1 to 8
set end of List001 to (i * 2) as string
end repeat
set myPListFilePath to path to desktop folder from user domain as string
set fileMyPList to (myPListFilePath & myPListFile) as string
clear_file(fileMyPList)
-- First time! need to initalize
tell application "System Events"
-- create an empty property list dictionary item
set the parent_dictionary to make new property list item with properties {kind:record}
-- create new property list file using the empty dictionary list item as contents
set new_plistfile to ¬
make new property list file with properties {contents:parent_dictionary, name:fileMyPList}
make new property list item at end of property list items of contents of new_plistfile ¬
with properties {kind:string, name:constPreviousRunDay, value:today}
make new property list item at end of property list items of contents of new_plistfile ¬
with properties {kind:list, name:"ArrayList001"}
make new property list item at end of property list items of contents of new_plistfile ¬
with properties {kind:list, name:"ArrayList002"}
end tell
set previousRunDate to today
set xxList to (repopulate_lists())
set ArrayList001 to List001
set ArrayList002 to List002
-- save info in the plist file
tell application "System Events"
tell property list file fileMyPList
tell contents
set value of property list item constPreviousRunDay to previousRunDate
set value of property list item "ArrayList001" to ArrayList001 -- <<< ------- error caused by the statement
set value of property list item "ArrayList002" to ArrayList002
end tell
end tell
end tell
end run
-- ==========================================
on repopulate_lists()
set newList to {}
set List002 to {}
repeat with i from 1 to 8
set end of newList to i as string
end repeat
set List001 to newList
return List001
end repopulate_lists
-- ==========================================
-- Does the file exist?
on fileExists(f)
try
f as string as alias
return true
on error errMsg number errNum
return false
end try
end fileExists
-- Delete the files if exist
on clear_file(aFile)
if fileExists(aFile) then
tell application "Finder"
set resultObject to delete aFile
end tell
end if
end clear_fileHere's an AppleScript handler that partially works around this bug (warning: it turns each list item into a string).
on plistWrite(plistPath, plistItemName, plistItemValue)
-- version 1.1, Daniel A. Shockley
-- 1.1 - rough work-around for Mavericks bug where using a list for property list item value wipes out data
if class of plistItemValue is class of {"a", "b"} and AppleScript version of (system info) as number ≥ 2.3 then
-- Convert each list item into a string and escape it for the shell command:
-- This will fail for any data types that AppleScript cannot coerce directly into a string.
set plistItemValue_forShell to ""
repeat with oneItem in plistItemValue
set plistItemValue_forShell to plistItemValue_forShell & space & quoted form of (oneItem as string)
end repeat
set shellCommand to "defaults write " & quoted form of POSIX path of plistPath & space & plistItemName & space & "-array" & space & plistItemValue_forShell
do shell script shellCommand
return true
else -- handle normally, since we aren't dealing with Mavericks list bug:
tell application "System Events"
-- create an empty property list dictionary item
set the parent_dictionary to make new property list item with properties {kind:record}
try
set plistFile to property list file plistPath
on error errMsg number errNum
if errNum is -1728 then
set plistFile to make new property list file with properties {contents:parent_dictionary, name:plistPath}
else
error errMsg number errNum
end if
end try
tell plistFile
try
tell property list item plistItemName
set value to plistItemValue
end tell
on error errMsg number errNum
if errNum is -10006 then
make new property list item at ¬
end of property list items of contents of plistFile ¬
with properties ¬
{kind:class of plistItemValue, name:plistItemName, value:plistItemValue}
else
error errMsg number errNum
end if
end try
end tell
return true
end tell
end if
end plistWrite -
Property nodes to items in cluster are FRAGILE
This issue has bugged me for a long time . I just got bit again and I wonder if anyone else has a workaround.
I just checked and LV 2009 has it too.
Create a custom control of a cluster with three elements named A, B, C (numeric controls, booleans, whatever, it doesn't matter).
Make it a TYPE DEF (non-strict) and save it.
Put an instance of it on a new VI panel.
Create a PROPERTY NODE for item B and set it to DISABLED property.
Wire a constant to that property node.
Now, if you run the VI, it sets the DISABLED property of item B to the value of the constant. Fine.
Now go to the TYPEDEF, and add another item, called A2 to the cluster.
Re-arrange the cluster order so that it's A, A2, B, C, and save the type def.
Look at your diagram. The property node is no longer linked to B, it's now linked to A2.
Apparently, LV uses the cluster order internally to keep track of the links. So now I'm linked to A2, not B.
If A2 was a different type of object from B, then you MIGHT get lucky and the diagram breaks. At least then, you can see the fact that it changed.
But almost everything has a DISABLED and a VISIBLE property, if that's the one you're using, then you won't notice that it was changed behind your back.
I have taken to adding a free label with the name of the expected control (in parentheses) next to the property node, along with the true label. So if I see a discrepancy between the true label and the free label, I can recognize such a case.
But that's only if I remember that this crap happens.
Anybody got any better ideas? How can I prevent, or at least recognize, such an unwanted change?
Bonus question: the same thing happens with events, for the same reason (I suppose). If I tied an event to item B, that event switches to item A2 behind my back.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And TricksCoastalMaineBird wrote:
This issue has bugged me for a long time . I just got bit again and I wonder if anyone else has a workaround.
I just checked and LV 2009 has it too.
Create a custom control of a cluster with three elements named A, B, C (numeric controls, booleans, whatever, it doesn't matter).
Make it a TYPE DEF (non-strict) and save it.
Put an instance of it on a new VI panel.
Create a PROPERTY NODE for item B and set it to DISABLED property.
Wire a constant to that property node.
Now, if you run the VI, it sets the DISABLED property of item B to the value of the constant. Fine.
Now go to the TYPEDEF, and add another item, called A2 to the cluster.
Re-arrange the cluster order so that it's A, A2, B, C, and save the type def.
Look at your diagram. The property node is no longer linked to B, it's now linked to A2.
Apparently, LV uses the cluster order internally to keep track of the links. So now I'm linked to A2, not B.
If A2 was a different type of object from B, then you MIGHT get lucky and the diagram breaks. At least then, you can see the fact that it changed.
But almost everything has a DISABLED and a VISIBLE property, if that's the one you're using, then you won't notice that it was changed behind your back.
I have taken to adding a free label with the name of the expected control (in parentheses) next to the property node, along with the true label. So if I see a discrepancy between the true label and the free label, I can recognize such a case.
But that's only if I remember that this crap happens.
Anybody got any better ideas? How can I prevent, or at least recognize, such an unwanted change?
Bonus question: the same thing happens with events, for the same reason (I suppose). If I tied an event to item B, that event switches to item A2 behind my back.
For the disabled property inside of cluster whos definition hcanges... we are screuued.
For the events your idea to include the text name, is the same technique that Jim Kring shared with us when he discovered the same thing can happen with dynamic event references. I belive that was CAR'd.
No solutions so no bonus points.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
Export / import privacy property in ical items
Hi
I run into a problem with the privacy property in iCal items (calendar events and to do items). Exporting and importing iCal items as .ics file don't retain the privacy information (the private flag) I can set in the items property dialog. This is pretty bad, as for some of the events and to do items, I'd like to keep this information in any backup I make.
Is there something I can configure in the client or in the server?
iCal server is OS X 10.6.8 on a Mac mini server, iCal client is OS X 10.6.8 on my MacBook Pro.Hi,
I'm using Word 2007. A Captivate support specialist also
mentioned the issue about Word 2007 being a possible cause of the
problem.
I still haven't been able to do the text import, but I found
a work-around. I've been copy/pasting the text from the Word doc
into each text caption individually. It's a tedious process, but it
appears to be working.
Thanks for replying -
Error : FRM-41316: cannot set insert allowed property of disabled item
Hi Forum,
I have a requirement to making the following field non editable Ship Confirm Rule+ in Order Management-->"Release Sales Orders"-->"Shipping" tab
I tried to achieve this using form personalization using the below condition and action
Trigger Event - WHEN-NEW-ITEM-INSTANCE
Trigger Object - RELEASE.DOC_NAME
Condition - :RELEASE.PICKING_RULE is not NULL
Processing Mode - Both
Action Type - Property
Object Type - Item
Target Object - RELEASE.SHIPCONFIRM_RULE_NAME
Property Name - ENABLED
Value - FALSE
I could see the field becomes non editable but when i navigate to "Release Sales Orders"-->"Shipping" tab and press tab button on the field "Trip" I am getting the below error
FRM-41316: cannot set insert allowed property of disabled item RELEASE.SHIPCONFIRM_RULE_NAME
Even i have tried with the following Property Names set to " FALSE " but still the field is able to editable
ENTERABLE
ENTERABLE(APPLICATIONS COVER)
INSERT_ALLOWED
INSERT_ALLOWED(ITEM-INSTANCE)
UPDATE_ALLOWED
UPDATE_ALLOWED(ITEM-INSTANCE)
Please help me to resolve this issue.
Thanks in advance
Regards,
CSKHi Francoiq,
Thanks, As you advised I will post this in E-Business Suite
Regards,
CSK -
FRM-41316: cannot set insert allowed property of disabled item
We are facing an error message while entering the Invoices in Apps R12 . Requested to please look into the issue.
Navigation : CNG India Local AP Super User
Oracle Payables>Invoice >Entry>Invoice
getting the error
FRM-41316: cannot set insert Allowed Property of disabled item inv_sum_folder.doc_category_name
thanks in advance....Please see these docs.
12.1.1 – FRM-41316 Error On Invoice Workbench Forms [ID 862433.1]
R12: Invoice Workbench, get FRM-41316 Error Message [ID 1332977.1]
FRM-41316 Cannot Set Insert Allowed Property Of Disabled Item LINE_SUM_FOLDER [ID 467206.1]
FRM-41316: FRM-41316: Cannot set Insert Allowed property of disabled item APP_FOLDER.TRANS_TO_RECEIPT_RATE When Applying To Foreign Currency Invoices [ID 392368.1]
Thanks,
Hussein -
Forms 10g : How to set the Database Item property for an item dynamically ?
Hello all,
I have a requirement where I need to set the database item property of an item to TRUE/FALSE
dynamically at runtime based on certain conditions.
Earlier, in forms 6i I've used,
Set_Item_Property (<item_name>, DATABASE_ITEM, PROPERTY_TRUE);
But in Forms 10g it doesn't recognize this Database_Item property and gives a compilation error.
Have I overlooked something or has this property become obsolete in Forms 10g ?
If obsoleted what is the replacement property ?
Regards,
SamSome options:
1. Create a database-view, including the "real" column in databases where it exists and a "dummy"-column in databases where it doesn't exist.
If that's not possible,
2. set database="No" for your item and
-- create a POST-QUERY-trigger which reads the data for that column from the database, if the column exists, and
-- create a ON-UPDATE-trigger which includes an
UPDATE_RECORD;
UPDATE THETABLE SET
THECOLUMN=thevalue
WHERE ROWID=:THEBLOCK.ROWID;3. Base your block on either a select-from-clause, a ref-cursor or a procedure to adjust he query-part,, for saving use a procedure. -
How to change a property of all items of the specific type?
Hello,
this should be fairly simple:
tableA ( id, Flag)
There are 2 pages :
Page 1 : allows user to select P1_ID based on the result set from TableA
Page 2 : there is a bunch of items on this page - text fields, text areas, radio and check boxes, reports etc. There values in those items are based on the following logic :
select <bunch of columns correspond to the page items >
from view1, view2 ...
where <where clause>
and
some_column =:P1_ID
Question:
I need to disallow users to change values in the items of text type on the page 2, if value of P1_ID ( TableA.id) has a value in Flag.
How this can be done ?
The ideal solution would be if i can have a routine that would not require hard coding items names.
Thank you
Andrew
Edited by: andrey on Jan 31, 2009 12:51 PM
Edited by: andrey on Jan 31, 2009 12:52 PMAndrew:
The property that you set is the 'Read Only' property for the page-item. This is done from the 'Edit Page Item' page
The conditions under which this property evaluates to true can be determined dynamically (no hard coding). Take a look at the list of possible Conidtion Types. So, if u want the condition to be table-driven you could choose the 'Exists (SQL query returns at least one row)' and the SQL query could be something like
' select 1 from <you_table> where id=:p1_id '
Varad -
Unable to set property Refresh Completed Items for UWL system
Hello Experts,
We are on NetWeaver 7.40 SP2 and UWLJWF version is 1000.7.40.2.0.20130411234700.
We have configured a system object with system alias SAP_ECC_HumanResources pointing to the backend ECC system.
I am creating a UWL WebFlowConnector system with this same system alias in the UWL Administration page to fetch ABAP Workflow workitems from the backend and display those in the portal UWL.
When I try to check the checkbox for the Refresh Completed Items: property and click Save it shows me an error message saying Could not connect to back end SAP_ECC_HumanResources to check if it supports direct custom retrieval feature.
I have already followed the steps for Prerequisites for Enabling Refresh of Completed Items and Activation in Back-end System mentioned in the link Enabling Refresh of Completed Items but still getting the above error.
I have also tried restarting the UWL service as given here (UWL) Error while configuring the Refresh of Completed Items Mechanism
Can anyone give any suggestions what else needs to be checked for this property to work for the UWL system?
Regards,
Saurabh
Message was edited by: Vera GutbrodHello Experts,
I have managed to resolve this problem. The RFC Destination configured for UWL WebFlowConnector had some problems and it was not able to ping to the backend system. I got this RFC Destination re-configured and then restarted the UWL service and following this I am now able to set the Refresh Completed Items property for the UWL WebFlowConnector system.
However now when I am trying to set a value of 30 seconds in the Delta Pull Channel Refresh Period (in Seconds): property and saving the change, I am getting a warning message The backend of system SAP_ECC_HumanResources is not configured for optimized delta pull.
How do I go about setting this value for the delta pull refresh?
Regards,
Saurabh -
Change property of an item by using Set_Item_Property
Hi
How i can change the color property of a text item(FOREGROUND_COLOR, BACKGROUND_COLOR) by using Set_Item_Property in the WHEN-VALIDATE-ITEM trigger.
Advance thanks.I haven't tried in when-validate-item trigger, but this is what I use in setting colors based on user color selections.
set_item_property(block.item, background_color, field_rgb_color);
set_item_property(block.item, prompt_foreground_color, text_rgb_color);
set_item_property(block.item, foreground_color, text_rgb_color); -
Why can't I create property nodes for item in STRICT typedef cluster?
I've tried this in LV7.0/WIN2k and LV 7.1/OSX - both versions work the same.
I have a TYPEDEF consisting of a cluster of items A, B, and C.
I have a front-panel instance of this typedef.
Under certain conditions, I want to disable and gray Item C, because it's not applicable.
So I need a property node connected to item C.
If the typedef is STRICT, then I cannot create such a property node - the menu item to create anything is just not there.
If I change to NON-STRICT, then I can create the property node.
I can change it back to STRICT, and the property node works just fine.
The question is, if the nodes WORK normally, why can I not CREATE one?
If there's some sense behind this, someone please point it out to me...
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And TricksI agree with you, It would be nice to be able to keep the non strict typedef auto-update and extend it to properities which effect the look of a control. I am not sure why you can change the properities on a strict typedef. A strict typedef should have private properities (can only be changed from within the definition and no public other vi scope for writing these values. I have in the past used a custom control for presentation purposes and contained the structure of the data to be displayed within the typedef cluster. This is not all that automatic since we need vi's to convert between the definition and control. Seperating data structure from presentation is much like XML where the file only contains data structure and a reference to a style for presentation. It would be a very nice option to allow nonstrict typedefs to have an additional auto-update properities which could be toggled on and off. I would be curious to here others opinions on how to keep data structure and presentation consistant across an application without being tied down to a strict typedef (allowing the optional change of teh presentation at runtime).
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA -
How to set Rendering property of an item in a Default Double Column
Hi ,
I have developed a self service query region with default double column region. I have placed a combination of Input Text , LOV component in that region. My Issue is , I need to set the rendering property of the LOV input during run time. I used the OAMessageLOVInputbean.setRendered(false) in my contoller class. But I found that this is not working.
Is there is any other way to handle the rendering property of item's in a default double column during run time.
ThanksHere is the code snippet
import oracle.cabo.style.CSSStyle;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
CSSStyle css =new CSSStyle();
css.setProperty("text-transform","uppercase");
OAMessageTextInputBean mtib=(OAMessageTextInputBean)webBean.findChildRecursive("HelloName");
if(mtib!=null) {
mtib.setInlineStyle(css);
}Hope it helps!!!
Thanks
AJ -
Getting the required property of an item in a bean
Hello all,
is it possible to get the required property of e.g. a VTextField inside a PJC?
I am trying to write a bean that iterates through all the components of a form a puts a red border on all fields marked as required in Forms. I cannot find an appropriate getter or ID to use with the getProperty(ID) method.
Any help is appreciated
AchimThere is already a functionality which makrs all required fields:
Open the file $ORACLE_HOME\forms\java\oracle\forms\registryregistry.dat with a texteditor
At the end of the file you'll find two entries
app.ui.requiredFieldVA=false
# The background color is specified as an RGB triple.
app.ui.requiredFieldVABGColor=255,0,0Set the first one to true and the second one to a color of your choice, restart OC4J and check the results, maybe it fits your requirement. -
Property Name for ITEMS and BP while importing templete
hi
Im going to import templete for BP and item.i know the proprerties of BP but i dont know what code i have to use in that BP templete for linking a BP with diffrent properties.please suggest me.
ThanksYou can have the following columns in your Item master or BP Master template for properties
Properties1 Properties2 Properties3 ..... Properties64
Properties1 Properties2 Properties3 ..... Properties64
You can have values like tYes or tNo to set or remove the property -
hi can someone help me !!!
I have some 100 records in a table.I have created a form to display these records.
Now say I want the records with the previous years 2005-06 to be shown in the form as greyed out or not enabled but visible.At the same time the records with the year 2007-08 in the same form should be highlighted.
please let me know how to use the set item property or set item instance property for the above records.
ThanksWhen I put this trigger in Post query
all the records are disabled.
the current year record to be enabled.
Please suggest it is urgent.
Post Query:
if :mhr_expenses.exp_fyear = '2005-06' then
set_item_property('exp_fyear',enabled,property_false);
set_item_property('exp_slno',enabled,property_false);
set_item_property('exp_particulars',enabled,property_false);
set_item_property('exp_value',enabled,property_false);
elsif :mhr_expenses.exp_fyear = '2007-08' then
set_item_property('exp_fyear',enabled,property_true);
set_item_property('exp_slno',enabled,property_true);
set_item_property('exp_particulars',enabled,property_true);
set_item_property('exp_value',enabled,property_true);
end if;
Maybe you are looking for
-
Certificate not found Security BEA-090169
<pre>HI</pre> I am trying to Access a External Webservice( which is a https... I am facing a lot of problem. Initially I was having ConnectException.. We found out that it was due to proxy setting on our end So We set the proxy setting in our SetDoma
-
Displaying video on Apple monitors
I have heard of several video post suites using the 23" cinema displays as an HD video monitor. Is there any video professionals out there who could shed their experiences and thoughts on this? Spec wise they are 1920 x 1200, but obviously calibratin
-
hi, I was just wondering if there's a way to use your iMac as a monitor for a playstation? With Apple Tv etc, I'm sure there's probably a way of going it, but many forums seem to have conflicting ideas!
-
"Add people" feature has never worked in Elements 11. How do I fix this? It recognizes faces in individual photos, but not in groups of photos.
-
Windows User Switching. I have a macbook with ?'s
Hi everyone I bought a macbook last year with leopard and realized that im actually much happier with my macbook then when I use my desktop windows machine. Now I have been contemplating selling my desktop computer and purchasing a imac 24" with inst