How to change Id of a dynamically created child element?
Hi,
I would like to change the id of the dynamically created elements in order to work easily with their later. Currently, edge automatically generate an random id like "eid_1376057792551" for each element.
There is my code :
sym.setVariable("labels", {
content2: "Visiteur",
content3: "Exposant",
content4: "Organisateur",
content5: "Contact",
content6: "Connexion"
// Clear initial state
sym.getSymbol("tab").deleteSymbol();
// Find all large symbols in the library
var prefix = "content"; // content1, content2 ... content99
var allTabs = [];
var symbolDefns = sym.getComposition().symbolDefns;
for (var key in symbolDefns) {
if (symbolDefns.hasOwnProperty(key) && key.search(new RegExp(prefix+"[0-9]{1,2}"))!=-1 ) {
var tab = sym.createChildSymbol( "tab", "navigation" );
tab.setVariable("contentId", key);
allTabs.push(tab);
tab.$("btnLabel").html( sym.getVariable("labels")[key] || "" );
$tabEl = tab.getSymbolElement();
$tabEl.data("sym", tab);
$tabEl.css({float: "left", margin: "0 -1px 15px 0"});
$tabEl.click(function(evt){
var tabSym = $(evt.currentTarget).data("sym");
$.each(allTabs, function(index,item) {
if (item != tabSym) { item.stop("normal"); item.setVariable("active", false); }
var $content = sym.$("content").empty();
sym.createChildSymbol(tabSym.getVariable("contentId"), "content");
Thank you .
hi - trying to get this to work with no luck.
a simple example as i understand it:
var test = sym.createChildSymbol("rect", "Stage");
test.attr("id","test2");
would that work in changing the id of the newly created symbol to test2?
thanks!
Similar Messages
-
How can change language of application dynamic?
In the dialog I have combo box in which I can select desire language for application. When I select value I save this value in the config file. But language change ONLY when I exit and again enter to the application. How can change language of application dynamic (without exit from application) ?
alexpass wrote:
In the dialog I have combo box in which I can select desire language for application. When I select value I save this value in the config file. But language change ONLY when I exit and again enter to the application. How can change language of application dynamic (without exit from application) ?I guess your application sets the locale at "startup", based on the contents of the config file, using a call to java.util .Locale.setDefault(Locale). Did you try to call this method in response to the selection in the combobox?
This won't refresh all widgets already created however. You probably have to re-create them all.
There may be case-by-case way to refresh them, for example Locale-dependent layout may be taken into account dynamically. Try and tell us. -
How to change the Validility period of the cost element
Hi All,
how to change the validity period of the cost element. In tranc code Ka02 only the text is allowed to change but i want to change the validity period of the cost element.
best Regards
stephenHi All,
Thanks for your response...........
My concern is, i have a document posted to 43100 GL Expense acct, which is also defined as cost element, GL field status G004(cost accts). But when the original document is posted no is no assignment of any cost object.
But i have to reverse the document and when i use FB08, the reversal is popping up with error " Assignment of CO object is neccesaary " Assign the cost center.
Is there any way we can update the cost center for posted docuemnt? if so how? and can i make the cost element invalid for previous month so that it will not ask for cost object and change the field status of the GL from g004 to G001 only for reversal and set it back after posting is done.
Appreciate ur feedback and suitab;le points are rewarded with points.
best -
Com.bea.xml.XmlException error for "could not create child element"
In Workshop 9.2, after I created a project with XMLBeans Builder Builder against the xsd's and created a web service control against a wsdl, I inserted the control in a client project for consumption. However, when calling into a method of the control, I got a com.bea.xml.XmlException, saying "could not create child element" for an object parameter passed in the call to the method. The relevant info in the server console looks like this:
Caused by: com.bea.xml.XmlException: could not create child element 'wirelessPhoneNumber' for Wrapped XMLBean operation on '<?xml version="1.0" encoding="UTF-8
"?><m:sendSMSMessage xmlns:m="http://service.xyz.com/provider/mobile/abc/sendSMSMessage/200701/"><ns:behaviorVersion xmlns:ns="http://service.xyz.com/entity/message/2003/">0</ns:behaviorVersion><ns:custNbr xmlns:ns="http
://service.xyz.com/entity/party/2003/">Hello</ns:custNbr></m:sendSMSMessage>'
Does any have an idea what this is trying to tell me?
Thanks in advance for any help,
JasonLooking into it further, I think it's the parameter wirelessPhoneNumber, which is a complex type from xsd and a java object passed to the call sendSMSMessage, that is having a namespace problem, or other problem.
This parameter object was from XMLBeans java binding. I created and set it up like this before passing it to the call:
PhoneNumberType phoneNumberType = phoneNumberType.Factory.newInstance();
phoneNumberType.setFormat(PhoneNumberFormatEnum.FREEFORM);
phoneNumberType.setFullNumber(phoneNumber);
Obviously, com.bea.xbeanmarshal.buildtime.internal.util.XmlBeanUtil.createWrappedXBeanTopElement of XmlBeanUtil.java had a problem creating a wrapper element for it.
Any clue from anyone?
Jason -
How to change a labels text which created at runtime?
hi,
i am creating label controls in runtime dynamically and adding them to a group component. this group component is in another custom component and i have lots of custom comp. in my app.
my question is how can access (via id) and change a labels text whict created at runtime?
i can change like this but i am setting id's and want to reach via id.
var lbl:mx.controls.Label = mx.controls.Label(subMenu5.group_subMenu5.getElementAt(1));
lbl.text = "good job";
thank you, have a good day.First off, if you are already using a Spark Group, I would suggest you use a Spark Label instead of an MX Label. If you want to reference the Labels from the group, loop through the group's elements and check the if the element id matches the Label you want to assign text to.
var lbl:Label;
var n:int = myGroup.numElements;
for (var i:int = 0; i < n; i++)
lbl = myGroup.getElementAt(i) as Label;
if (lbl && lbl.id == "myLabel")
lbl.text = "newText"; -
How to change the document type while creating a PO by ME59N
Hi,
I have 2 groups of PR's, for group one the document type is picked as NB and PO is created and for the group 2 it should pick as XYZ and PO should be created using ME59N tcode.
How to change the document type for group 2 in ME59N? Which user exists to use to change the document type while creating PO in ME59N?
Can any one suggest me.Hi,
There a config area, where you can define default PO doc types for a particular Pr doc type. If you maintain the settings properly there, then your requirement can be fulfilled.
SPRO->IMG->MM->Purchasing->Purchase requisation->Define doc types.
This will serve your purpose.
Thanks,
Srinu -
How get context value form a dynamic created node
Hi all,
I have build my own dynamic view. In this view I use also a dynamic created Node. When I have more rows in my Node I see every row with context of the last row of the dynamic Node.
this is the source I use.
for (int x = 0; x < dynTabNode.size(); x++)
dynTabNode.setLeadSelection(x);
IWDGroup group = (IWDGroup)view.getElement("Group_name");
IWDAttributeInfo aiName = wdContext.getChildNode("DayNode", IWDNode.LEAD_SELECTION).getNodeInfo().getAttribute("Name");
IWDCaption name = (IWDCaption) view.createElement(IWDCaption.class, null);
name.bindText(aiName);
group.addChild(name);
for (int i = 8; i < 18; i++)
int teller = i * 100;
IWDGroup group1 = (IWDGroup)view.getElement("hour" + teller);
for (int z = 0; z < 12; z++)
IWDImage image = (IWDImage) view.createElement(IWDImage.class, "Image" + teller + "_" + x);
image.setWidth("10");
image.setHeight("24px");
image.setBorder(0);
IWDAttributeInfo att = dynTabNode.getNodeInfo().getAttribute("hour" + teller);
image.bindSource(att);
group1.addChild(image);
teller = teller + 5;
How can I read my Node row for row?
Richard
Edited by: Armin Reichert on Jul 28, 2008 5:03 PMThe reason is that all these Caption UI elements are bound against the same context attribute. At runtime this will be resolved to the attribute value of the lead-selected node element. In this example you can fix this by not binding the "text" property but setting it to the attribute value of the iterated node element:
for (int x = 0; x < dynTabNode.size(); x++)
dynTabNode.setLeadSelection(x);
IWDGroup group = (IWDGroup)view.getElement("Group_name");
IWDCaption name = (IWDCaption) view.createElement(IWDCaption.class, null);
IWDNode dayNode = wdContext.getChildNode("DayNode", IWDNode.LEAD_SELECTION);
String text = (String) dayNode.getElementAt(x).getAttributeValue("Name");
name.setText(text);
IWDAttributeInfo aiName = dayNode.getNodeInfo().getAttribute("Name");
name.bindText(aiName);
group.addChild(name);
(I assume here that the node "DayNode" has the same size as dynTabNode. No idea if this assumption is correct)
But this would not help for editable elements where you need to bind the edited property.
Armin -
How to change the Variant Particulars already created for FBCJ.
Hi
All Experts ,
I want to change & edit some particulars for already created variant in FBCJ ( Cash Journal ).
So how can change them & form where ?
Your help is highly appreciated.
Thanks in advance !
Regards,
Pankaj.Hi,
Ravi,
When I went to status option I found these fields :-
Transaction FBCJ
Program (screen) SAPMFCJ0
Screen number 100
Program (subscreen) SAPMFCJ0
Screen number 110
Program (GUI) SAPMFCJ0
GUI status CJ0100
Which programme to select ?
Please explain.
Thanks in advance !
Regards,
Pankaj.
Edited by: pankaj_ab on Jun 1, 2009 11:31 AM -
How to change a item type dynamically?
Is it possible to change a item type dynamically?
For example.
I've got a page with 2 items. The first is a select list and the second is a date picker. The select list contains two values, 1 and 2.
If value 1 is selected the second item needs to remain a date picker. If value 2 is selected the second item needs to become a Text Field (disabled saves state).
Anyone got an idea?
Thx. Frank.Frank,
It's not possible to change the item type dynamically as you describe it below. However, to achieve a similar effect you could do the following:
1) Make the Select List a Select List With Submit.
2) Have a Date Picker AND a Text Field on the page.
3) Make the display of the Date Picker item conditional on the relevant value having been chosen from the Select List.
4) Make the display of the Text Item conditional on the other value having been chosen from the Select List.
Andy
http://atulley.wordpress.com/ -
Prob in displaying the dynamically created ui elements on click of a button
hi all
i created 1 inputfield, 2 buttons & i wrote the following code in wddomodifyview() of view.
IWDInputField inf1=(IWDInputField)view.createElement(IWDInputField.class,"inf1");
inf1.bindValue("Student.name");
IWDButton but1=(IWDButton)view.createElement(IWDButton.class,"button1");
but1.setText("Button1");
IWDButton but2=(IWDButton)view.createElement(IWDButton.class,"button2");
but2.setText("Button2");
IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("TransparentContainer");
tc.addChild(inf1);
tc.addChild(but1);
tc.addChild(but2);
IWDButton button1= (IWDButton) view.getElement("button1");
IWDAction theAction=wdThis.wdCreateAction(IPrivateDynCompView.WDActionEventHandler.DISPLAY,"");
but1.setOnAction(theAction);
IWDParameterMapping bm1 = button1.mappingOfOnAction();
bm1.addParameter("id", "b1");
IWDButton button2= (IWDButton) view.getElement("button2");
IWDParameterMapping bm2 = button1.mappingOfOnAction();
bm1.addParameter("id", "b2");
and i wrote the following code in onactiondisplay()
if (id.equals("b1"))
wdContext.currentStudentElement().setName("First Button Clicked");
else
wdContext.currentStudentElement().setName("Second Button Clicked");
when i run the application, the following error is displaying.....
The initial exception that caused the request to fail, was:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: View: Cannot add element with duplicate ID "inf1" of type com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField
at com.sap.tc.webdynpro.progmodel.view.View.addElement(View.java:481)
at com.sap.tc.webdynpro.progmodel.view.ViewElement.<init>(ViewElement.java:43)
at com.sap.tc.webdynpro.progmodel.view.UIElement.<init>(UIElement.java:188)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.AbstractInputField.<init>(AbstractInputField.java:143)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField.<init>(InputField.java:71)
... 35 more
com.sap.tc.webdynpro.services.exceptions.WDCreationFailedException: Cannot create view element implementation com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField
at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElement(ViewElementFactory.java:75)
at com.sap.tc.webdynpro.progmodel.view.View.createElement(View.java:89)
at com.sap.dynactions.DynCompView.wdDoModifyView(DynCompView.java:140)
at com.sap.dynactions.wdp.InternalDynCompView.wdDoModifyView(InternalDynCompView.java:240)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:190)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:398)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.modifyView(ClientApplication.java:679)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:381)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElement(ViewElementFactory.java:65)
... 30 more
Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: View: Cannot add element with duplicate ID "inf1" of type com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField
at com.sap.tc.webdynpro.progmodel.view.View.addElement(View.java:481)
at com.sap.tc.webdynpro.progmodel.view.ViewElement.<init>(ViewElement.java:43)
at com.sap.tc.webdynpro.progmodel.view.UIElement.<init>(UIElement.java:188)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.AbstractInputField.<init>(AbstractInputField.java:143)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField.<init>(InputField.java:71)
... 35 more
pls tell me how to run this application without errors.....
thanks & regards,
vila.Hi Vila,
Issue here is you are trying to create Input field with already used id "inf1" in first line of code
IWDInputField inf1=(IWDInputField)view.createElement(IWDInputField.class,"inf1");
Please change it to
IWDInputField inf1=(IWDInputField)view.createElement(IWDInputField.class,"inf2");
and correspondingly line
tc.addChild(inf2);
Your code will work.
Please note that you should follow....following code style in wdDoModifyview
if(firstTime)
//dynamic view elements creation -
Dynamically Create Repeater Element in ActionScript
Hi,
I'm trying to dynamically create a repeater control with an
image and a label control. I can do it directly in the MXML file
but when I try and covert it into ActionScript it's not working.
Can anyone see what the problem is with my code?
public function GetPalettes():void{
removeChild(document.FrontPage);
Palettes.method = "GET";
params = {"method": "GetPalettes", "BodyPartNo":
document.PalettesMenu.selectedItem.@partNo};
Palettes.cancel();
Palettes.send(params);
var VerticalBox:VBox = new VBox();
VerticalBox.x = 10;
VerticalBox.y = 10;
VerticalBox.id = "VerticalBox";
var PaletteRepeater:Repeater = new Repeater();
PaletteRepeater.dataProvider =
"{Palettes.lastResult.Palette}";
PaletteRepeater.startingIndex = 0;
PaletteRepeater.id = "PaletteRepeater";
var PaletteImage:Image = new Image();
PaletteImage.setStyle("HorizontalAlign", "left");
PaletteImage.source = "
http://localhost/Flex/Personalised%20Palettes-debug/{PaletteRepeater.currentItem.@PictureS rc}Med.png";
PaletteImage.useHandCursor = true;
PaletteImage.buttonMode = true;
PaletteImage.mouseChildren = false;
PaletteImage.id = "PaletteImage";
var PaletteDescription:Label = new Label();
PaletteDescription.text =
"{PaletteRepeater.currentItem.@Description}";
PaletteDescription.id = "PaletteDescription";
document.MainPage.addChild(VerticalBox);
VerticalBox.addChild(PaletteRepeater);
PaletteRepeater.addChild(PaletteImage);
PaletteRepeater.addChild(PaletteDescription);
Thanks"katychapman85" <[email protected]> wrote in
message
news:[email protected]...
> Hey Amy,
>
> I've put a thread up about this but thought I'd ask you
as well as you've
> been
> a great help to me so far.
>
> I have this function:
> public function GetOptions(Menu:int):void{
> document.MenuOptions.url =
> "
http://localhost/Flex/Personalised%20Palettes-debug/MenuOptions.php?Menu=";
> document.MenuOptions.url += Menu;
> document.MenuOptions.send();
> }
>
> What I'm trying to do is when a user clicks on a Radio
button this
> function is
> called and the number of the Menu required is sent to
the function.
>
> I've added this Event Listener to my Radio Button:
>
>
document.RadioButtons2.addEventListener(MouseEvent.CLICK,
> function():void{GetOptions(2);});
>
> However, it's not working. Everything I've read suggests
using an
> anonymous
> function in the Event Listener to pass the menu
parameter but for some
> reason
> it's not working.
What version of Flex are you using? The Help for Flex 3 has
this to say:
http://www.adobe.com/livedocs/flex/3/html/help.html?content=events_05.html
Defining event listeners inline
The simplest method of defining event handlers in Flex
applications is to
point to a handler function in the component's MXML tag. To
do this, you add
any of the component's events as a tag attribute followed by
an ActionScript
statement or function call.
You add an event handler inline using the following syntax:
<mx:tag_name event_name="handler_function"/>
For example, to listen for a Button control's click event,
you add a
statement in the <mx:Button> tag's click attribute. If
you add a function,
you define that function in an ActionScript block. The
following example
defines the submitForm() function as the handler for the
Button control's
click event:
<mx:Script><![CDATA[
function submitForm():void {
// Do something.
]]></mx:Script>
<mx:Button label="Submit" click="submitForm();"/>
Event handlers can include any valid ActionScript code,
including code that
calls global functions or sets a component property to the
return value. The
following example calls the trace() global function:
<mx:Button label="Get Ver" click="trace('The button was
clicked');"/>
There is one special parameter that you can pass in an inline
event handler
definition: the event parameter. If you add the event keyword
as a
parameter, Flex passes the Event object and inside the
handler function, you
can then access all the properties of the Event object.
The following example passes the Event object to the
submitForm() handler
function and specifies it as type MouseEvent:
<?xml version="1.0"?>
<!-- events/MouseEventHandler.mxml -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:Script><![CDATA[
import mx.controls.Alert;
private function myEventHandler(event:MouseEvent):void {
// Do something with the MouseEvent object.
Alert.show("An event of type '" + event.type + "'
occurred.");
]]></mx:Script>
<mx:Button id="b1" label="Click Me"
click="myEventHandler(event)"/>
</mx:Application>
It is best practice to include the event keyword when you
define all inline
event listeners and to specify the most stringent Event
object type in the
resulting listener function (for example, specify MouseEvent
instead of
Event).
You can use the Event object to access a reference to the
target object (the
object that dispatched the event), the type of event (for
example, click),
or other relevant properties, such as the row number and
value in a
list-based control. You can also use the Event object to
access methods and
properties of the target component, or the component that
dispatched the
event.
Although you will most often pass the entire Event object to
an event
listener, you can just pass individual properties, as the
following example
shows:
<?xml version="1.0"?>
<!-- events/PropertyHandler.mxml -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:Script><![CDATA[
import mx.controls.Alert;
private function myEventHandler(s:String):void {
Alert.show("Current Target: " + s);
]]></mx:Script>
<mx:Button id="b1" label="Click Me"
click="myEventHandler(event.currentTarget.id)"/>
</mx:Application>
Registering an event listener inline provides less
flexibility than using
the addEventListener() method to register event listeners.
The drawbacks are
that you cannot set the useCapture or priority properties on
the Event
object and that you cannot remove the listener once you add
it.
don't see anything in there about anonymous functions...? -
How to change the JCA JNDI dynamically using FTP Adapter
We have 5 FTP Servers, each having a directory to poll. We have created 5 CCI instances for these FTP Adapters in the FTPAdapter deployment. We created a BPEL process and using FTP Adapter to connect to above mentioned servers.
Question: Customer's requirement is to use a single BPEL process to poll all these FTP Servers at a specified date and time. How can we connect dynamically to each FTP server at specified time.
(OR)
Is there any way to change the JCAJNDI dynamically in a FTP Adapter configuration ?
I have seen that FTP Adapter POLL doesnt take any JCA JNDI/hostname/un/pwd/date/time dynamically.
Regards
PavanHi Pavan,
It's possible to change the JNDI dynamically but only when you use put operation where you can control the JNDI name at the time of invoking the FTP Adapter as described in below link.
Dynamic JNDI in FTP Adapter | jca.jndi property not picked by Adapter
However, can you consider using BPEL process with SyncRead (and read files through all the JNDIs in a loop) and scheduling this BPEL process to a desired frequency?
Regards,
Neeraj Sehgal -
How to set content of a dynamically created tab in a dynamically created tabstrip
Hi All,
I have a requirement where the whole layout is determined in run time according to a ztable values. I have created a tabstrip, inserted tabs to it, created elements (link to action) that has to be inserted into the different tabs created dynamically. BUt I am getting a dump when i try to do so.. the problem is with inserting the container to the tab. I get Null object reference. PFB the code. This has to be done urgently. Help is highly appreciated. TIA.
method wddomodifyview .
data lr_uielement_container type ref to cl_wd_uielement_container.
data lr_tabstrip type ref to cl_wd_tabstrip.
data lrs_tabstrip type ref to cl_wd_tabstrip.
data lr_matrix_head_data type ref to cl_wd_matrix_head_data.
data lr_tab type ref to cl_wd_tab.
data lv_caption type ref to cl_wd_caption.
data it_zps_reports_port type standard table of zps_reports_port.
data wa_zps_reports_port like line of it_zps_reports_port.
data lv_flag type c.
data lv_text type string.
data lv_link_text type string.
data lr_linktoaction type ref to cl_wd_link_to_action.
data lr_lta_element type ref to cl_wd_uielement.
data lr_scroll_container type ref to cl_wd_scroll_container.
data lr_trans_cont type ref to cl_wd_transparent_container.
data lr_id type string value 'LNK'.
data lr_count type num value 0.
data lr_id_d type string.
data lo_nd_link_to_action type ref to if_wd_context_node.
data lo_el_link_to_action type ref to if_wd_context_element.
data ls_link_to_action type wd_this->element_link_to_action.
data lv_textt type string.
data lo_node type ref to if_wd_context_node.
data lo_nd_info type ref to if_wd_context_node_info.
data:lt_valueset type wdr_context_attr_value_list ,
l_value type wdr_context_attr_value.
data ld_tabstrip type ref to cl_wd_tabstrip.
data: ld_container type ref to cl_wd_uielement_container,
ld_vc type ref to cl_wd_view_container_uielement.
if first_time eq abap_true.
select * from zps_reports_port into corresponding fields of table it_zps_reports_port order by tabx.
sort it_zps_reports_port.
************creation of tabstrip dynamically
lr_uielement_container ?= view->get_element( id = 'ROOTUIELEMENTCONTAINER' ).
call method cl_wd_tabstrip=>new_tabstrip
exporting
id = 'TBS'
receiving
control = lr_tabstrip.
lr_matrix_head_data = cl_wd_matrix_head_data=>new_matrix_head_data(
element = lr_tabstrip
lr_tabstrip->set_layout_data( the_layout_data = lr_matrix_head_data ).
lr_uielement_container->add_child(* index = index
the_child = lr_tabstrip
lo_node = wd_context->get_child_node( 'LINK_TO_ACTION' ).
lo_nd_info = lo_node->get_node_info( ).
lo_nd_link_to_action = wd_context->get_child_node( name = wd_this->wdctx_link_to_action ).
lo_el_link_to_action = lo_nd_link_to_action->get_element( ).
loop at it_zps_reports_port into wa_zps_reports_port.
*****addition of tab for every new tab.
at new tabx.
lv_flag = abap_true.
endat.
if lv_flag = abap_true.
if wa_zps_reports_port-tabx = 1.
lv_text = 'Billing reports'.
else.
lv_text = 'Monthly closing reports'.
endif.******Addition of new tab
call method cl_wd_caption=>new_caption
exporting
text = lv_text
receiving
control = lv_caption.
call method cl_wd_tab=>new_tab
exporting
enabled = 'X'
has_content_padding = 'X'
receiving
control = lr_tab.
lr_tab->set_header( lv_caption ).
lr_tabstrip->add_tab( the_tab = lr_tab ).
clear lv_flag.
endif.
lr_count = lr_count + 1.
concatenate lr_id lr_count into lr_id_d.
lv_textt = wa_zps_reports_port-trans_code.
call method cl_wd_link_to_action=>new_link_to_action
exporting
id = lr_id_d
on_action = 'ON_ACTION'
text = lv_textt
receiving
control = lr_linktoaction.
lr_matrix_head_data = cl_wd_matrix_head_data=>new_matrix_head_data(
element = lr_linktoaction
lr_linktoaction->set_layout_data( the_layout_data = lr_matrix_head_data ).
lr_linktoaction->set_layout_data( the_layout_data = lr_matrix_head_data ).** lr_uielement_container->add_child(** index = lr_ind* the_child = lr_linktoaction* ).
call method cl_wd_scroll_container=>new_scroll_container
receiving
control = lr_scroll_container
lr_scroll_container->add_child( lr_linktoaction ).
lr_tab->set_content( lr_trans_cont ). "im getting dump after the looping is done and the end method is executed
endloop.
endif.endmethod.HI SAYAN,
this is the dump i am getting.
Category ABAP Programming Error
Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED
ABAP Program CL_NW7_VIEW_ELEMENT_ADAPTER===CP
Application Component BC-WD-ABA-REN
Date and Time 18.05.2012 15:44:42
|Short text |
| Access via 'NULL' object reference not possible. |
|What happened? |
| Error in the ABAP Application Program |
| |
| The current ABAP program "CL_NW7_VIEW_ELEMENT_ADAPTER===CP" had to be |
| terminated because it has |
| come across a statement that unfortunately cannot be executed. |
|What can you do? |
| Note down which actions and inputs caused the error. |
| |
| |
| To process the problem further, contact you SAP system |
| administrator. |
| |
| Using Transaction ST22 for ABAP Dump Analysis, you can look |
| at and manage termination messages, and you can also |
| keep them for a long time. |
|Error analysis |
| You attempted to use a 'NULL' object reference (points to 'nothing') |
| access a component (variable: " "). |
| An object reference must point to an object (an instance of a class) |
| before it can be used to access components. |
| Either the reference was never set or it was set to 'NULL' using the |
| CLEAR statement. |
|How to correct the error |
| |
| |
| If the error occures in a non-modified SAP program, you may be able to |
| find an interim solution in an SAP Note. |
| If you have access to SAP Notes, carry out a search with the following |
| keywords: |
| |
| "OBJECTS_OBJREF_NOT_ASSIGNED" " " |
| "CL_NW7_VIEW_ELEMENT_ADAPTER===CP" or "CL_NW7_VIEW_ELEMENT_ADAPTER===CM008" |
| "CREATE_NW7_BY_VIEW_ELEMENT" |
| |
| If you cannot solve the problem yourself and want to send an error |
| notification to SAP, include the following information: |
| |
| 1. The description of the current problem (short dump) |
| |
| To save the description, choose "System->List->Save->Local File |
| (Unconverted)". |
| |
| 2. Corresponding system log |
| |
| Display the system log by calling transaction SM21. |
| Restrict the time interval to 10 minutes before and five minutes |
| after the short dump. Then choose "System->List->Save->Local File |
| (Unconverted)". |
| |
| 3. If the problem occurs in a problem of your own or a modified SAP |
| program: The source code of the program |
| In the editor, choose "Utilities->More |
| Utilities->Upload/Download->Download". |
| |
| 4. Details about the conditions under which the error occurred or which |
| actions and input led to the error. |
| |
|System environment |
| SAP Release..... 702 |
| SAP Basis Level. 0008 |
| |
| Application server... "ISVSAPECCDEV" |
| Network address...... "172.25.105.183" |
| Operating system..... "Windows NT" |
| Release.............. "6.1" |
| Hardware type........ "4x AMD64 Level" |
| Character length.... 16 Bits |
| Pointer length....... 64 Bits |
| Work process number.. 18 |
| Shortdump setting.... "full" |
| |
| Database server... "ISVSAPECCDEV" |
| Database type..... "MSSQL" |
| Database name..... "ECD" |
| Database user ID.. "ecd" |
| |
| Terminal.......... "10.66.113.155" |
| |
| Char.set.... "C" |
| |
| SAP kernel....... 720 |
| created (date)... "Mar 4 2012 23:19:29" |
| create on........ "NT 5.2 3790 S x86 MS VC++ 14.00" |
| Database version. "SQL_Server_9.00 " |
| |
| Patch level. 211 |
| Patch text.. " " |
| |
| Database............. "MSSQL 9.00.2047 or higher" |
| SAP database version. 720 |
| Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2, Windows |
| NT 6.0, Windows NT 6.1, Windows NT 6.2" |
| |
| Memory consumption |
| Roll.... 0 |
| EM...... 4189792 |
| Heap.... 0 |
| Page.... 0 |
| MM Used. 3566480 |
| MM Free. 620640 |
|User and Transaction |
| Client.............. 220 |
| User................ 160072 |
| Language key........ "E" |
| Transaction......... " " |
| Transaction ID...... "38D2A0E14277F14BAD090050569F0165" |
| |
| EPP Whole Context ID.... "0050569F01651EE1A89A470EE848AD09" |
| EPP Connection ID....... "0050569F01651EE1A89A47B05E162D09" |
| EPP Caller Counter...... 1 |
| |
| Program............. "CL_NW7_VIEW_ELEMENT_ADAPTER===CP" |
| Screen.............. "SAPMHTTP 0010" |
| Screen Line......... 2 |
| Debugger Active..... "(TPDA)" |
|Server-Side Connection Information |
| Information on Caller of "HTTP" Connection: |
| Plug-in Type.......... "HTTP" |
| Caller IP............. "10.66.113.155" |
| Caller Port........... 8001 |
| Universal Resource ID. "/sap/bc/webdynpro/sap/z160072_dynamic_view_crea" |
| |
| Program............. "CL_NW7_VIEW_ELEMENT_ADAPTER===CP" |
| Screen.............. "SAPMHTTP 0010" |
| Screen Line......... 2 |
| |
| Information on Caller ofr "HTTP" Connection: |
| Plug-in Type.......... "HTTP" |
| Caller IP............. "10.66.113.155" |
| Caller Port........... 8001 |
| Universal Resource Id. "/sap/bc/webdynpro/sap/z160072_dynamic_view_crea" |
|Information on where terminated |
| Termination occurred in the ABAP program "CL_NW7_VIEW_ELEMENT_ADAPTER===CP" - |
| in "CREATE_NW7_BY_VIEW_ELEMENT". |
| The main program was "SAPMHTTP ". |
| |
| In the source code you have the termination point in line 23 |
| of the (Include) program "CL_NW7_VIEW_ELEMENT_ADAPTER===CM008". |
|Source Code Extract (Source code has changed) |
|Line |SourceCde |
| 1|METHOD create_nw7_by_view_element. |
| 2| |
| 3| TYPES c1 TYPE c LENGTH 1. |
| 4| |
| 5| DATA: mappings TYPE STANDARD TABLE OF wdr_elem_apt_map, |
| 6| mapping TYPE wdr_elem_apt_map, |
| 7| elem_defs TYPE SORTED TABLE OF wdy_ui_elem_def WITH UNIQUE KEY definition|
| 8| elem_def TYPE wdy_ui_elem_def, |
| 9| new_entries TYPE STANDARD TABLE OF t_nw7_class_registry, |
| 10| adapters TYPE SORTED TABLE OF wdr_uiel_adapter WITH UNIQUE KEY library_n|
| 11| adapter_def LIKE LINE OF adapters, |
| 12| id_gen_entity TYPE string, |
| 13| l_adapter_lib_name TYPE string, |
| 14| lr_adapter_lib TYPE REF TO if_nw7_adapter_library, |
| 15| l_current_library TYPE string, |
| 16| l_current_id_gen_entity TYPE c1, |
| 17| lt_mapping TYPE if_nw7_adapter_library=>tt_index_map. |
| 18| |
| 19| |
| 20| FIELD-SYMBOLS: <class_registry_entry> TYPE t_nw7_class_registry, |
| 21| <l_mapping> TYPE if_nw7_adapter_library=>t_index_map. |
| 22| |
|>>>>>| READ TABLE m_nw7_class_registry ASSIGNING <class_registry_entry> |
| 24| WITH TABLE KEY view_element_cid = view_element->_cid. |
| 25| IF sy-subrc <> 0. |
| 26| |
| 27|* If not found, maybe we need to load the library first? |
| 28| READ TABLE m_nw7_class_registry TRANSPORTING NO FIELDS |
| 29| WITH KEY mapping-library_name = view_element->_library_name. |
| 30|* No ViewElementAdapter found for ViewElement |
| 31| ASSERT FIELDS view_element->_library_name CONDITION sy-subrc <> 0. |
| 32| |
| 33| SELECT * FROM wdy_ui_elem_def INTO TABLE elem_defs |
| 34| WHERE library_name = view_element->_library_name |
| 35| AND cid <> ''. |
| 36| SELECT * FROM wdr_elem_apt_map INTO TABLE mappings |
| 37| WHERE library_name = view_element->_library_name. |
| 38| SELECT * FROM wdr_uiel_adapter INTO TABLE adapters |
| 39| WHERE library_name = view_element->_library_name. |
| 40| |
| 41| LOOP AT mappings INTO mapping. |
| 42| APPEND INITIAL LINE TO new_entries ASSIGNING <class_registry_entry>. |
|Contents of system fields |
|Name |Val. |
|SY-SUBRC|0 |
|SY-INDEX|2 |
|SY-TABIX|0 |
|SY-DBCNT|220 |
|SY-FDPOS|0 |
|SY-LSIND|0 |
|SY-PAGNO|0 |
|SY-LINNO|1 |
|SY-COLNO|1 |
|SY-PFKEY| |
|SY-UCOMM| |
|SY-TITLE|HTTP Control |
|SY-MSGTY| |
|SY-MSGID| |
|SY-MSGNO|000 |
|SY-MSGV1| |
|SY-MSGV2| |
|SY-MSGV3| |
|SY-MSGV4| |
|SY-MODNO|0 |
|SY-DATUM|20120518 |
|SY-UZEIT|154425 |
|SY-XPROG| |
|SY-XFORM| |
|Active Calls/Events |
|No. Ty. Program Include Line |
| Name |
| 22 METHOD CL_NW7_VIEW_ELEMENT_ADAPTER===CP CL_NW7_VIEW_ELEMENT_ADAPTER===CM008 23 |
| CL_NW7_VIEW_ELEMENT_ADAPTER=>CREATE_NW7_BY_VIEW_ELEMENT |
| 21 METHOD /1WDA/C7STANDARD==============CP /1WDA/C7STANDARD==============CCIMP 1096 |
| CL_SCROLL_CONTAINER=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT |
| 20 METHOD /1WDA/C9STANDARD==============CP /1WDA/C9STANDARD==============CCIMP 4583 |
| CL_TABSTRIP_ITEM=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT |
| 19 METHOD /1WDA/C9STANDARD==============CP /1WDA/C9STANDARD==============CCIMP 3973 |
| CL_TABSTRIP=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT |
| 18 METHOD /1WDA/C8STANDARD==============CP /1WDA/C8STANDARD==============CCIMP 3165 |
| CL_MATRIX_LAYOUT_CELL=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT |
| 17 METHOD /1WDA/C8STANDARD==============CP /1WDA/C8STANDARD==============CCIMP 3357 |
| CL_MATRIX_LAYOUT_ROW=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT |
| 16 METHOD /1WDA/C8STANDARD==============CP /1WDA/C8STANDARD==============CCIMP 2846 |
| CL_MATRIX_LAYOUT=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT |
| 15 METHOD /1WDA/C7STANDARD==============CP /1WDA/C7STANDARD==============CCIMP 1865 |
| CL_TRANSPARENT_CONTAINER=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT |
| 14 METHOD CL_WDR_VIEW_ADAPTER===========CP CL_WDR_VIEW_ADAPTER===========CM003 72 |
| CL_WDR_VIEW_ADAPTER=>IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT |
| 13 METHOD CL_WDR_VIEW_ADAPTER===========CP CL_WDR_VIEW_ADAPTER===========CM007 28 |
| CL_WDR_VIEW_ADAPTER=>IF_WDR_NW7_DELTA_RENDERER~CALCULATE_DELTA_BLOCKS |
| 12 METHOD CL_WDR_WINDOW_CONTENT_ADAPTER2CP CL_WDR_WINDOW_CONTENT_ADAPTER2CM004 5 |
| CL_WDR_WINDOW_CONTENT_ADAPTER2=>PROCESS_DELTA_BLOCKS |
| 11 METHOD CL_WDR_WINDOW_CONTENT_ADAPTER2CP CL_WDR_WINDOW_CONTENT_ADAPTER2CM001 27 |
| CL_WDR_WINDOW_CONTENT_ADAPTER2=>IF_WDR_NW7_DELTA_RENDERER~CALCULATE_DELTA_BLOCKS |
| 10 METHOD CL_WDR_NW7_INT_WIN_ADAPTER====CP CL_WDR_NW7_INT_WIN_ADAPTER====CM005 66 |
| CL_WDR_NW7_INT_WIN_ADAPTER=>SET_CONTENT |
| 9 METHOD CL_WDR_NW7_MAIN_WIN_ADAPTER===CP CL_WDR_NW7_MAIN_WIN_ADAPTER===CM002 6 |
| CL_WDR_NW7_MAIN_WIN_ADAPTER=>SET_CONTENT |
| 8 METHOD CL_WDR_CLIENT_SSR_LS==========CP CL_WDR_CLIENT_SSR_LS==========CM001 29 |
| CL_WDR_CLIENT_SSR_LS=>IF_WDR_CLIENT~SEND_RESPONSE |
| 7 METHOD CL_WDR_MAIN_TASK==============CP CL_WDR_MAIN_TASK==============CM00I 118 |
| CL_WDR_MAIN_TASK=>EXECUTE |
| 6 METHOD CL_WDR_MAIN_TASK==============CP CL_WDR_MAIN_TASK==============CM00U 6 |
| CL_WDR_MAIN_TASK=>IF_WDR_RUNTIME~EXECUTE |
| 5 METHOD CL_WDR_CLIENT_ABSTRACT_HTTP===CP CL_WDR_CLIENT_ABSTRACT_HTTP===CM01A 100 |
| CL_WDR_CLIENT_ABSTRACT_HTTP=>HANDLE_REQUEST |
| 4 METHOD CL_WDR_MAIN_TASK==============CP CL_WDR_MAIN_TASK==============CM00J 89 |
| CL_WDR_MAIN_TASK=>IF_HTTP_EXTENSION~HANDLE_REQUEST |
| 3 METHOD CL_HTTP_SERVER================CP CL_HTTP_SERVER================CM017 388 |
| CL_HTTP_SERVER=>EXECUTE_REQUEST_FROM_MEMORY |
| 2 FUNCTION SAPLHTTP_RUNTIME LHTTP_RUNTIMEU02 1155 |
| HTTP_DISPATCH_REQUEST |
| 1 MODULE (PBO) SAPMHTTP SAPMHTTP 13 |
| %_HTTP_START |
|Chosen variables |
|Name |
| Val. |
|No. 22 Ty. METHOD |
|Name CL_NW7_VIEW_ELEMENT_ADAPTER=>CREATE_NW7_BY_VIEW_ELEMENT |
|VIEW_ELEMENT |
| {O:initial} |
| F0000000 |
| F0000000 |
| FF00000000000000 |
|PARENT |
| {O:281*\CLASS-POOL=/1WDA/C7STANDARD\CLASS=CL_SCROLL_CONTAINER} |
| E0001000 |
| 60009100 |
| E600000019010000 |
|IGNORE_LIFETIME_WRAPPER |
| |
| 2 |
| 0 |
| 0 |
| 0 |
| 2000 |
|ADAPTER |
| {O:initial} |
| F0000000 |
| F0000000 |
| FF00000000000000 |
|%_SPACE |
| |
| 2 |
| 0 |
| 0 |
| 0 |
| 2000 |
|SYST-REPID |
| CL_NW7_VIEW_ELEMENT_ADAPTER===CP |
| 4454535544554444445544455453334522222222 |
| 3CFE77F6957F5C5D5E4F1410452DDD3000000000 |
| 0000000000000000000000000000000000000000 |
| 0000000000000000000000000000000000000000 |
| 43004C005F004E00570037005F0056004900450057005F0045004C0045004D0045004E0054005F0041004400410050|
|CL_NW7_VIEW_ELEMENT_ADAPTER=>M_NW7_CLASS_REGISTRY |
| Table IT_627[112x256] |
| \CLASS-POOL=CL_NW7_VIEW_ELEMENT_ADAPTER\DATA=CL_NW7_VIEW_ELEMENT_ADAPTER=>M_NW7_CLASS_REGISTRY|
| Table reference: 318 |
| TABH+ 0(20) = 303E3A00DF070000F03E3A00DF07000000000000 |
| TABH+ 20(20) = 3E010000730200007000000000010000FFFFFFFF |
| TABH+ 40(16) = 04E50000B0D6000010000000A425C000 |
| store = 0x303E3A00DF070000 |
| ext1 = 0xF03E3A00DF070000 |
| shmId = 0 (0x00000000) |
| id = 318 (0x3E010000) |
| label = 627 (0x73020000) |
| fill = 112 (0x70000000) |
| leng = 256 (0x00010000) |
| loop = -1 (0xFFFFFFFF) |
| xtyp = TYPE#000018 |
| occu = 16 (0x10000000) |
| accKind = 4 (ItAccessHashed) |
| idxKind = 0 (ItIndexNone) |
| uniKind = 1 (ItUniYes) |
| keyKind = 3 (user defined) |
| cmpMode = 2 (cmpSingleMcmpR) |
| occu0 = 1 |
| stMode = 0 |
| groupCntl = 0 |
| rfc = 0 |
| unShareable = 0 |
| mightBeShared = 0 |
| sharedWithShmTab = 0 |
| isShmLockId = 0 |
| isUsed = 1 |
| isCtfyAble = 1 |
| hasScndKeys = 0 |
| hasRowId = 0 |
| scndKeysOutdated = 0 |
| scndUniKeysOutdated = 0 |
| ----- Shareable Table Header Data ----- |
| tabi = 0xA0B53A00DF070000 |
| pgHook = 0xC0343A00DF070000 |
| idxPtr = 0x90323A00DF070000 |
| id = 536 (0x18020000) |
| shmTabhSet = 0x0000000000000000 |
| refCount = 0 (0x00000000) |
| tstRefCount = 0 (0x00000000) |
| lineAdmin = 112 (0x70000000) |
| lineAlloc = 112 (0x70000000) |
| shmVersId = 0 (0x00000000) |
| shmRefCount = 1 (0x01000000) |
| rowId = 18446744073709551615 |
| scndKeyAdmin = 0x0000000000000000 |
| ----- 1st level extension part -------- |
| regHook = 0xB0763A00DF070000 |
| collHook = 0x0000000000000000 |
| ext2 = 0x0000000000000000 |
| |
| STANDARD RADIOBUTTON_GROUP_BY_IDX RADI|
| 5544445422222222222222222222225444445554454545554554452222222222222222222222222222222222225444|
| 341E412400000000000000000000002149F2544FEF72F50F29F9480000000000000000000000000000000000002149|
| 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000|
| 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000|
| 5300540041004E00440041005200440020002000200020002000200020002000200020002000200020002000200020|
| |
| STANDARD RADIOBUTTON RADI|
| 5544445422222222222222222222225444445554422222222222222222222222222222222222222222222222225444|
| 341E412400000000000000000000002149F2544FE00000000000000000000000000000000000000000000000002149|
| 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000|
| 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000|
| 5300540041004E00440041005200440020002000200020002000200020002000200020002000200020002000200020|
| -
How to change shape properties after having created one?
Photoshop CC 2014 -- latest update as of October 06, 2014
Windows 7
How can I change a shapes properties after having created one.
I have created a simple ellipse.
When I drew the ellipse with the tool, I had the option for the fill color/style and stroke, etc.
After I have created said ellipse, I wish to change its properties.
I can use the Paint Bucket, gradient tool, etc for the fill, but is there way to get back to the original set of tools with which I created the ellipse in the first place?
If I use Edit > Stroke... it adds a new stroke around the existing shape.
If I use Edit > Fill... the entire layer is filled.
There must surely be a way to reenter the tool set to edit an existing shape. No?
Thanks,Hi everyone,
Thanks for the helpful tips, advice, etc.
I didn't explain myself very well--I apologize.
However, with your tips I figured it out:
When I create a rectangle or ellipse, I can later click on its layer and the Properties window appears with options to change their "Live Shape Properties."
However, not so with the Polygon and Shape tools. With them, the Properties window shows only the Masks, but the Toolbar still shows some basic properties I can change.
I was stymied by the above differences while working only on a Shape.
I've attached two JPEG screenshots.
I didn't need to change the actual shape, just the fill/stroke, etc.
Later, I may wish to change the actual shape, but that appears to be done by simply creating something new.
Thanks much!! -
How to set/get value in dynamically created components?
I need to create dynamically form based on definition written in database.
I created an empty panelGreed in my jsf page
<h:panelGrid columns="2" id="parseg"
binding="#{ParsegBean.uiKatparam}">
</h:panelGrid>I can�t use dataTable, because my form contains various component types (SelectOneMenu, OutputText, and InputText).
In my bean I create components dynamically:
Private UIPanel uiKatparam = null;
Iterator componentIt = myComponentList.iterator()
while(componentIt.hasNext()){
MyComponent myComponent = (MyComponent) componentIt.next();
HtmlOutputText prompt = new HtmlOutputText();
prompt.setValue(myComponent.getPrompt());
prompt.setId(myComponent.getPromptId());
uiKatparam.getChildren().add(prompt);
switch (myComponent.type) {
case 1: //InputText
HtmlInputText iText = new HtmlInputText();
iText.setId(myComponent.getId());
iText.setValue(myComponent.getDefaultValue());
uiKatparam.getChildren().add(iText);
break;
case 2: //SelectOneMenu
HtmlSelectOneMenu selectOneMenu = new HtmlSelectOneMenu();
// �
uiKatparam.getChildren().add(select);
break;
default:
break;
}When I try to get values in my Action:
Iterator it = myBean.getUiKatparam().getChildren().iterator();
while (it.hasNext()) {
Object ob = it.next();
if (ob.getClass().getName().matches(".*HtlmInputText")) {
HtmlInputText t = (HtmlIputText) ob;
String id = t.getId();
String value = (String) t.getValue();
//�
//�
}and value is still equal initial value
How can I get velue entered to my InputText created dynamically?
MichalI solved my problem creating UIData with dynamically added and dynamically rendered components (in each row is rendered another component).
Maybe you are looking for
-
I use my Itunes for all my audiobooks. Right now I may have a book that has 28 Cd's. having many books with many cds in the library makes the library list long and ugly. I would like to consolidate the 28 cd files into one large one. but not screw up
-
I cannot get this to work. I live in the UK and have connected my Sony HDTV to the ipad using the Apple HDMI connector.
-
How do I get 5.1 sound from iTunes on my computer connected to Bose T20?
I have my computer connected to a Bose T20 with an HDMI cable. I can get surround sound with movies, but not with iTunes. I only get stereo instead of 5.1. I also have Apple TV connected to Bose and can get surround sound from iTunes when piped throu
-
Need logic for af:inputNumberSlider
Hello, Does anyone have any code samples that codes logic for <af:inputNumberSlider> component? If yes, would you mind pasting on this forum thread? Thanks a million for the help. Regards, Ruchir
-
Time machine backup causes system to crash
Hi, I had updates coming through on my macbook, and didn't realise until the next day that the power socket wasn't connected to my mac. When I tried to use my mac I kept getting an error, in that the computer wouldn't run at all, wouldn't start up.