Can I reference object by constructing name?
I need to loop through a lot of objects and properties where
I would like to reference both objects and properties by
constructing name using variables.
Pointer to docs would be great - looking but not sure what
topic this would be under. TIA,
Mic.
You can use getChildByName in most containers to accomplish
this, though it doesn't recurse into other contains... you would
need to do that by hand.
Another way to do it is to simply throw them all into an
Object or Arrar so you can easily look them up.
var hboxes:Object = new Object();
hboxes[my_hbox.id] = my_hbox;
Similar Messages
-
How to reference objects with same name?
Probably another easy one, but again, couldn't find the answer in old discussions...
I have some objects with the same name on my form. Designer has made them unique by making an array out of them...object[0], object[1], object[2] etc. How can I reference the individual objects in javascript? I tried the obvious by referencing them as an array, but to no avail. I suppose it'd be just as easy, if not better, to just have unique names, but in this case, the objects are related and having them in an array would be handy.You can try like below.
var oObject = xfa.resolveNode("Object[1]");
xfa.host.messageBox("" + oObject.rawValue);
Thanks
Srini -
Factory calendar attached to reference objects
Hi,
While creating date types and date duration we can attach reference objects to them. But where do we see the time zones and the factory calendar settings maintained against a reference object?
Regards,
-SwetaHi Sweta
If you want to add company holiday to take in account while calculating End date then config for Factory calendar / Holiday
SAP Implementation Guide> SAP Web Application Server>General Settings-->Maintain calendar
Once u done with config, use FM BUSINESS_DATE_CREATE for End date creation.
I am still finding how to attach the FC to Reference object. If i get will post u again.
hope you able to get your result.
Thanks,
Deven
Do not forget to allocate points............. -
How can i reference a MIME object within a correspondence format through...
how can i reference a MIME object within a correspondence format through TX oofo or se71?
Hi, I need to put a MIME object within a correspondence's format that i've already done through Tx oofo. My problem is, that i don't know exactly how can i make the reference of that MIME object in the format? and What structure type do i have to use in order to make appear the MIME object in my correspondence's format? Does anybody can help me with this?
Regards HectorFrank,
I tried to find some examples/samples on how to create CollectionModel for a table component but not successful.
Can you clarify the following ?
1. "CollectionModel" is referenced only by af:table attributes "value", "selectedRowKeys" and "selectionListener".
The rest of af:table attributes such as "rows", "fetchSize" used to reference the iterator binding in the binding container via the EL expression "#{bindings.VOIteratorBinding.xxx} .
What should I replace that EL expression with?
2. I heck out the bean method to create the CollectionModel as following, is it close to what you mean?
public void initBusinessDataDashboardView() {
OperationBinding operation = BeanUtils.getOperationBinding("getPanelBusinessData");
Map params = operation.getParamsMap();
Key panelKey = getPanelInfoView().getKey();
params.put("panelKey", panelKey);
params.put("maximizedView", false);
panelView = (ViewObject)operation.execute();
// Heck code to create CollectionModel
RowSet rowSet = panelView.getRowSet();
ArrayList rowList = new ArrayList();
while (rowSet.hasNext()) {
rowList.add(rowSet.next());
model = new ChildPropertyTreeModel(rowList, null);
// To be used to set up af:table value, selectRowKeys, selectionListener via EL expr #{backingBeanScope.MyBean.model.xxx}
public CollectionModel getModel() {
return model;
Am I on the right track?
Edited by: Pricilla on May 4, 2010 2:20 PM -
Can I switchout the reference to the constructer of a Web Services
I have two web services that are idententical (Site A and Site B).
Can I use a case statement on the reference from the constructer node to the rest of my code?
I am using Constructer>>Invoke>>Property nodes. The Invoke nodes are breaking if they were not created from the Constructer node.
Is there a different way to use Web Services to allow me to use the same code logic for two different web services?
I am using LabVIEW 8.2. Will I have the same problem in later versions of LabVIEW?
Thanks!
-John RedmanI *think* I have answered my question... If somone can confirm or deny it would be appreciated.
Labview *only* works with Web Services via a wizard that creates a .Net interface.
The constructer reference of a .Net assembly can not be switched switched out because (I don't know why... the rules of .Net? The rules of LabVIEW? Other? Either way the reference can't be switched.)
I tried this in LabVIEW 2010 via an evaluation version and I had the same problem (Invoke nodes broke when Constructer referencs were changed).
I guess the way around this is to make sub VIs and only pull data from the DB, one for each data source. The VI should have no other functionality to simplify the copy/paste from DB1 to DB2, DB3... process.
Let me know what you think!
-John Redman -
How can I reference a winforms control using a variable in Powershell?
I have a powershell winform that has a lot of text boxes, but for the sake of this post, lets say I have 5. I want to loop through the 5 text boxes to see if their text property is empty. If the textbox contains something, I want to add the text value to
an array. Here's an example of what I'm trying to do.
textbox1.text = "Red"
textbox2.text = ""
textbox3.text = "Blue"
textbox4.text = ""
textbox5.text = ""
$MyArray = @()
for ($i = 1; $i -le 5; $i++) {
If ($textbox[$i].text -ne "") {
$MyArray += $textbox[$i].text
I realize the textbox object is not an array so this code will not work. I guess the simple question is, How can I reference a set of static controls using a variable without having to do something like this
[object[]]$textboxes = New-Object System.Windows.Forms.TextBox
For ($i = 1; $i -lt 5; $i++) {
$textboxes += New-Object windows.forms.textbox
$textboxes[$i].DataBindings.DefaultDataSourceUpdateMode = [System.Windows.Forms.DataSourceUpdateMode]::OnValidation
$textboxes[$i].Name = $textboxes[$i]
$BoxItems.Controls.Add($textboxes[$i])Hi D-Dub,
here are two ways to retrieve the text value of $Textbox1:
$Textbox1.Text
(Get-Variable "Textbox1").Value.Text
Now what could you do with the second way, inside a loop, I wonder ... ;)
Cheers,
Fred
There's no place like 127.0.0.1 -
What is use of Reference object in BW
Hi All,
I have a small doubt about use of Reference object.Since reference object uses same database table of referenced object and also we can not load data in this.Only loaded data in Referenced object will be available in newly created reference object.
Also if we create more than 2 objects referencing the same object and used them in InfoProvider then what is use of these objects in that infoprovider whether they have same data and also all properties.
For example if we have created two objects u2018Sender Cost Centeru2019 and u2018Receiver Cost centeru2019 referencing the same object u2018Cost Centeru2019 and used them in an InfoCube.
Then what is use of these objects whethet they are refering same database table of u2018Cost Centeru2019.And how we can differentiate them during Reporting.
Regards
Vinayconsider below table:
cost center (master data table):
Cost SID, Center name, Other details
1 ..., xyz....., bla bla
2 ..., abc....., bla bla
Purchase Order Header Table (transcation table)
PONumber, Sender CostCntr, RecevierCostCntr, Other details.
101, 1, 2, xxxxxx
102, 2, 1, yyyyy
in cube, u've SIDs for MD... so when u read the details for say PONo 101, u pick sender SID & receiver SID & read details from master data table...
other example:
u r working somewhere.. u have employee ID & ur other details like name, address... all these get store in 0employee master data..
when in HR module ur salary is generated, salary module will hold only ur employee ID.. but from ur ID other details u can get.. rite?
same way leave module will have ur Id.. & it can get details bout ur leave & address...
both is true for ur manager.. but when ur leave is to be approved.. ur manager ID is required...when ur manager apply for leave his managerID is used.. all this get store in same leave module.. -
Complete product list in ICSS catalog for Reference Objects:Products
In my current scenario, I have products that belong to different sales areas and while I create a catalog, I have created different variants for different sales area and assigned the products accordingly.
The problem is, in the catalog usage (SPRO->CRM->Web Channel->e-service->catalog usage), I can create 1 catalog indicator corresponding to only 1 catalog variant and the same indicator I am giving in the XCM for ICSS catalogs. The problem is, as different variants have different products, the user would never be able to see the complete list of products but can only see the products belonging to 1 variant (whose indicator I have given in the XCM). The expectation is that the user should be able to see all the products (irrespective of the sales area ) in the Reference Object field (ICSS catalog).
I tried different combinations like-
1.Creating catalog views and assigning BPs. There is no option though of assigning a view in ICSS catalog
2.Giving all the indicators in XCM separated by u2018,u2019. I was hoping that the string would be read with a delimiter in the code.
3.Only giving the catalog name while creating the indicator in SPRO (Variant is not a mandatory option there). This resulted in runtime errors on the UI when I tried to access the catalog
Can anyone suggest how we might be able to achieve this without any code enhancement?Hi,
Checked the values in the Visual Admin -> Trex Service--> nameserver.address value is filled with the host name and port number
But no nameserver.backupserverlist is maintained . If it required should i give the same server details of the above property ei "namserver.add*"
And also i found that in the Tcode SES_ADMIN , everything is blank and also in the ICSS/B2C/ADMIN portal . the Catalog Cache Statistics is blank, there is no Key or Catalogue Guid is present
Please suggest me where to check now again .
Regards
Vikrant -
Reference object from function?
I still can't get a hold of how in flash you're supposed to
reference objects in the display list.
I have created a main container. Placed other containers
inside that will act as layers. Then I've placed items inside those
layers to animate using TweenLite.
Everything builds correctly but when I call my startAnimation
function it has no idea about the movie clips I'm trying to
animate. I gave them names during the addChild process so why
doesn't it work?
root1( main Timeline)
mainStage ( object mainStage)
ballLayer ( object ballLayer)
basketball_mc ( object BasketballMC)
I added the basketball from the libraray and gave it a .name
of basketball_mc. During my animation function I'm trying to just
say:
Thanks!>> root1( main Timeline)
mainStage ( object mainStage)
ballLayer ( object ballLayer)
basketball_mc ( object BasketballMC)
If I understand, I think you could do:
TweenMax.to(root1.mainStage.ballLayer.basketball_mc,
Dave -
www.offroadfire.com
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Run-time error '429': ActiveX component can't create object
HI,
I am having the following error in my Excel VBA Run-time error '429': ActiveX component can't create object when running the following code:
Dim objDistiller As New ACRODISTXLib.PdfDistiller6
objDistiller.FileToPDF2 filePath & ".PS", filePath & ".PDF", "T:\Templates\PDFSettings\Standard.joboptions", 1
This code has been working for years on all our systems, but due to recent security issues our administrator changed all user accounts to not have local administrator rights and now when we run this code we get the above error message.
I have had a look at DComcnfg.exe to try and get it to work by setting the default property permissions to allow access by Everyone but I am still getting the error.
Any help would be greatly appreciated.
Regards.
Shane Chapman.Hi Shane,
Here is another way to create PDF with Macro using another API than Distiller. This API is faster too.
Probably this post is not of interest anymore but here is how I have done it:
1. Download PDFCreator: http://sourceforge.net/projects/pdfcreator/
2. Use the following Macro:
Option Explicit
Sub printPDFmacro()
'Author : Ken Puls (www.excelguru.ca)
'Macro Purpose: Print to PDF file using PDFCreator
' (Download from http://sourceforge.net/projects/pdfcreator/)
' Designed for early bind, set reference to PDFCreator
Dim pdfjob As PDFCreator.clsPDFCreator
Dim sPDFName As String
Dim sPDFPath As String
'/// Change the output file name here! ///
sPDFName = "Facture-" & nclient2 & " le " & Format(Date, "yyyy-mm-dd") & ".pdf"
sPDFPath = "E:\Partenaire Scolaire\Comptabilite\Factures"
PDFFileName2 = sPDFPath & "\" & sPDFName
Set pdfjob = New PDFCreator.clsPDFCreator
With pdfjob
If .cStart("/NoProcessingAtStartup") = False Then
MsgBox "Can't initialize PDFCreator.", vbCritical + _
vbOKOnly, "PrtPDFCreator"
Exit Sub
End If
.cOption("UseAutosave") = 1
.cOption("UseAutosaveDirectory") = 1
.cOption("AutosaveDirectory") = sPDFPath
.cOption("AutosaveFilename") = sPDFName
.cOption("AutosaveFormat") = 0 ' 0 = PDF
.cClearCache
End With
'Print the document to PDF
ActiveSheet.PrintOut copies:=1, ActivePrinter:="PDFCreator"
'Wait until the print job has entered the print queue
Do Until pdfjob.cCountOfPrintjobs = 1
DoEvents
Loop
pdfjob.cPrinterStop = False
'Wait until PDF creator is finished then release the objects
Do Until pdfjob.cCountOfPrintjobs = 0
DoEvents
Loop
pdfjob.cClose
Set pdfjob = Nothing
end sub
Have any questions, just have to poke me.
Michael -
Access via NULL reference object not possible
Hi friends,
I have created an wda application which uses the table popin to display data.
So that i have created a view with two of the fields as link to action UI element.
In the Events/Actions of the link to action element i implemented the following logic.
data wd_table_cell_editor type ref to cl_Wd_view_element.
data wd_table_column type ref to cl_wd_table_column.
data wd_popin type ref to cl_wd_table_popin.
data id type string.
<b> wd_table_cell_editor ?= wd_this->m_view->get_element( id ).</b>
wd_table_column ?= wd_table_cell_editor->get__parent( ).
wd_popin = wd_table_column->get_popin( ).
context_element->set_attribute( name = 'SELECTED_POPIN' value =
wd_popin->id ).
So when i click on the link to action in the table column of the field am getting the following error
<b>Access via NULL reference object not possible.</b>
While debugging i have noticed that this error was coming at the below step of the code.
<b>wd_table_cell_editor ?= wd_this->m_view->get_element( id )</b>
in the m_view->get_element( id ) does not contan any value , its showing as table , as null value cannnot be assigned may be its throwing the above error.
But i didnt understand why the view is not getting UI element id ....
Can one please suggest me where might be the wrong....
Regards
Sireesha.Hi nithya,
Could you please calrify the doubts for the following q's.
1. As u said in the above post, i have changed the code to the below.
data: lr_table type ref to cl_wd_table,
lr_table_col type ref to cl_wd_table_column.
lr_table ?= wd_this->m_view->get_element( 'TABLE' ).
lr_table_col = lr_table->get_column( ID = 'TABLE_CONNECTID' ).
<b>wd_popin = lr_table_col->get_popin( ).</b>
(At the above step which is in bold , eventhough there is value in lr_table_col->get_popin , its not assigning a value to the wd_popin, throwing same error NULL etc.,)
context_element->set_attribute( name = 'SELECTED_POPIN' value =
wd_popin->id ).
2. Before changing the code suggested by u, the follwoing was the code from standard example.Its working fine in the application wdr_test_table.I have debugged the code.The value is getting assigned into wd_table_cell_editor.
The same thing i have done but its failing to assign the value. thats y its throwing null reference error. Here i have a confusion how its assigning a value and y not in the z application.am giving the code below which is in standard and my application.Please clarify these.
data wd_table_cell_editor type ref to cl_Wd_view_element.
data wd_table_column type ref to cl_wd_table_column.
data wd_popin type ref to cl_wd_table_popin.
<b>wd_table_cell_editor ?= wd_this->m_view->get_element( id ).</b>
( Note : wd_this->m_view->get_element contains value but not assigning it to the wd_table_cell_editor and same code in the standard behaving correctly like assigning the view value to the cell editor. Y this behavior, please advice me)
wd_table_column ?= wd_table_cell_editor->get__parent( ).
wd_popin = wd_table_column->get_popin( ).
context_element->set_attribute( name = 'SELECTED_POPIN' value = wd_popin->id )
Regards
Sireesha. -
Calculation Field to be mapped to different data object's column name in Oracle BAM 12c
Hi,
I am having a challenge to enable drill down to 2nd level report by passing calculation field as parameter.
As an alternative, I am thinking to point calculation field to another data object’s column name and generate report so that I would be able to pass that as parameter to drilling report view.
Is there any way to map calculation field to different Data object’s column name? Thanks in advance.
Regards
Amik Basu1. Yes, you can.
SQL> create table ÜÝÞ( ßàá number(10));
Table created.
SQL> insert into ÜÝÞ values (10);
1 row created.1.1 and 1.2 and 2. You can choose UTF as your default character set. It allows the user of non-English characters in VARCHAR columns in your whole database. It is not per tablespace.
SQL> create table ÜÝÞ( ßàá varchar2(100));
Table created.
SQL> insert into ÜÝÞ values ('âãäçìé');
1 row created. -
Dead space showing up in print preview; can't place objects in it
hi -- Somehow, I've managed to get what I'll call a "dead space" in between my last page footer and my report footer. The design view looks completely normal: page footer A, page footer B, and report footer. None are suppressed.
However, when I go to the print preview, what I have is: page footer A, page footer B, a dead space, and then the report footer. The dead space looks like a section, in that the far left of the preview shows lines (like section dividers) both above and below the dead space. However, when I right click on the dead space, I don't get a Section Menu; I also don't get a section name when the mouse hovers over that dead space. I can't place objects in the dead space.
It wouldn't be a huge deal except for the fact that the report is long enough that the dead space causes it to overflow onto a second page, which isn't acceptable.
How can I get rid of this thing? I really don't want to recreate the report. It's quite complex.
Thanks,
Carol
This is Crystal 11.Hi Carol,
That's interesting. I've never heard of this rogue spacing issue.
Why don't you try insertting the following in the Page Footer B Suppress formula.
Not OnLastRecord
Maybe that will help.
Regards,
Zack H. -
Notification: Set priority and dates, based on the reference object
Hello,
I'm searching for an idea/solution, to set the priority of a notification automatically, depending on the entered reference object (F/L or equi).
I.e. I want to classify the F/Ls and equis with a priority (e.g. via the classification, or F/L / equi master data). When the user creates a notification, and enters a F/L or equi, the priority should be selected from the object and set automatically.
Thanks for your answers!
Best regards
StephanHello Pete,
thank you for your answer. Unfortunatelly both user-exits seem not to work for my problem.
QQMA0025: Default values when adding a notification
Priority and dates can be modified, but in this step you don't have the functional location. I thought, I can send a popup in this user-exit, to ask for the functional location, but the functional location is deleted in a later step (before the 1st display of the notification header), i.e. the user has to enter it again.
QQMA0018: Deadline setting based on entered priority
Here you can only modify the dates / times, but not the priority.
Another show stopper is, that the exits will only be processed once, i.e. in both cases, a change of the functional location doesn't adjust the dates/times.
It seems, that exit "Before saving the notification" (as far as I remember QQMA0014) could be a solution.
I see 2 problems ->
1. the user enters the F/L or equi and nothing happens to the priority / dates -> sending a popup in the saving process to inform the user about the changes, could be a solution.
2. What to do, when the user has already maintained priority and/or dates/times?
I will have a look, if there are enhancement spots in the notification program. Perhaps this can help me (or better - my boss ).
Best regards
Stephan -
How to get subject text and Reference Object both Screens at the Header lev
Dear Experts ,
I am getting only Notification Header Screen ( Subject Text, Notification system and User Status) at the Header of Notification and different Tabs under that screen.
I want Subject Text and Reference Object screens at header Level so that any screen Tab selected at a time I can see the Subject and Reference Object of the Notification.
Pls tell me is there any way so I can Include 2 screens( Subject and Reference Object at the Header Level.)
With best regards,
NarendraNarendra,
You can't in the standard system.
Only the tabs are configurable.
PeteA
Maybe you are looking for
-
What is better HDMI audio or Optical audio?
Just wondering. If optical is better, will the optical port cancel out the HDMI Audio?
-
Charts: date displacement on DateTimeAxis
Hi all, I have a strange behaviour of the datatips in a linechart object that the days within the datatips are shifted by one day into the past. It is the same behaviour as shown in the "Adobe Flex 3 Component Explorer" http://examples.adobe.com/flex
-
Here's the deal with 1-gen AppleTV and iTunes Store...
Okay folks, since Apple remains mum on the subject and I finally found a solution that works for me, I thought I'd share. As far as I can tell, the issue lies with the "live" elements of the menus ("Top TV Shows", etc.) that were introduced in versio
-
How can i sort a hashmap so that it can have duplicates
i need to sort a hashmap so that it can have duplicates.
-
Certain webpages crash on all browsers on MacBook Pro
I've been dealing with this problem for a couple of weeks now. I run OS X Lion 10.7.5 and over the past few weeks certain random websites will begin to load, and then crash all my web browsers. I have tried Safari, Chrome, and FireFox and the same si