AdvancedDataGrid: I cannot relate the selected cells to the dataprovider
If you look at this
http://livedocs.adobe.com/flex/3/langref/mx/controls/AdvancedDataGrid.html#selectedCells
The selectedCells work fine if you have ungrouped data but when items are grouped the row index does not realte to the flat dataprovider but the grouped rows in the ADG display. This is annoying as I cannot relate the selected cells to the dataprovider.
Any ideas how to get around this?
Ok so if i write some text and all the words are of different sizes and i have to resize it using the transform tool, i cannot resize it unto the size i want. e.g.. i wrote this text "The Big Bold Sale" all the words are of different sizes and are grouped together, so when i resize it using transform tool all these words are resized differently "The big" becomes big, "bold" becomes little smaller and "sale" is not resized.. the image is attached.
Similar Messages
-
How to get the selected cell in a Matrix.
Hi all,
Does any one know how to get the selected cell in a Matrix. Please help to answer. Thanks in advance.
Regards,
Thanh TranHi,
You can get the value of every cell using UI API but using datasources is a better aproach.
Using UI API you need to know the event you want to catch. Example: Catching click event in itemcode column and getting the value (C#):Ki
if ((pVal.EventType == BoEventTypes.et_CLICK) && //CLICK EVENT
(pVal.ItemUID == "38") && //MATRIX-> ITEM 38
(pVal.ColUID == "1") && //ITEMCODE COLUMN
(!pVal.InnerEvent) &&
(!pVal.BeforeAction))
Form form = null;
try
form = kernel.Application.Forms.Item(pVal.FormUID);
form.Freeze(true);
Matrix mtx = (form.Items.Item(pVal.ItemUID).Specific as Matrix); //MATRIX OBJECT
string itemCode = (mtx.Columns.Item("1").Cells.Item(pVal.Row).Specific as EditText).Value.Trim(); //itemcode = VALUE OF CELL. COLUMN "1": ITEMCODE COLUMN. CURRENT ROW: pVal.Row
catch (Exception ex)
kernel.Application.MessageBox("Error " + ex.Message, 0, "", "", "");
finally
if (form != null)
form.Freeze(false);
Kind regards,
Nauzet Díaz -
"The selected cells are read-only" error on Custom Field when trying to insert in Datasheet mode
I have a custom field that works completely fine. Yesterday our QA team found out that when trying to insert in Datasheet format, the error "The selected cells are read-only" was thrown. Any ideas? I tried passing the following property to my fldtypes_field.xml file:
<Field Name="ReadOnly">FALSE</Field>
No luck.Victor PalmaUnfortunately it did not work. I also developed the code and access the field and checked its property called "ReadOnlyField" which is already set to false.
Below is the xml that i am using. Can you please share the xml that you had used?
<?xml version="1.0" encoding="utf-8"?>
<FieldTypes>
<FieldType>
<Field Name="TypeName">MyCustomField</Field>
<Field Name="ParentType">Text</Field>
<Field Name="TypeDisplayName"> My Custom Field</Field>
<Field Name="TypeShortDescription"> My Custom Field</Field>
<Field Name="AllowBaseTypeRendering">True</Field>
<Field Name="ReadOnlyField">False</Field>
<Field Name="UserCreatable">TRUE</Field>
<Field Name="ShowInListCreate">TRUE</Field>
<Field Name="ShowInSurveyCreate">TRUE</Field>
<Field Name="ShowInDocumentLibraryCreate">TRUE</Field>
<Field Name="ShowInColumnTemplateCreate">TRUE</Field>
<Field Name="FieldTypeClass">My Assembly Information goes here</Field>
</FieldType>
</FieldTypes> -
How to get the dimensions of the selected cell in java client
hi,
I am able to retrieve the value of a particular cell using the data access package.i want to know how can i get the measure and dimension of a particular cell in java client.is it possible to get the row and edge of the selected cell?please help me in this.
thanks and regards
S.Sharanyahi,
I am able to get the value like 'RM00' of the dimension by using the method,
m_activeView.getModel().getDataAccess().getValueQDR(1,1,1).getDimMember(m_activeView.getModel().getDataAccess().getValueQDR(1,1,1).getDimensions().nextElement().toString()));
but this give all the values of the each dimension for each cell of the crosstab.but i want the values of dimension which is selected.i am able to get the selected dimension usind qdr method,for which i am getting the output like
MDM!MEASUREDIMENSION(MDM!D_DEMO1.RESIDUAL_DIM 'RM00', MDM!MEASUREDIMENSION 'MDM!M_DEMO1.PD_BR_RMT_LDRUN_CUBE.PBRL_SIM', MDM!D_DEMO1.PRODUCT_DIM 'G001', MDM!D_DEMO1.LOADRUN_DIM '3', MDM!D_DEMO1.BRANCH_DIM 'HO01')
i want to know the method so that i can get only values ,like RM00,G001,3,H001.is there any method,so that i can get all these value alone.pls help me.i am not able to proceed without this.
thanks
s.sharanya -
Changing the background color of the row of the selected cell in table view
How can I change the background color of the table row when user clicks on table cell in table view?
Edited by: a_brar on May 5, 2012 11:12 PMYou could apply the following css style (by defining a custom stylsheet with the following lines and loading it into your app).
The last color sets the background color of the selected row while the table-view has focus (in this case to orange).
.table-view:focused .table-row-cell:filled:focused:selected {
-fx-background-color: -fx-focus-color, -fx-cell-focus-inner-border, orange;
}There are quite a lot of subtleties in the css styling for the tableview (e.g. different colors for the selected row when the control has focus vs when it doesn't or when the user hovers over a selected row in an unfocussed tableview), which you may want to cater for when chaning the background color of the selected row in a table view. There is also alternate styling for when the tableview is in row selection vs cell selection mode. So you may want to look at customizing further based on the css styles in caspian.css in sdk/rt/lib/jfxrt.jar if you can understand the complex css there. -
Jtable keep the selected cells' background
hi,
I want to change the background color of the selected cells.
after selection, I may do another selection,but I want to keep the previous selected cells' background color.
any help will be appreciated!
thanks!
zhangvDid you try using Ctrl + Mouse Click ?
Remember you need to set following property before you try the above solution:
tableObj.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION ); -
Clone retouch feature cannot clone the selected source to the destination
after i have upgraded to version 3.3, clone retouch feature cannot clone the selected source to the destination. the color tone and level is out of place. please help in this area.. is there any fixing? or is that a new feature or bug there? thank you..
Both cloning and repairing using the Retouch Brick work fine here.
Have you tried it on a few different Images (taken at different times, different formats, different cameras)?
It's a minor bit of voodoo, but you might reboot and see if the problem persists. -
How to pass value from the Z Report to the selection screen of the std rep
Dear Experts,
i have developed a report and the values are maintained only in internal table based on some condition. When I execute the report, for example MM60, there is a material number field for multiple selection.
the report should call the standard transaction and pass the values from the internal table to the multiple selection- material number of the standard transaction.
the standard transaction should never get executed automatically. Only the value should get passed from internal table to the standard t code. Please help.
regards,
ShankarHai
Go through the following Documents
SUBMIT rep.
Additions
1. ... LINE-SIZE col
2. ... LINE-COUNT lin
3. ... TO SAP-SPOOL
4. ... VIA SELECTION-SCREEN
5. ... AND RETURN
6. ... EXPORTING LIST TO MEMORY
7. ... USER user VIA JOB job NUMBER n
8. ... Various additions for parameter transfer to rep
9. ... USING SELECTION-SETS OF PROGRAM prog
Effect
Calls the report rep . Leaves the active program and starts the new report rep .
Addition 1
... LINE-SIZE col
Effect
Prints the report with the line width col .
Addition 2
... LINE-COUNT lin
Effect
Prints the report with lin lines (per page).
Addition 4
... VIA SELECTION-SCREEN
Effect
Displays the selection screen for the user. In this case, the selection screen is redisplayed after return from the report list display - the user's entries are retained.
Addition 5
... AND RETURN
Effect
Returns to the calling transaction or program after the called program has been executed. SUBMIT ... AND RETURN creates a new internal mode .
Addition 6
... EXPORTING LIST TO MEMORY
Effect
Does not display the output list of the called report, but saves it in SAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. You can read the saved list from SAP memory with the function module 'LIST_FROM_MEMORY' and then (for example) store it in the database with EXPORT . You can process this list further with the function modules 'WRITE_LIST' , 'DISPLAY_LIST' ... of the function group "SLST" .
Addition 7
... USER user VIA JOB job NUMBER n
Effect
Schedules the specified report in the job specified by the job name job and the job number n . The job runs under the user name user and you can omit the addition USER user . The assignment of the job number occurs via the function module JOB_OPEN (see also the documentation for the function modules JOB_CLOSE and JOB_SUBMIT . This addition can only be used with the addition ...AND RETURN .
Note
When scheduling a report with the SUBMIT ... VIA JOB job NUMBER n statement, you should always use the addition ...TO SAP-SPOOL to pass print and/or archive parameters. Otherwise, default values are used to generate the list and this disturbs operations in a production environment.
Addition 9
... USING SELECTION-SETS OF PROGRAM prog
Effect
Uses variants of the program prog when executing the program rep .
Note
Important
The programs prog and rep must have the same SELECT-OPTIONS and PARAMETER s. Otherwise, variants of the program prog may be destroyed.
Note
When using this addition, the specified variant vari of the program prog is taken in USING SELECTION-SET vari . On the other hand, all variant-related actions on the selection screen of rep (Get , Save as variant , Display , Delete ) refer to the variants of prog .
Example
SUBMIT REPORT01
VIA SELECTION-SCREEN
USING SELECTION-SET 'VARIANT1'
USING SELECTION-SETS OF PROGRAM 'REPORT00'
AND RETURN.
Effect
Executes the program REPORT01 with the variant VARIANT1 of the program REPORT00 .
Note
Runtime errors
LOAD_PROGRAM_NOT_FOUND : The specified program was not found.
SUBMIT_WRONG_TYPE : The specified program is not a report.
SUBMIT_IMPORT_ONLY_PARAMETER : Only one value passed to a report parameter.
SUBMIT_WRONG_SIGN : Invalid value passed to a selection with the addition SIGN .
SUBMIT_IN_ITAB_ILL_STRUCTURE : Table passed to a selection with WITH sel IN itab had an unexpected structure.
Try with this Example
Data: listobject like abaplist occurs 1 with header line.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = listobject
EXCEPTIONS
OTHERS = 1 .
IF sy-subrc <> 0.
message ID '61' TYPE 'E' NUMBER '731'
with 'LIST_FROM_MEMORY'.
ENDIF.
Thanks & regards
Sreenivasulu P -
User presses F4 on the selection screen for the field ''Transport Request"
Dear ALL,
I want to build up a functionality in my report where if the user presses F4 on the selection screen for the field ''Transport Request", then it will display all the Transport Requests involving that particular User...
What I mean is the normal process that is provided by SAP on saving an object in a package & assigning it to TR...
How do we Achieve it ?Hi.
First we need to give the client after that client number related requestes display in second parameter F4 help for that purpose i used two function modules.First for read the client no dynamically after that pass the client number second function module.
then u can get all the request for that client.
DFIELD-FIELDNAME = 'P_MANDT'.
APPEND DFIELD.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = 'Y9EZ_TR_COPYCLIENT'
dynumb = SY-DYNNR
tables
dynpfields = DFIELD
READ TABLE DFIELD INDEX 1 ."WITH KEY DFIELD-FIELDVALUE = 'P_MANDT'.
V_MANDT = DFIELD-FIELDVALUE.
CALL FUNCTION 'TR_F4_REQUESTS'
EXPORTING
IV_USERNAME = SY-UNAME
IV_TRKORR_PATTERN =
IV_TRFUNCTIONS =
IV_TRSTATUS = 'RNDL'
IV_FROM_DATE =
IV_TO_DATE =
IV_CLIENT = V_MANDT
IV_PROJECT =
IV_TITLE =
IV_VIA_SELECTION_SCREEN = 'X'
IV_COMPLETE_REQUESTS = 'X'
IT_EXCLUDE_REQUESTS =
IMPORTING
EV_SELECTED_REQUEST = S_TRKORR-LOW.
ES_SELECTED_REQUEST =
'TR_F4_REQUESTS' This function module for request
Regards
muralii -
Need to get the selected values from the selectManyShuttle
Hi,
I am using ADF11g newer version.
I have a selectManyShuttle and a command button. Need to insert all the selected values on the right hand side of the selectManyShuttle into a database table.
I created the selectManyShuttle with the values. Need help in getting the values on the right hand side.
<af:selectManyShuttle value="#{bindings.UserMgmtVO1.inputValue}"
id="sms2">
<f:selectItems value="#{bindings.UserMgmtVO1.items}"
id="si6"/>
</af:selectManyShuttle>
Any sample code or link is really appreicated.
ThanksThanks for the reply.
I am using a View Object and I dropped it as SelectManyShuttle
<af:selectManyShuttle value="#{bindings.UserMgmtVO1.inputValue}"
id="sms2"
valueChangeListener="#{POBacking.getSelectedValues}"
valuePassThru="true"
autoSubmit="true">
<f:selectItems value="#{bindings.UserMgmtVO1.items}"
id="si6"/>
</af:selectManyShuttle>
public void getSelectedValues(ValueChangeEvent valueChangeEvent) {
System.out.println("Testing Shuttle");
ArrayList list = new ArrayList(Arrays.asList(valueChangeEvent.getNewValue()));
String val = "";
String sqlStmt = "";
try {
if (list != null) {
for (int i = 0; i < list.size(); i++) {
int l = list.size() - 1;
val = list.get(l).toString(); //returns , delimited string
System.out.println(" value:" + val);
if (val != null) {
val = val.replaceAll("[\\[\\]]", ""); //remove []
StringTokenizer st = new StringTokenizer(val, ",");
int nto = st.countTokens();
for (int j = 0; j < nto; j++) {
String users = st.nextToken().trim();
System.out.println("Users:" + users);
//sqlStmt = " update xxpp_project_clip set clip_status='true', clip_seq = "+j * 10+
// " where project_id = "+rHdr.getAttribute("ProjectId") +
// " and clip_name ='"+ clip_Name +"'";
//System.out.println("sqlStmt:" + sqlStmt);
//stmt.executeUpdate(sqlStmt);
//am.getDBTransaction().commit();
//if (stmt != null)
// stmt.close();
// am.getDBTransaction().commit();
} catch (Exception ex) {
ex.printStackTrace();
I don't see the values in the list.
I gets printed as
value:[Ljava.lang.Integer;@1b10691
Users:Ljava.lang.Integer;@1b10691
how to get the individual values in the list?
Thanks
Saru -
How to display the sort value in the selection screen in the report title
Dear All,
How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
Good day,
Thanks and regards
Arun SHi Arun,
Try this.
1, Set one dynamic parameter,
2, Drag and drop that parameter into your report title.
3, Pass the value(sort value) dynamically from your application,
4, Cheers..
Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then set the data source from CR designer. and darg and drop that data column into the report.
Hope this will work,
Regards,
Salah
Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM -
How to clear the selected values in the JCombobox
Hi All,
Can you please tell - how to clear the selected values in the JCombobox
I have four dropdowns in my application, When I click "CLEAR" button, what ever the values selected in the four drop downs should go off and view as "SELECT" in all the dropdowns.In addition to the above you should also check out [Combo Box Prompt|http://www.camick.com/java/blog.html?name=combo-box-prompt] which makes it easy to display the default prompt.
-
How to remove the "0" from the sum cell when the other cells are empty?
Hello!
When I use the formula to sum the values from a few cells, there is a zero in the sum cell when the other cells are empty.
My question concerns how to remove the 0 from the sum cell when the cells that will be summed are empty.
Thank you!
/Johan StrömbeckHi,
Please try the Mr. Laurence's suggestion first. Then, we may try the other workarounds.
1) Go to Excel option> Advanced>Display Option for this worksheet> Uncheck Show a zero in cells that have zero value
2) Go to Conditional Formatting>New Rule>Format only cells that contain> Value equal to 0> Format the color with white
Hope it's helpful.
Regards,
George Zhao
TechNet Community Support -
How can I see the selected tags in the tag bar clearly
How can I see the selected tags in the tag bar clearly (they used to be in black, now they do not change color; a highlight or Bold would help)
The History menu lets you revisit the page where you can drag any page element from it.
How would you sort through thousands (tens of thousands) of files found in a cache? -
How to directly get the selected value in the dropdown
Hi Experts
Now, in POV, i want to directly get the selected value in the dropdown. Because, the program doesn't enter the PAI before POV part. Therefore, the corresponding variable of dropdown doesn't store the selected value. That's reason why i want to find a way to directly get the selected value in the dropdown. is there any function module to do this?you can use INITIALIZATION event which triggers first before any other events..
and u can use VRM_SET_VALUES to populate the values in the list
DATA : v TYPE vrm_values.
DATA : vw LIKE LINE OF v.
INITIALIZATION.
vw-key = '1'.
vw-text = 'ABC'.
APPEND vw TO v.
vw-key = '2'.
vw-text = 'DEF'.
APPEND vw TO v.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'A'
values = v.
PARAMETERS : a TYPE c VISIBLE LENGTH 10 AS LISTBOX.
Maybe you are looking for
-
i was trying to download some toolbar option and when i came back to my home page the 2 arrows on the top left side of the page were missing and i tryed to replace them but i am not able to fine the to replace them One more question how do i remove t
-
Windows 7 clients suddenly unable to connect to SQL database
Our environment in a nutshell: Server1: Small Business Server 2003 R2 (Active Directory domain, it is the sole domain controller [DC]) Server2: Dedicated to SQL Server 2005 and the SAP Business One database Server3: Windows Server 2003 R2 Standard Te
-
Do I need to purchase anything extra with my MacBook Pro in order to convert between Mac and pc files. I need to be able to open Mac files in excel, word etc.
-
with ExecuteToStream for an XmlType Query (against a non-xml table) I get data back as what appears to be UTF-16. Can I change this to UTF-8 ? Or ASCII ? thanks R.
-
hi all i m developing online test(aptitude test) i want to add images or figures like circle or rectangle wat tech i should use for desiging the page frontpage or java is it possible in html thanx in advance rachna Message was edited by: rachna_arora