Flash Pro CC dynamically create an input field problems?
I dynamically created an input TextField and designated a TextFormat object that is a Thai Font. The difficulty I have is the superscript above the Thai letters will not display. These tone marks are cut off by the uppermost dimension of the field.
The following is an example of the problem " นี้ "
The tone mark " ้ "does not display
If there are multiple lines the tone marks are obscured by the line above.
I have fooled around with carriage returns and RegExp as a work around but this is torture.
Any ideas?
thanks
Thank you Rob for your help. The leading property will add whatever space I require between lines. So the response was helpful there. However it does not apply to the first line.I have worked around this by adding a carriage return as the initial line of text. This is working for me
Similar Messages
-
Dynamic enabling of input fields via radio btn in report selection screen?
Hi there!
I was wondering whether one can dynamically enable/disable input fields on a selection screen of a report-program.
Or is this only possible for selection screens in dynpro-programs?
If possible for reports - could you give an example?
Thanx a lot.
AndreasHi,
yes..You can dynamically disable and enable inputs fields in the selection screen..
Check this ex..If you press the first radio button..The second input will be disabled...And vice versa..
PARAMETERS: p_r1 RADIOBUTTON GROUP g1 USER-COMMAND usr DEFAULT 'X',
p_r2 RADIOBUTTON GROUP g1.
PARAMETERS: p_input1 TYPE matnr MODIF ID m1,
p_input2 TYPE matnr MODIF ID m2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF p_r1 = 'X'.
IF screen-group1 = 'M2'.
screen-input = '0'.
ENDIF.
ELSE.
IF screen-group1 = 'M1'.
screen-input = '0'.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Thanks,
Naren -
Dynamically Creation of input field in webdynpro
Hello Experts,
I am new to webdynpro.
I have a requirement to create the input filed dynamically for material.
Requirement:- I have to button in my screen "+" and "-" button.
after execution while i will click on + button one input filed should be created automatically and while i will clicik on
- button the newly creaed inputfield should be deleted from the screen.
Coulld anybody help me on this.
it would be great if somebody can share any solutin or sample code.
Thanks in Adv...Hi Kiran,
Jus to clarify on this: There might be situations, we don't know how many fields the user wants to create at runtime.
Yes, OK, that does make sense and justifies the effort in this case, I agree with you.
But in OP's case I think he only wants one field:
after execution while i will click on + button one input filed should be created automatically and while i will clicik on
Still, it does make sense to dynamically create them if there could be one up to X to keep the application slender.
Cheers, Lukas -
Dynamic Creation of input fields
Dear Guys,
I have a node name 'NodeA' with 10 attributes(a,b,c,d..j) in it.
When the add button is clicked , I want to display 10 inputfield for the 10 attributes of 'NODEA' to be dynamically created and displayed. so what coding should be written in the add buttons action....
Regards,
ShamilaHi Shamila,
I have a context node by name NODE & it has 10 attributes like NODE_1, NODE_2,... NODE_10 under it. All these attributes are of type STRING. So you just have to put the below code into WDDOMODIFYVIEW to get 10 input fields & labels displayed. These input fields would show any string that you have maintained for each attribute using the "Default Value" property.
METHOD wddomodifyview .
DATA : lr_container TYPE REF TO cl_wd_uielement_container,
lr_input_field TYPE REF TO cl_wd_input_field,
lr_label TYPE REF TO cl_wd_label,
lv_attribute_name TYPE string,
lv_id TYPE string,
lv_label_text TYPE string.
CHECK first_time = abap_true.
lr_container ?= view->get_root_element( ).
cl_wd_matrix_layout=>new_matrix_layout( container = lr_container ).
lr_container->set_width( value = '50%' ).
DO 10 TIMES.
MOVE sy-index TO: lv_attribute_name,
lv_id,
lv_label_text.
" Figuring out the context attribute name to bind to the input field
" Since the node name is NODE & attributes are like ATTR_1, ATTR_2..
" The value to be bound would be like NODE.ATTR_1, NODE.ATTR_2....
" Am condensing the string finally to avoid any gaps in between coz it would lead to shortdump
CONCATENATE 'NODE.ATTR_'
lv_attribute_name INTO lv_attribute_name.
CONDENSE lv_attribute_name NO-GAPS.
" Figuring out a unique id to be used for assigning to the input fields
" Am assigning id's with values like IO_1, IO_2, ... IO_10
" Am condensing the string finally to avoid any gaps in between coz it would lead to shortdump
CONCATENATE 'IO_'
lv_id INTO lv_id.
CONDENSE lv_id NO-GAPS.
" Figuring out a unique text to be used for assigning to the label fields
" Am assigning text to labels like Label_1, Label_2, .. Label_10
" Am condensing the string finally to avoid any gaps in between coz it would lead to shortdump
CONCATENATE 'Label_'
lv_label_text INTO lv_label_text.
CONDENSE lv_label_text NO-GAPS.
lr_input_field = cl_wd_input_field=>new_input_field( id = lv_id
bind_value = lv_attribute_name ).
lr_label = cl_wd_label=>new_label( label_for = lv_id
text = lv_label_text ).
cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_label ).
cl_wd_matrix_data=>new_matrix_data( element = lr_input_field ).
lr_container->add_child( the_child = lr_label ).
lr_container->add_child( the_child = lr_input_field ).
CLEAR: lv_attribute_name,
lv_id,
lv_label_text.
ENDDO.
ENDMETHOD.
Regards,
Uday -
Dynamic filling of input fields in a table
Hi,
There are input fields in a two tables these are to be filled parallely at run time. the no of entries depend on the entires in internal table.
If internal table has more entries, then a certain entries is filled up; say 9 times the control should be given to a new tables and the remaining entries should be filled in the input fields of other table .
I appreciate help.Hi,
Actually there is two HTML tables, each table has nine rows. if the no of entries in the internal table exceeds nine then the second table should be filled after the first HTML table has filled with all the nine entries.
Both tables contains same input fields. How to fill both tables dynamically. I think now it makes sense. -
Dynamically Visibilty of Input Field in Interactive PDF Form
Hi All,
I want to bind the visibilty of Input Field dynamically in an Interactive PDF Form. How can I do ?
Please give me some solution
Regards
ManishManish,
Well select the inputfield & check the Scripting Window in your Designer.
On its top, you will see an option something as Show: Events with Scripts.
Select the initialize event and insert the code she mentioned. Then click on + sign. This will enter your changes.
There will be language option on top as well. Select JavaScript from it.
So in the end your code should read something like this.
----- data.<YourFormName>.txtInput::initialize: - (JavaScript, client) ----------------------------------
txtInput.presence = "invisible";
Chintan -
Save flash pro CS5 file created in windows to a mac os file
I created a flash banner with flash pro CS5 using windows 7. Can I save the file so my client can open it with a Mac OS?
Yes, the .fla file can be opened on either platform. Don't forget to include any external files that you may have used, and fonts that you have embedded into the fla.
-
Create WDA Input field for currency amount ref to curr key
Hi Experts,
Could the UI elements in WDA input fields have a key reference? If that possible, how to do that?
For example: currency amount input field referenced to Curr key?or quantity ref to UoM field.
Regards,
Agnis Virtinova AvencyHello Agnis Virtinova Avency,
WDA uses ABAP dictionary structures for this kind of linking - define your amount and currency as part of a standard ABAP structure - then link the two fields in the structure as per normal ABAP data dictionary . Then use this structure to define your context node.
This is the same approach you should use if you have multiple fields that should input to or output from a DDIC search help.
This means that if you choose - for example CLP (Chilean Peso) as the currency, then the decimal places on the amount field are removed.
Hope this is what you were looking for.
Cheers,
Chris -
Digital Signature Turns Invalid while setting the Property Dynamically to an Input Field
I have an Input box that turns mandatory only if a check box is clicked.
The Script goes Something Like This;
if(chkbox.rawValue === 1){
inputField.mandatory = "error";
inputField.mandatoryMessage = "This Field cannot be left Blank";
inputField.presence = "visible";
} else {
inputField.mandatory = "disabled";
inputField.mandatoryMessage = "";
inputField.presence = "hidden";
I am working with Assembler Service and the Signature field is placed in the cover page after which this form is attached.
Any clue of why the property change Invalidates the Signature?
Note: The stand alone form where the Check box and Input field is present doesnot have a preSign event as this form doesnot contain a Signature field unless its merged using assembler. This Script is added to the Click Event of the Checkbox.
Cheers
Mahesh Krishnanweblogic.common.resourcepool.ResourceDisabledException: Pool mds-soa is Suspended, cannot allocate resources to applications ..Check server logs to find out why mds-soa is suspended. Make sure that datasource mds-soa is up and running on SOA servrs before deploying an application.
Regards,
Anuj -
Hi All,
I am facing a problem now where table row height is too big , as in 1 row size is actually a merged of 2 rows, the input field is shifted to the bottom of the cell. And when you select the row, an asterik is visible at the bottom row, and the input field is shifted up to the top of the cell. I am using customized iterator and cl_crm_ic_inputfield to render the cell. Anyone have this problem before?
Thanks!
Cheers,
cadyHi Guys,
Some additional info i found on this issue. I am using design2003. I realized that the * added meant that its required field. However, upon further checking, when calling method RENDER_DESIGN2003 in class cl_crm_ic_inputfield, it checkes for me->required is not initial, which is kind of odd since the required field has the initial value of 'FALSE'. So , either required = 'TRUE' or 'FALSE', it will always be required field. Anyone encountered such problem before?
Cheers,
cady -
Dynamically creating jsp page fields
HI
i have one jsp with enter id then click go button.
when the user click go button i have to display the details like name,address from the back end to same jsp.
i am using the struts frame work
please help.Help you with what? You are only saying that you have a requirement and that you need to use struts. What exactly do you have a problem with? If it's the fact that you don't know much about struts, then you need to help yourself by learning to use it.
-
hi i have a problem with the input fiield.
below is my codes.
MODULE F4_INPUT INPUT.
TYPES: BEGIN OF VALUES,
TABNAME TYPE DD02T-TABNAME,
END OF VALUES.
DATA: F4_VALUES TYPE TABLE OF VALUES.
PROGNAME = SY-REPID.
DYNNUM = SY-DYNNR.
SELECT DISTINCT TABNAME FROM DD02T
INTO TABLE F4_VALUES WHERE TABNAME = IO_TABLEA.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'IO_TABLEA'
DYNPPROG = PROGNAME
DYNPNR = DYNNUM
DYNPROFIELD = 'IO_TABLEA'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = F4_VALUES.
ENDMODULE.
I couldn't get the user input in (IO_TABLEA).
can anyone help me with this problem.hi,
Check this out
http://www.sap-img.com/abap/value-request-for-parameter.htm
Regards,
Santosh -
Flash Pro CC Input field difficulties ?
If I dynamically create an input field and designate a TextFormat object that is a Thai font. The difficulty I have is that
the superscript above the Thai letters will not display. They are cut off by the uppermost dimension of the field .
The following is an example of the problem นี้
The tone mark " ้ " does not display.
I have been fooling around with carriage returns and RegExp as a work around but this is torture.
Any Ideas?
thanksThank you Rob for your help. The leading property will add whatever space I require between lines. So the response was helpful there. However it does not apply to the first line.I have worked around this by adding a carriage return as the initial line of text. This is working for me
-
Hi all
I have input field and it already binded context attribute .I am working on enhancement frame work so I can not modify propety of context attribute.My requirement is to create new attribute and bind it with input field dynamically.
I am able to create context attribute and bind it to input field but it's not working ,can we do it dynamically????
Pls help
Regards ReehaHi,
if you already have a context attribute than you can do this, I just created a test application to create one input field and bind it with a context attribute dynamically.
my context is like this:
SUBS_TYPE_NODE <------node name
-SUBS_TYPE_VALUE <----node attribute type string
under WDDOMODIFYVIEW i did this:
if first_time = abap_true.
DATA:
lr_container TYPE REF TO cl_wd_uielement_container,
lr_input TYPE REF TO cl_wd_input_field.
get a pointer to the RootUIElementContainer
lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' )
lr_input = cl_wd_input_field=>new_input_field(
bind_value = 'SUBS_TYPE_NODE.SUBS_TYPE_VALUE' "notice here how I passed the node and its attribute
id = 'INPUT_F1'
view = view ).
cl_wd_matrix_data=>new_matrix_data( element = lr_input ).
lr_container->add_child( lr_input ).
endif.
hope this helps...
AS. -
Create Dynamic Structure based on Field-Symbol
Hi Experts!!
I need to create a structure with dynamic structure included within.
I have a parameter on sel. screen in which we provide table name.
PARAMETERS: p_table TYPE tabname.
FIELD-SYMBOLS: <gt_data> TYPE ANY TABLE.
CREATE DATA gr_data TYPE TABLE OF (p_table).
ASSIGN gr_data-* TO <gt_data>.
Now I need a structure like below:
TYPES: BEGIN OF type_test,
struct TYPE <gt_data>, " dynamic structure based on table name entered on sel. screen
fld1 TYPE c,
fld2 TYPE n,
END OF type_test.
Can somebody suggest how to achieve this?
Your help is highly appreciated. Thanks a lotYou can view this thread where our friend Marcin rocks .. Dynamically create a type
FIELD-SYMBOLS: <gt_data> TYPE ANY TABLE.
FIELD-SYMBOLS: <gs_wa> TYPE ANY.
data:wf_ref type ref to data.
DATA:i_comp TYPE cl_abap_structdescr=>component_table,
i_tot_comp TYPE cl_abap_structdescr=>component_table.
CREATE DATA gr_data TYPE TABLE OF (p_table).
ASSIGN gr_data-* TO <gt_data>.
create data wf_ref like line of <gt_data>.
assign wf_ref->* to <gs_wa>.
*--Getting Compoents from existing type
lf_struct ?= cl_abap_typedescr=>describe_by_name( '<GS_WA>' ).
i_comp = lf_struct->get_components( ).
APPEND LINES OF i_comp TO i_tot_comp.
The idea is Get all the field details available it to i_tot_comp, then append individual fields manually to
i_tot_comp as explained in the link and create a dynamic structure and table.
Maybe you are looking for
-
So with Adobe Reader LE 1.5 on my E51, when i open up pdf files i haven't gotten a memory problem yet but i have put 5 pdf files on my phone and they all have at least over 250 pages. With one of them, i can view all 264 out of 264 without a problem
-
Shredding XML with Document... to XMLTable
Hi, I'm relatively new to XML, so apologies in advanace for any solecisms! I am trying to shred an XML document to a relational table (11g v2). A simplified procedure demonstrating what I am trying to do is below. DECLARE v_xml CLOB := '<?xml version
-
hi, i got a iphone 4s in AU, but it was locked, would you like to help me to check which carrier is this? <Edited By Host>
-
Wrt54g lost settings and wireless not detected
Hello, I recently had a problem with my wrt54g so i popped in the installation cd and went through the basic setup again. Now my wired desktop works perfectly but none of my wireless devices are finding the router. I also went into the config webpa
-
Why specifying an exception???
What are the benefits of specifying what kind of exception you are catching as: try{ //do something } catch(RemoteException e){ e.printStackTrace(); why not try{ //do something } catch(Exception e){ e.printStackTrace(); RemoteExceptio