Symbol Properties Class: field
Hi,
What exactly is the function of the Class field in the Symbol Properties window?
I believe there are a couple of aspects to that, and for what I offer, anyone who knows better should chime in.
If you have an object in the library that you want to load dynamically, such as a MovieClip, you prepare it for that by selecting the option to Export for Actionscript, which lights up the ability to define a Class name for the object. When you compile the file a class definition for that object is automatically generated if there is not already a class by that name in a separate .as file.
So you can create a movieclip and have it be its own class. Or you can create some entity and assign it a Class ID that already exists as a separate .as file.
And in your AS code, to create a new instance of that class, you do it just like any other AS3 class...
var newInstance:ClassNameAssigned = new ClassNameAssigned();
Similar Messages
-
How to reload Properties class
Hi,
I am using the following code to reload ResourceBundle.
Now I have decided o switch from ResourceBundle to Properties.
I would liek to know the modifications needed in this code to reload Properties class.
When I use the same code I am getting NoSuchFieldException when the method 'getDeclaredField("cacheList")' is called.
Class<Properties> type = Properties.class;
Field cacheList = type.getDeclaredField("cacheList");
cacheList.setAccessible(true);
((Map)cacheList.get(Properties.class)).clear();
Please help.
Thanks in advance,
NeelambaryWhy don't you just use clear() and load(InputStream)?
regards
slowfly -
Field-symbols as class attribute
Hi Fellas,
Is there a way we can define a field-symbols as a class attribute ? My requirement is that i am dynamically constructing a structure at runtime in my model class and binding the component of this structure to my view fields. I am able to create the structure which is basically ref to cl_abap_structdescr and the problem is when i am binding to the model attribute, i need this to be a structure so that i can address the components as "//model/structure.component".
Please let me know how we can define a field-symbol as a class attribute.
Cheers,
Ram.Hi Ram,
Field-Symbol as class attribute is not possible. Your way to do this by REF TO DATA is the correct way for that.
By default data binding is only possible like this:
Simple field attribute
value=//<model>/<field name>
Structure attribute
value=//<model>/<structure name>.<field name>
Table attribute
value=//<model>/<table name>[<line index].<field name>
If you want to bind to your data reference you have to implement your own getter and setter methods. Read this <a href="http://help.sap.com/saphelp_nw70/helpdata/en/fb/fbb84c20df274aa52a0b0833769057/frameset.htm">http://help.sap.com/saphelp_nw70/helpdata/en/fb/fbb84c20df274aa52a0b0833769057/frameset.htm</a> for further information. In addition to that, you have to implement your own GET_M_S_xxx to return metadata of your structure. By doing all this it is possible to implement a completely dynamic data binding. In the view it looks like the regular Structure attribute: value=//<model>/<data-ref name>.<field name>
Regards,
Thilo -
Hello,
Is it possible to use field-symbols in classes?
When I try to declare field-symbol in class like other variable, appears an error.
Or may be it is possible to use something instead of field-symbols?
Great thanx in advance!Hi
You can use field symbols in classes.
Sample code is given below:
CLASS c1 DEFINITION.
PUBLIC SECTION.
METHODS m1 IMPORTING oref TYPE REF TO object
attr TYPE string.
ENDCLASS.
CLASS c1 IMPLEMENTATION.
METHOD m1.
FIELD-SYMBOLS <attr> TYPE ANY.
ASSIGN oref->(attr) TO <attr>.
WRITE <attr> ...
ENDMETHOD.
ENDCLASS.
Thanks
Khushboo -
Is it possible to declare field symbols inside classes?
Thanks in advance.
Hema
Moderator message: please search for information and try yourself before asking.
Edited by: Thomas Zloch on Dec 23, 2010 10:55 AMHi Hemalatha,
We can use Field Symbols in classes.
local field_symbols within methods are allowed.
you can only use field-symbols within method (locally), not as direct class attribute (globally).
U can check with this sample code.
Sample code is given below:
CLASS c1 DEFINITION.
PUBLIC SECTION.
METHODS m1 IMPORTING oref TYPE REF TO object attr TYPE string.
ENDCLASS.
CLASS c1 IMPLEMENTATION.
METHOD m1.
FIELD-SYMBOLS <attr> TYPE ANY.
ASSIGN oref->(attr) TO <attr>.
WRITE <attr> ...
ENDMETHOD.
ENDCLASS.
I hope u got this ..... -
Field symbols as Class Attributes
Hello Gurus,
Is anybody able to say to me if it is possible to declare field symbols as class attributes? As I can understand until now, this is not possible and we need to use some attribute with the "TYPE REF TO Data" to get the information we need. Correct?
Thanks,
Daniel.Ok, let me see if someone can give me some idea on how to improve my method:
Method: PREPARE_PTOOL_DATA
Parameters specification:
Parameter Type Typing Reference Type
PF_ANALYSIS Importing Type /SYM/SC_PT_ID_ANALYSIS_D
PF_ANAL_DESC Importing Type /SYM/SC_NM_DESC_ANALYSIS
PF_LOGIC Importing Type CHAR01
PF_MATERIAL Importing Type MATNR
PF_MAKTX Importing Type MAKTX
PT_DATA_COMPA Exporting Type /SYM/SC_TAB_PT_RESULT_CP
PT_CALC_ANALY Exporting Type /SYM/SC_TAB_PT_RESULT_CA
PT_DATA_MATERIAL1 Changing Type /SYM/SC_TAB_PROC_ALLERG_RESULT
PT_DATA_MATERIAL2 Changing Type /SYM/SC_TAB_PROC_ALLERG_RESULT
Source code:
From the /SYM/SC_CL_PROCESS_ALLERG_GEN class
Old version (but it is working)
METHOD prepare_ptool_data.
DATA: ls_data_material1 TYPE /sym/sc_s_proc_allerg_result,
ls_data_material2 TYPE /sym/sc_s_proc_allerg_result,
lf_index_material1 TYPE sy-tabix,
lf_index_material2 TYPE sy-tabix,
ls_result_cp TYPE /sym/sc_pt_result_cp,
ls_result_ca TYPE /sym/sc_pt_result_ca.
Prepare data for Data Comparison step
IF pt_data_compa IS REQUESTED.
LOOP AT pt_data_material1 INTO ls_data_material1.
lf_index_material1 = sy-tabix.
CLEAR ls_result_cp.
MOVE pf_analysis TO ls_result_cp-analysis.
MOVE pf_anal_desc TO ls_result_cp-desc_analysis.
MOVE ls_data_material1-algbe TO ls_result_cp-desc_property.
If Logic 'A', move the text from ls_data_material1 to original
material status
IF pf_logic EQ c_logic_a.
MOVE ls_data_material1-agsbe TO ls_result_cp-val_orig_matnr.
If Logic 'B', move the text from ls_data_material1 to "toy"
material status
ELSEIF pf_logic EQ c_logic_b.
MOVE ls_data_material1-agsbe TO ls_result_cp-val_toy_matnr.
ENDIF. " IF pf_logic EQ c_logic_a.
Read the lt_data_toy by the Allergen ID (ALGEN)
CLEAR ls_data_material2.
READ TABLE pt_data_material2 INTO ls_data_material2
WITH KEY algen = ls_data_material1-algen BINARY SEARCH.
IF sy-subrc EQ 0.
lf_index_material2 = sy-tabix.
If Logic 'A', move the text from ls_data_material2 to "toy°
material status
IF pf_logic EQ c_logic_a.
MOVE ls_data_material2-agsbe TO ls_result_cp-val_toy_matnr.
If Logic 'B', move the text from ls_data_material2 to original
material status
ELSEIF pf_logic EQ c_logic_b.
MOVE ls_data_material2-agsbe TO ls_result_cp-val_orig_matnr.
ENDIF. " IF pf_logic EQ c_a.
Delete record from lt_data_toy, index lf_index_toy
DELETE pt_data_material2 INDEX lf_index_material2.
ENDIF. " IF sy-subrc EQ 0.
APPEND ls_result_cp TO pt_data_compa.
Delete record from lt_data_orig, index lf_index_orig
DELETE pt_data_material1 INDEX lf_index_material1.
ENDLOOP. " LOOP AT lt_data_material1 INTO ls_data_material1.
ENDIF. " IF pt_data_compa IS REQUESTED.
Prepare data for Calculation Analysis step
IF pt_calc_analy IS REQUESTED.
LOOP AT pt_data_material1 INTO ls_data_material1.
lf_index_material1 = sy-tabix.
CLEAR ls_result_ca.
MOVE pf_material TO ls_result_ca-matnr.
MOVE pf_maktx TO ls_result_ca-maktx.
MOVE pf_analysis TO ls_result_ca-analysis.
MOVE pf_anal_desc TO ls_result_ca-desc_analysis.
MOVE ls_data_material1-algbe TO ls_result_ca-desc_property.
If Logic 'A', move the text from ls_data_material1 to original
material status
IF pf_logic EQ c_logic_a.
MOVE ls_data_material1-agsbe TO ls_result_ca-val_curr_stat.
If Logic 'B', move the text from ls_data_material1 to "toy"
material status
ELSEIF pf_logic EQ c_logic_b.
MOVE ls_data_material1-agsbe TO ls_result_ca-val_simul_stat.
ENDIF. " IF pf_logic EQ c_logic_a.
Read the lt_data_toy by the Allergen ID (ALGEN)
CLEAR ls_data_material2.
READ TABLE pt_data_material2 INTO ls_data_material2
WITH KEY algen = ls_data_material1-algen BINARY SEARCH.
IF sy-subrc EQ 0.
lf_index_material2 = sy-tabix.
If Logic 'A', move the text from ls_data_material2 to "toy°
material status
IF pf_logic EQ c_logic_a.
MOVE ls_data_material2-agsbe TO ls_result_ca-val_simul_stat.
If Logic 'B', move the text from ls_data_material2 to original
material status
ELSEIF pf_logic EQ c_logic_b.
MOVE ls_data_material2-agsbe TO ls_result_ca-val_curr_stat.
ENDIF. " IF pf_logic EQ c_a.
Delete record from lt_data_toy, index lf_index_toy
DELETE pt_data_material2 INDEX lf_index_material2.
ENDIF. " IF sy-subrc EQ 0.
APPEND ls_result_ca TO pt_calc_analy.
Delete record from lt_data_orig, index lf_index_orig
DELETE pt_data_material1 INDEX lf_index_material1.
ENDLOOP. " LOOP AT lt_data_material1 INTO ls_data_material1.
ENDIF. " IF pt_calc_analy IS REQUESTED.
ENDMETHOD.
As you can see, I am repeating almost the same code, just changing some items. I am not sure if I can use new parameters (ANY or ANY TABLE) but, my first idea to improve it was to use the field-symbols (and it works ok). The issue is that I have to repeat the assignment lines every same named method of the classes I am changing (I would like to do the assignment into a new method of the superclass). Do you think it is possible or should I give up and proceed with the assignments locally, for each same named method of each class?
Thanks,
Daniel. -
Symbol Properties - changing class name
Newbee question...
I'm trying to change the class name of a movie clip symbol
that I have in my library. I've changed the name of the symbol,
I've change the name of the class in my AS3. I've changed the name
in the advanced properties Class:, but at the bottom of the
properties page there is a button that's labeled Symbol... when I
click on it, nothing happens, next to the button is Symbol Name:
[old name], but because the Symbol button does nothing when I click
on it, I cannot change the name here to the new name. Below that is
a check box that says always update before publishing, which I
checked and then published, but it still didn't update to the new
name. What am I missing?I believe there are a couple of aspects to that, and for what I offer, anyone who knows better should chime in.
If you have an object in the library that you want to load dynamically, such as a MovieClip, you prepare it for that by selecting the option to Export for Actionscript, which lights up the ability to define a Class name for the object. When you compile the file a class definition for that object is automatically generated if there is not already a class by that name in a separate .as file.
So you can create a movieclip and have it be its own class. Or you can create some entity and assign it a Class ID that already exists as a separate .as file.
And in your AS code, to create a new instance of that class, you do it just like any other AS3 class...
var newInstance:ClassNameAssigned = new ClassNameAssigned(); -
Hi!
I have deal with EJB 2.0 CMP bean.
I have a composite PK so use the java class to store it. And there is a corresponding field in the Entity Bean with its primary key class type.
The problem is: when deployment tool creates sql query for the findByPrimaryKey(PKClass ck)
where ck is an object with 3 fielde : a_id, b_id, c_id.
it says:
<sql>SELECT "ck" FROM "MyTable" WHERE "ck" = ? </sql>
And it means by the "ck" simple a column in DB but NOT the composite key which has to be splited into 3 different fields. So the container can't do the proper mapping.
Does anyone know solutions?I was wrong about primary key class fields, take a look at Ejb2.0 Specification (10.8.2):
The primary key class must be public, and must have a public constructor with no parameters.
All fields in the primary key class must be declared as public.
The names of the fields in the primary key class must be a subset of the names of the container-managed
fields. (This allows the container to extract the primary key fields from an instance�s container-managed
fields, and vice versa.)
Right now I'm using BMP and I don't have this problems. Primary keys, calculated fields and types not supported by the DB can be easily achieved. But I understand your interest on CMP, is clearly evolving! -
How to get the object class field value in CDHDR table for vendor
hi
how to get the object class field value in CDHDR table for vendorTry KRED/KRED_N as object class in CDHDR for Vendor.
-
Symbol Properties- Source; 'file: '???
You can find this if you right click on a symbol in the
library and select properties. And in the Source section there is a
browse button for a file.
I have a remote library set up on a few symbols in a project
I am doing and thought that it would relate. However I can’t
seem to find any info on what this is. Does anyone know what this
‘source file’ is and how it can be used?Yes, I was think it's a pathing problem.
Since you can't have two folders with exactly the same name, doing a copy/paste changes that path. OK .....so how can we cheat/fool Flash into using the same path (sort of) for two different folders?
Thinking out load: can you do some testing on a small scale... not the whole project?
Can you CUT/paste and make the destination folder work?
Use the same folder for both libraries? and path from the root folder... sort of like an absolute address but root relative? this needs to be done when you are making the original set of symbols.
Change the location of each sections Library folder so that they are not in the same main folder so that you could use the same subfolder name inside each section folder? For example:
section1_library/symbols
section2_library/symbols
allows you to use the exact same folder name for both section's symbols folder. So if the path to the symbols in "section1" is just /symbols, copy/pasting that into the folder "section2" gives exactly the same path. Now to actually make that work, you may need to introduce as many sub folder levels upward as needed to separate the sections. So review the symbol properties and determine how far up the folder lever you need to go.
Or there may be some simple way in Flash to set root relative paths so that the copy/paste will work... but I don't know of any.
Best wishes,
Adninjastrator -
Why won't rich symbol properties show when the .jsf file exists?
In FW CS4 I've created a rich symbol via the "create symbol script" command, then I reloaded my common library, and put the symbol from common librray on a page. Even though I have a .jsf file in C:\Documents and Settings\<user>Application Data\Adobe\Fireworks CS4\Common Library\Custom Symbols to match my symbol, there are no symbol properties available for it on my page.
I can use the create symbol script command again on this symbol & it comes up with the same properties I had already defined.
What would stop symbol properties from showing up when the symbol is taken from a recently reloaded Common Library & placed on a page?
I've discovered that I can see the properties when I use this symbol in a totally brand new Fireworks file, but I can't in an existing file that ever had that same symbol before, even when I tell FW to "Replace the existing item."
Below is my jsf file contents.
Thanks!
5
title,textChars,Title,Title;
outline,visible,Active%20window%3F,true;
win%5Fmin%5Fbtn,visible,Min%20btn%20visible%20%28not%20modal%29%3F,true;
win%5Fmax%5Fbtn,visible,Max%20btn%20visible%20%28not%20Modal%29%3F,true;
background,fillColor,fillColor,%23ffffff;
function setDefaultValues()
var values = new Array();
values.push({ name:"Title", type:"text", value:"Title" });
values.push({ name:"Active window?", type:"boolean", value:"true" });
values.push({ name:"Min btn visible (not modal)?", type:"boolean", value:"true" });
values.push({ name:"Max btn visible (not Modal)?", type:"boolean", value:"true" });
values.push({ name:"fillColor", type:"color", value:"#ffffff" });
Widget.elem.customData["currentValues"] = values;
function applyCurrentValues()
var values = Widget.elem.customData["currentValues"];
Widget.GetObjectByName("title").textChars = values[0].value;
Widget.GetObjectByName("outline").visible = values[1].value;
Widget.GetObjectByName("win_min_btn").visible = values[2].value;
Widget.GetObjectByName("win_max_btn").visible = values[3].value;
Widget.GetObjectByName("background").pathAttributes.fillColor = values[4].value;
switch (Widget.opCode)
case 1: setDefaultValues(); break;
case 2: applyCurrentValues(); break;
Message was edited by: oic.nowSolution Found: I had to explicitly delete the existing copy in my orginal FW file even though when I used the one from the common library I told it to "Replace the existing item" I guess the replace doesn't really work for rich symbols. After I deleted the symbol with the same name from the document library & pulled in the one from Common Library, it showed its rich symbol properties.
-
How to display icon symbols for a field in se38 program
HI
IAM VIJAY. PLS GIVE ME THE SOLUTION .
how to display icon symbols for a field in se38 program.
WITH REGARDS.
VIJAY.Hi
you cab use INCLUDE <ICON> and use standard icons provided by sap.
Sample code:
WRITE /20(2) ICON_DATE AS ICON.
WRITE /20(2) ICON_TIME AS ICON.
WRITE /20(2) ICON_ADDRESS AS ICON.
Thanks!! -
Public Holiday Class field in IDOC WORKSCHED_WITH_COST
Hi Experts,
Good day..!
Well we are working on a integration project between external rostering system & CATS.
As part of the integration we are supposed to send Work Schedules (Planned hours) from external system to Cats.
On investigation we found IDOC WORKSCHED_WITH_COST which suffice the purpose.
But this IDOC doesn't have any field for Public holiday class. its having only Day type.
Where as in Infotype 2003 we could see both the fields.
Can somebody let me if I am missing something here, do we need to do any enhancements how...?
We are on
SAP ECC 6.0
SAP_HR 604 0037 Human Resources
Your help is well appriciated,
Thanks in advance,
SaiHi All,
We somehow tried to convience business.
What we would like to do to eliminate the fuzz of Holiday Class field is , We will process data directly to IT2003 skipping CATS as they dont use Substitutions other than for HR.
We are thing of doing as below
Insert: HR_INFOTYPE_OPERATION will use this.
Delete / Reversal: HR_INFOTYPE_OPERATION with del option this is where I doubt about. do we have any option of reversal ...? or do we need to delete the record.
Will create a BAPI & IDOC respectively.
Please suggest if this apporoach is fine as I have no clue with HR dependencies.
Cheers,
Sai -
Properties class not available on remote stylesheet
dreamweaver cc will not apply style classes if the css is on remote server. I have to download the style sheet in order for the classes to appear in the properties/class dropdown tool. what happened to live view and how do I change this so it works with a remote css?
That's how it works for me, too.
Just download the min.CSS file from the remote location and put it into your site folder. With Bootstrap, I don't necessarily have to link to my local style sheet. I can still reference the CDN version in my code. But If I want to work with Bootstrap classes, etc... I have to have the CSS file in my site folder.
Hope that helps.
Nancy O. -
Display account class field in view
Hi All,
I want to display account class field in a view in ICWEB client but the field is not there in any of the BOL entities. In backend this field is shown in IC win client under, contract account general data. How can i integrate this field into my view?
With Advance Thanks,
SujithHi Manuel,
Thank you for the reply. I am working in CRM ISU. The CRM is in one server and ISU is in another. While i run transaction CIC0 in ISU there is a field "account class" (Possible values for the field are:- Residential customers , Open group deals, large acconts) under contract account general data. When i check for this field in BOL entities in CRM system i cant find it any where. My requirement is to display this field in BuPaMorefields view in ICWEB client. I think now its clear .
With Advance Thanks,
Sujith
Maybe you are looking for
-
I have downloaded and installed the HP Drivers for my new windows 7 lap top in the windows programs and in the Mozilla program (fire fox). I can print without any problem from any of the windows programs but not from fir fox. As soon as I click on "p
-
How can I make multiple backups for other mac computers?
I have multiple mac computers and I need to know how to make separate backup disks for them.
-
Program to run several FICO transaction in background
Hello everyone. I received a request to run, in background, a list of transactions. I found most of the reports that can be used to run the transaction in back ground. Here is what I did so far. 1. I created a report that is collecting on the screen
-
Mass upload of Source List through LSMW
Dear Experts, In our plant we have so many materials for which source list has not been maintained properly.Please,can any one tell me in detail how to do Mass upload of Source list through LSMW in detail. Please do reply me... Thanks in Advance... M
-
IPhone is updated, but no new features.
Today I updated my iPhone 4 using iOS 4.3. The first few times error windows kept popping up. After I finally got the update on my phone, I went to check it and the new features were not on my phone. It says that it is on iOS 4.3 but again, like I sa