How to create Invisible Element Dynamically?
Dear All,
I am trying to create a Form dynamically and for aligment prupose i need to create one InvisbleElement also dynamically.But i dont know why that is not reflecting in the Screen .The code is deploying properly without error but the Invisible Element is not getting created .The code i used is
IWDInvisibleElement Invis1=(IWDInvisibleElement)view.createElement(IWDInvisibleElement.class,null);
Invis1.setEnabled(true);
Invis1.setVisible(WDVisibility.VISIBLE);
thetransparent.addChild(Invis1);
Can anyone please tell me if i need to set any property or if the method i am creating is wrong .Please guide me in the correct way.
Thanks and Regards,
Nishita Salver
Hi,
check "Dynamic Programming" part in below library file
http://help.sap.com/saphelp_nw70/helpdata/EN/0f/f08841e3af1609e10000000a155106/frameset.htm
or else,
still you are getting Problem, create any other ui element and set its visibility to false. (dont know how far it will help you)
regards,
Pradeep
Edited by: pradeep bondla on Jun 25, 2008 3:20 PM
Similar Messages
-
How to create some columns dynamically in the report designer depending upon the input selection
Post Author: ekta
CA Forum: Crystal Reports
how to create some columns dynamically in the report designer depending upon the input selection
how export this dynamic report in (pdf , xls,doc and rtf format)
report format is as below:
Element Codes
1
16
14
11
19
10
2
3
Employee nos.
Employee Name
Normal
RDO
WC
Breveavement
LWOP
Sick
Carers leave
AL
O/T 1.5
O/T 2.0
Total Hours
000004
PHAN , Hanh Huynh
68.40
7.60
76.00
000010
I , Jungue
68.40
7.60
2.00
5.00
76.00
000022
GARFINKEL , Hersch
66.30
7.60
2.10
76.00
In the above report first column and the last columns are fixed and the other columns are dynamic depending upon the input selection:
if input selection is Normal and RDO then only 2 columns w'd be created and the other 2 fixed columns.
Can anybody help me how do I design such report....
ThanksHi Developer life,
According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric values) in the details, add an filter to filter the data base on this column group, but if
the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
Similar threads with details steps for your reference:
https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings
If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
Any question, please feel free to let me know.
Best Regards
Vicky Liu -
How to create alv table dynamically by performing action on the button.
Hi all,
my requirement is to create alv table dynamically.
that is i will create two buttons
1) show alv table
2) close alv table
if user selects show alv table then the alv table should be displayed.
and if user selects clsoe alv table then the alv table should be closed.
to create alv table dynamically i have followed this procedure.
under view properties i have added salv_wd_table component. then under the action of showalvbutton i went to code wizard and i have selected instantiate used component component use salv_wd_table. the following code will be generated
with this code i am unable to display alv table dynamically correct me where i went wrong kindly send me the necessary steps how to create alv table dynamically
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_salv_wd_table( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
endif.
to close table i have used the following code. with this code i am able to achieve the functionality to delete the alv table
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_salv_wd_table( ).
if lo_cmp_usage->has_active_component( ) is initial.
else.
lo_cmp_usage->Delete_component( ).
endif.
Thanks & Regards,
Naveen
Edited by: naveen.webhelp on Feb 10, 2011 5:52 AMHi
ALV table will be shown in the viewcontainerUI element.
it is shown there empty if you dont fill the node bound to the data node of the interface controller of the comp usage
SALV_WD_TABLE.
and if you are not getting the table filled in the first place.
then check have you mapped the DATA node to some node in the comp controller
wht basically is your requirment is that you want to show ALV gird on click of one button and delete it on click of other button.
there are many ways to do so.
best way is control the visiblity of the viewcontainer UI element which containes the TABLE view of SALV_WD_table comp.
create an attribute of type WDUI_VISIBILITY name say VIS.
now go to the layout and bound hte visible property of the viewcontainer to this attribute VIS.
then in the showalv grid button's eventhandler write
wd_context->set_attribute(
name = 'VIS'
value = '02'
and in the wddoinit and delete alv grid button's event handler write
wd_context->set_attribute(
name = 'VIS'
value = '01'
thanks
sarbjeet singh -
How to create a folder dynamically in KM repository
Hi All,
Could you please let me know how to create the folder dynamically in KM...
Thanks in Advance,>
Romano Bodini wrote:
> Hi,
>
> Search the forum. And the SDN. Then ask.
>
> [Creating folders in KM dynamically|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1761]
>
> Romano
Actually, "look at the API documentation" should be in that list. -
How to create cost element in controlling
how to create cost element in controlling for Direct meterail.
i have to create for each materail or on rm consumption is enough
please give me replay
thanksHi Nagaraju,
First you create the required account as cost element through FS00 and select your gl account and edit cost element and give 1 in cost element category.
Afterwards in OKB9 You create the cost element whether it is required for Bus Area mandatory, profit centre mandatory and Valuation area is mandatory. Based on your selection you have to assign 1, 2 or 3. Ex. You have selected for consumption account profit centre is mandatory. You give 3. and you have to assign the cost centre against profit centre. Then automatically your consumption will post to the cost centre.
BSR -
How to display UI elements dynamically on the click of a radiobutton
hi all,
I have created two radio buttons rb1, rb2 dynamically. If i click on rb1, ......
one label, one inputfield (ie., some UI elements ) must be displayed in the same view & if i click on rb2, other UI elements must display.
can anyone tell how to display UI elements which were created dynamically on the click of a radio button.
thanks & regards,
vilaHi,
1. Create a context attribute name visible1 of type type com.sap.ide.webdynpro.uielementdefinitions.Visibility(using brose button in the type property of context)
2. Bind this context to all tha elements of that you want to make visible when radio button 1 is clicked to their visibility property.
3. Create a context attribute name visible2 of type com.sap.ide.webdynpro.uielementdefinitions.Visibility(using brose button in the type property of context)
4. Bind this context to all tha elements of that you want to make visible when radio button 2 is clicked to their visibility property.
5. Create actions for both radio button1 say action1 and for radio button2 say action2.
6. In action1 write this line of code
wdContext.currentContextElement.setVisible1(WDVisibility.VISIBLE);
wdContext.currentContextElement.setVisible2(WDVisibility.BLANK);
7. In action2 write this line of code
wdContext.currentContextElement.setVisible2(WDVisibility.VISIBLE);
wdContext.currentContextElement.setVisible1(WDVisibility.BLANK);
Regards,
Murtuza -
How to create a table dynamically in webdynpro
hai everybody
in webdynpro we know how to create at design time
but i want to create it at runtime that is dynmamically i want to set the rows and coloums of the table at run time
Thanks & Regards
sravanI guess this should work,
Suppose you want to dynamically create a Table (say Category) having a column called Category Code, then in the wdDoModifyView() hook method, just add the following code snippet,
if (firstTime) {
//Create the Table UI Element
IWDTable table = (IWDTable) view.createElement(IWDTable.class, null);
//Set the Table Header
IWDCaption tableCaption = (IWDCaption) view.createElement(IWDCaption.class, null);
tableCaption.setText("Category Table Contents");
table.setHeader(tableCaption);
//Create and add a Column UI element for the above table
IWDTableColumn column = (IWDTableColumn) view.createElement(IWDTableColumn.class, null);
table.addColumn(column);
//Set the required column header using the caption (Category Code here)
IWDCaption caption = (IWDCaption) view.createElement(IWDCaption.class, null);
caption.setText("Category Code");
column.setHeader(caption);
//Create a TableCellEditor and bind it to an attribute of the Category Node in the context
IWDTextView editor = (IWDTextView) view.createElement(IWDTextView.class, null);
editor.bindText("tb_Category.cat_code");
column.setTableCellEditor(editor);
//Finally add the Table UI element to the view
IWDUIElementContainer root = (IWDUIElementContainer) view.getRootElement();
root.addChild(table);
You need to follow the same procedure for adding multiple columns to the table.
Hope this answers your question!
Regards
Kishan -
How to create and destroy dynamically an array
How to create an array of container dynamically and destroy it. I have an array of container which is to be sorted by comparision, but in sorting out the elements i want to delete some of the elements based on comparision.I run a for loop based on the number of elements in the array to be sorted. So what i do is take the elements into another array which i want to create it dynamically and reassign the new array back to the old one after sorting and delete it.
Hi kpraveen,
Maybe this thread helps,
http://forums.ni.com/ni/board/message?board.id=330&message.id=18421&query.id=288653#M18421
Greetings
Juergen
=s=i=g=n=a=t=u=r=e= Click on the Kudos button (Gold Star) and see what happens =s=i=g=n=a=t=u=r=e=
=s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e= -
Create multiple elements dynamically at one time
Hi,
I need to create some links dynamically.
Below is my code... but I need to know instead of multiple steps.. is there a way to create dynamic elements together using one method itself.... or once i create the elements can i embed all these links together in the view?
lr_lta = cl_wd_link_to_action=>new_link_to_action(
id = 'LNK_CREATE'
on_action = 'ON_NAVIGATE'
text = 'Create'
view = lr_view ).
cl_wd_matrix_data=>new_matrix_data( element = lr_lta ).
lr_container->add_child( the_child = lr_lta ).
lr_lta = cl_wd_link_to_action=>new_link_to_action(
id = 'LNK_HISTORY'
on_action = 'ON_NAVIGATE'
text = 'Hitory'
view = lr_view ).
cl_wd_matrix_data=>new_matrix_data( element = lr_lta ).
lr_container->add_child( the_child = lr_lta ).
Any help will be grateful.
Regards and Thanks
TenzinHi,
This is a sample code for doing it using loop.
I just refined the code to make it most amenable to your requirement.
The code gives two different links at the same time with two different actions.
method WDDOMODIFYVIEW .
IF first_time eq abap_true.
data lr_ref type ref to cl_wd_link_to_action.
data lr_cont_ref type ref to cl_wd_uielement_container.
data lr_layo_ref type ref to cl_wd_flow_data.
data lv_times type i value 2.
data lv_count type i value 1.
lr_cont_ref ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
do lv_times times. "decide how many times you want the link
case lv_count. "decide what link to action with what action should be defined
when 1.
CALL METHOD cl_wd_link_to_action=>new_link_to_action
EXPORTING
enabled = ABAP_TRUE
image_first = ABAP_TRUE
on_action = 'First_Action'
text = 'First Link' "to display 'Gangtok' when clicked
receiving
control = lr_ref
CALL METHOD cl_wd_flow_data=>new_flow_data
EXPORTING
element = lr_ref
receiving
control = lr_layo_ref
CALL METHOD lr_cont_ref->add_child
EXPORTING
index = 1 "this is to set link to action in first place
the_child = lr_ref
When 2.
CALL METHOD cl_wd_link_to_action=>new_link_to_action
EXPORTING
enabled = ABAP_TRUE
image_first = ABAP_TRUE
on_action = 'Second_Action' "to display 'Kolkata' when clicked
text = 'Second Link'
receiving
control = lr_ref
CALL METHOD cl_wd_flow_data=>new_flow_data
EXPORTING
element = lr_ref
receiving
control = lr_layo_ref
CALL METHOD lr_cont_ref->add_child
EXPORTING
index = 2 "this is to set the link to action in 2nd place
the_child = lr_ref
endcase.
lv_count = lv_count + 1.
enddo.
endif.
endmethod.
Regards,
Prosenjit.
Edited by: prosenjit chaudhuri on Feb 16, 2009 12:48 PM -
Create UI elements dynamically in AppleScript Studio?
I'd like to create an applescript studio app that can create UI elements (radio buttons, checkboxes, etc) dynamically based on certain other criteria. I've been writing applescripts for a while but am somewhat new to applescript studio, so I don't know where to look for this, other than here. Any help would be greatly appreciated.
that's what I thought. Unfortunately I'd like to have the ability to have no prior knowledge of what UI elements are needed, and call them into being at any time. So I'm gonna infer that that just isn't possible.
Related question: can I set up a UI element, let's say a checkbox, and dynamically tell the UI element how many checkboxes I need and what their names/values should be? Or once again do I need to have prior knowlege of how many checkboxes I need? -
How to create a viewobject dynamically without using wizard
Hi,
I am Using jDEV 11G, i need to create a viewobject dynamically without using wizard, without binding from any entity.
Actually my intention is to make a grid like in .Net, when a user want to create a new row in RichTable without using DB.
just like shopping cart.
i have done thsi code:
ViewObjectImpl view=new ViewObjectImpl();
view.addDynamicAttributeWithType("Att1","String",null);
view.addDynamicAttributeWithType("Att2","String",null);
view.addDynamicAttributeWithType("Att2","String",null);
Row rw=view.createRow();
rw.setAttribute("Att1","First1");
rw.setAttribute("Att2","First2");
rw.setAttribute("Att2","First3");
view.insertRow(rw);
I have a RichTable , i need bind this viewobject into that.
Edited by: vipin k raghav on Mar 10, 2009 11:39 PMHi Vipin,
You can create the view object with rows populated at run time.
[http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcquerying.htm#CEGCGFCA]
For reference of how to create an empty rwo at run time on button click
[http://kohlivikram.blogspot.com/2008/10/add-new-row-in-adf-table-on-button.html]
~Vikram -
How to create UI element in VC
Hi,
I want to create UI element in VISUAL COMPOSER like text field, input field, button etc.How we can develop in VC iView?
Thanks,
KundanHi,
Refer
http://www.sdn.sap.com/irj/sdn/nw-vc;jsessionid=(J2EE3417200)ID1217882450DB11101197022981941087End?rid=/library/uuid/16244247-0a01-0010-3294-d81c21e7e86e
Regards,
Manivannan P -
How to create a view dynamicly in plsql?
I need to write a pl/sql package to create a view dynamic
,but i can't use 'create or replace view xxxx as select *
from db where ...',I know the dbms_sql package can parse the
'select' sentence,but i don't know how to create a view,only can
drop a view,who can help me?
thanks!
nullTry 'EXECUTE IMMEDIATE 'CREATE AS SELECT....' in your PL/SQL
xhpxorcl (guest) wrote:
: I need to write a pl/sql package to create a view dynamic
: ,but i can't use 'create or replace view xxxx as select *
: from db where ...',I know the dbms_sql package can parse the
: 'select' sentence,but i don't know how to create a view,only
can
: drop a view,who can help me?
: thanks!
null -
How to create a textfile dynamically(with in the loop) with given data?
Hi all,
Can anyone Please guide me how to create a text file in the given path dynamically? (with in the loop) with given data.
For example:
<%
String data1="name";
String data2="address";
for(int i=0;i<10;i++)
create the textfile at c:/test/sample.txt//name of the each file created being "sample.txt"
//contents of text file will be
data1+i; //to get name1,name2.....
data2+i// to get add1,add2........
delete(sample.txt) //to enable to create another file in the loop with same name
%>The code which Ashokan mentioned is not is not creating a file.
i used code given below to create and write into it.
But, not is writing into it. I don't konw, where i am going worng !
Code
String sample2="C:/Ash/sample2.txt";
FileWriter fw = new FileWriter(sample2,true);
BufferedWriter bw=new BufferedWriter(fw);
bw.write("EMP ID");
bw.newLine();
Please help
Regards
aSh -
How to create internal table dynamically based on a table entry
hi Experts,
I have table yprod_cat. It has product categories.
In my ABAP program I need to create internal table dynamically based on the number of entries in the table.
For example:
If the table has 3 entries for product category
1. Board
2. Micro
3. Syst
Then create three (3) internal tables.
i_board
i_micro
i_syst
How can we do this? Any sample code will be very usefull
Thanks & Regards
Gopal
Moderator Message: No sample codes can be given. Please search for them or work it!
Edited by: kishan P on Jan 19, 2011 4:22 PMOur APEX version is 4.2We are using below SQL query to display radio groups dynamically..
SELECT APEX_ITEM.RADIOGROUP (1,deptno,'20',dname) dt
FROM dept
ORDER BY 1;
Created a form using SQL type and given abouve SQL query as source.. But when we run the page, there were no radio groups displayed in the page..
Below is the output of the query..
<input type="radio" name="f01" value="10" />ACCOUNTING
<input type="radio" name="f01" value="20" checked="checked" />RESEARCH
<input type="radio" name="f01" value="30" />SALES
<input type="radio" name="f01" value="40" />OPERATIONS
>
If Tabular Form:
Edit Region > Report Attributes > Edit Column > Change the Column type to "Standard Report Column"
If normal Page Item:
Edit Page Item > Security > Escape special characters=No.
Pl read the help on that page item to understand the security risk associated with =NO.
Cheers,
Edited by: Prabodh on Dec 3, 2012 5:59 PM
Maybe you are looking for
-
I went to Tools>Options>Tabs and entered a check mark next to the first entry, "Open New Windows in a New Tab Instead" but it still does not open a new tab each time I click on a link or one of my favorites. It used to way back in earlier versions of
-
Automatically assign a contract to sc
Hi Experts We are working in Classical scenario. While creating a sc, when we click on the source of supply, we get a list 3 contracts. All the contracts are proposed and none of them is automatically assigned. Our requirement is that one of the thes
-
Hi, I have an installer for Mac OS X 10.8 (Mountain Lion) and I am tempted to upgrade my late 2009 iMac (running Mac OS X 10.6.8 Snow Leopard), but as a security precaution, I wanted to ask if the use of backing up my iPad will be affected by this ch
-
Touchscreen works differently upon restart
I have a Toshiba all in one computer. When I restart my computer sometimes the touchscreen works on the left side, sometimes the right side, sometimes it doesn't work on either, and sometimes it works on both. I recently upgraded from windows 7 to w
-
Xbindkeys doesn't work in-game
Hi Everyone! I have the following annoying problem: It sometimes occur, that while I'm playing a game, it suddenly freezes and the lastly played sound is played all over again, while everything else is working (For example I can talk with my friends