Making an object name
Hi All,
I have to do what I thought was a simple thing:
A cue point comes into my function and is read. I find the name of that cue point (which is the name of the MC it will act upon) and convert it from a string to an object name so I can work on it. Here's how I do that:
function onCuePoint(event:CuePointEvent):void
trace (event.name); // output: "childMovieClipA" <==this is a string.
newChildObjectName = this[event.name];
trace ( newChildObjectName.name ); // output: "childMovieClipA" <==this is an object..
That works. How do I make the name of another related MC by adding a string to the event.name and then convert that string to an object name?
I'm trying to create the name of this MC: "childMovieClipA_grandChild"
For example, I'm trying to do this below but get an error:
newGrandChildObjectName = this [event.name + "__grandChild"];
trace ( newGrandChildObjectName.name ); //TypeError: Error #1010: A term is undefined and has no properties.
Any help is appreciated.
In your example it appears you use two underscore characters whereas what you say you want to create appears to only have one.
The way you say you want it places it at the same child level as the event.name object. Just in case, if the _grandchild is a child of the event.name object, you need to use a separate pair of brackets for it.
Similar Messages
-
Create object name using a String variable
Hi,
I�m making a jsp page and I need to add several objects to a vector. The vector's name is arrayGrupo, and the object is Grupo. The problem is that when I create the instance of the object, I cant �give him different names, so the add in the Vector will always be of the same object instance. Is there anyway to create an object name using a variable?
Something like this:
<% if (request.getParameter("grupoNome") != null ) {
nomeG=request.getParameter("grupoNome");
descG=request.getParameter("grupoDesc");
int nG=arrayGrupo.getTamanho(); //size of the array
String xpto=String.valueOf(nG);
Grupo "xpto"= new Grupo(); //here is the problem
xpto.setNomeGrupo(nomeG);
xpto.setDescricao(descG);
xpto.setIdgrupo(arrayGrupo.getTamanho()+1);
arrayGrupo.addGrupo(xpto);
}%>
Thanks
Rui Gon�alvesI want to show a list of objects that are stored in a vector. But I also want to add objects to that vector. If I just want to add one object, I can use this code:
<% if (request.getParameter("grupoNome") != null ) {
nomeG=request.getParameter("grupoNome");
descG=request.getParameter("grupoDesc");
Grupo newGrupo = new Grupo(nomeG,descG,arrayGrupo.getTamanho()+1);
arrayGrupo.addGrupo(newGrupo);
%>
What should I do if I want to add more than one object to the vector?
I don�t know if I made myself clear but is quite hard to explain my problem.
Thanks -
Object name not found error after upgrading to Visio 2013
Hello,
I have a C# application which uses the Visio drawing control. I have been working on making it compatible with Visio 2013. I get an error using Visio 2013 which I did not get using Visio 2010. The error is a COMexception:
Object name not found.
That is all the error says. The code which causes it to occur is as follows:
Document document = axDrawingControl1.Document;
document.Pages["page1"].Drop(document.Masters["Dynamic Connector"], 0, 0);
It does not seem to matter whether I use Dynamic Connector or Rectangle or any other shape, the error still occurs.
Here's the weird part: I tried out this code in a simple app with a Visio drawing control to see if I could figure out how to make it go away, and the error was still occurring for a little while, and then the code magically started working without me making
any changes to it. Unfortunately, it didn't start magically working in the original application so I'm still trying to figure out what is causing it.
Thanks for your help!Did the error disappear once you'd created a document and added a dynamic connector shape to the drawing? If so then there is now a Dynamic Connector master stored in the document stencil (where masters used in the drawing are contained).
Paul Herber, Sandrila Ltd. Engineering and software shapes for Visio
Sandrila Ltd -
IPTC Headline vs IPTC Object Name
I'm just curious....
Everything I've read about using IPTC fields recommends that we use HEADLINE for the short descriptive caption. And that OBJECT NAME be reserved for a more technical reference.
Yet, I see that iPhoto uses the Object Name....
Do we know why Apple made that decision?
I have lots of data in Headline.... I'll have to transfer it to Title before I can import to iPhoto.
Thanks for your consideration
MarioniPhoto uses IPTC field 120, Caption/Abstract, for the descriptions. The titles are put into the IPTC field 05 - Object Name (Title). Why Apple uses those fields: you'll have to ask Apple: http://www.apple.com/feedback/iphoto.html
The following are the IPTC field titles:
*05Object Name (Title)
10Urgency
15Category
20Supplemental Categories
25Keywords
40Special Instructions
55Date Created
80By-line (Author)
85By-line Title(Author position)
90City
95Province/State
101Country/Primary Location Nam
103Original Transmission Reference
105Headline
110Credit
115Source
116Copyright Notice
120Caption/Abstract
122Writer/Editor
You can see a lising of the core IPTC fields here: IPTC Core mapped fields PDF
TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard. -
Need algrithim for constantly making new objects
How would I go about making an object and then remake the same object again but with a different name.
here is the problem:
for(int i=0;i<23;i++){
//But i want the second time to run around and create a Printer object
//named something else not printer.
Printer printer = new Printer();
any help would be appreciatedWell I my case I'm trying to get different names. So I guess the easist thing I can do is to make an array. But then it brings me to this question,
This is my class:
import java.awt.*;
public class Printer {
public void init(){
public void paint(Graphics g,String string,int x,int y){
g.drawString(string,x,y);
}if I wanted to make an array out of it like so:
Printer[] print = new Printer[xAmount];It says nullPointerException when I try to access the class's function by doing this:
print[0].paint(g,"test",2,3);What can I put in print[0] to make it not null? I mean you can put numbers and letters. (
Message was edited by:
jkhoa
Message was edited by:
jkhoa -
Duplicate Object Name Error When Publishing Crystal Reports from BW to BOE
Hi,
We recently upgraded our systems (all client and server) to SP2.7 in order to solve a problem with saving Crystal Reports to BW. Now we are experiencing a new error when trying to publish a Crystal Report from BW to BOE (either all in one step from Crystal Reports application or directly from within BW).
Upon trying to publish a Crystal Report from BW to BOE, we get the following error:
"An error occurred while saving and / or publishing. The return code 1 was returned from the server. Logon to Crystal Enterprise failed. Unable to commit the changes to Enterprise. Reason: Failed to commit objects to server : Duplicate object name in the same folder."
We have repeated this issue numerous time with different reports, users and logon credentials and have verified that there are NOT any duplicate object names.
Additionally, in some cases, the report ultimately publishes to BOE, but with the above error interruption along the way.
Any ideas?
Thanks,
Josh
Edited by: Josh Crawford on May 10, 2010 9:46 AMIngo,
Apologies for the delayed response. We've spent a few days poking around with this issue, and had even opened a customer message for it (13641).
In the end, it seems that the problem was somehow associated with the "Prepare this report for translation." flag in the "Save to BW Options" dialog box of Crystal Reports. If we try to Save & Publish with the Translation flag selected, we get the duplicate entry error. If we Save & Publish without the Translation flag selected, everything is fine.
There are still some details we need to look into, but for the time being it looks like we don't have an issue anymore(assuming we ever did) as we're not concerned with Translation capabilities.
If we come across the problem again, I'll post again.
Thanks,
Josh -
Create directory / object name must NOT be case sensitive
SQL Dev. 2.1 - the wizard, chosen from the left side navigator, submits a wrong create statement in which the object name becomes case-sensitive. This should not be so! Even if you write the new object name in small letters , the object name must end up in the data dictionary with capitals. kind regards Inger ([email protected])
Which wizard? If I use a create table wizard, for example, and enter the table in lower case, this is indeed stored in the DB as upper case, as you require.
Please provide more detail for your problem.
Sue -
Find object Names in a file and print all those objects Names
Hi All,
I am new to this forum.
I want to know how to read only objects names in txt file. In the text file i have sql queries, package names, Function Name. I need to read all the objects and display out put. The file contains around 20000 Lines.
Please suggest me.
Thanks & Regards
Suresh.Gurram wrote:
want to read .rex File. The file contains combination of SQL code with table Names, Packages,Functions,There are three basic ways to read an external file.
You can use UTL_FILE and use standard/basic file I/O calls like fread() and fwrite() - common amongst most (if not all) programming languages.
You can define an external table for the file, and SQL*Load the contents of the file dynamically via a SQL SELECT statement.
You can load the file into a CLOB using DBMS_LOB and then process it - quite useful if the text file is XML as the XMLTYPE supports parsing a a CLOB containing XML.
I want to pick Each object name put in a separate file line by line.That in turn will need to use UTL_FILE to create an external file.
Keep in mind though that your in a database environment with PL/SQL. The very best place for data is inside the database in SQL tables. Not outside as external files. Thus you need to ask yourself whether dealing this way with external files is the best solution, and a robust and scalable one.
Granted, many times from the database side we need to deal with external files. The optimal method usually is to load that file's data into a database table as structured data - data that can be accessed via SQL and sorted, filtered, aggregated and analysed.
To provide a "file" as output - this should ideally be done directly from structured data (SQL tables). And can be done using HTTP (via a web enabled PL/SQL procedure that supplies the file content as a http Mime stream), using FTP (via <i>UTL_TCP</i>) or as a CLOB via a PL/SQL call interface. Using UTL_FILE is not necessarily the only option. -
I am new to SSRS and I am trying to migrate reports from 2008 to 2012. As I have so many reports to migrate, I simply got the back up of ReportServer,
ReportServerTempDB, and Encryption Key and restored them to test environment. I made necessary configuration from RS configuration tool. I am able to see the reports now when I browse //hostname/reports. But when I open any particular report I am getting some
error.
· An error has occurred during report processing.
(rsProcessingAborted)
Query execution failed for dataset 'dataSet'.
(rsErrorExecutingCommand
Semantic query execution failed. Invalid object name
'RPT. ******'. (rsSemanticQueryEngineError)
****** - I am assuming this is a custom data class.
Does anyone have insight on this? or any better way that I can migrate the reports to new server with less efforts.
I don’t have the reports solution file to deploy the reports, so I have followed backup and restore process.Hi Kishore237,
According to your description, you migrated some reports from Reporting Services (SSRS) 2008 to 2012. Now you get error when accessing the reports on SSRS 2012. Right?
In this scenario, did you modify the report data source in database after migration? You can try to open the report in Report Builder or Report designer and check the report dataset. If you can preview the report in Report builder or Report designer,
please try to redeploy the report to Report Server. If it is still not working, please try to restore the database from backup. And for migrating reports, please follow the "Content-Only Migration" in the link below:
http://msdn.microsoft.com/en-us/library/ms143724(v=sql.110).aspx
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
SP 2013 Server + Dec 2013 CU. Upgrading from SharePoint 2010.
We have a web application that is distributed over 7-8 content databases from SharePoint 2010. All but one database are upgradable. However, one database gives:
Invalid object name 'Webs'.
while running Test-SPContentDatabase or Mount-SPContentDatabase.
EventViewer has the following reporting 5586 event Id:
Unknown SQL Exception 208 occurred. Additional error information from SQL Server is included below.Invalid object name 'Webs'.
After searching a bit, these links do not help:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/fd020a41-51e6-4a89-9d16-38bff9201241/invalid-object-name-webs?forum=sharepointadmin
we are trying PowerShell only.
http://blog.thefullcircle.com/2013/06/mount-spcontentdatabase-and-test-spcontentdatabase-fail-with-either-invalid-object-name-sites-or-webs/
In our case, these are content databases. This is validated from Central Admin.
http://sharepointjotter.blogspot.com/2012/08/sharepoint-2010-exception-invalid.html
Our's is SharePoint 2013
http://zimmergren.net/technical/findbestcontentdatabaseforsitecreation-problem-after-upgrading-to-sharepoint-2013-solution
Does not seem like the same exact problem.
Any additional input?
Thanks, Soumya | MCITP, SharePoint 2010Hi,
“All but one database are upgradable. However, one database gives:
Invalid object name 'Webs'.”
Did the sentence you mean only one database not upgrade to SharePoint 2013 and given the error?
One or more of the following might be the cause:
Insufficient SQL Server database permissions
SQL Server database is full
Incorrect MDAC version
SQL Server database not found
Incorrect version of SQL Server
SQL Server collation is not supported
Database is read-only
To resolve the issue, you can refer to the following article which contains the causes and resolutions.
http://technet.microsoft.com/en-us/library/ee513056(v=office.14).aspx
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
Post Author: dmface15
CA Forum: Administration
I am working in a new enviorment and i am trying to save a report to the Crystal Server via the CMC. I am uploading the report from the objects tab and attempting to save to a folder. The report has 1 static defined parameter and that's it. When i click submit to save the report i receive the following error message: "There was an error while writing data back to the server: Failed to commit objects to server : Duplicate object name in the same folder." There is not a anothe report within the folder with that name. What could be causing this error message and equally important, what is the solution.hte message you received about duplicate user probably means something hadn't fully updated yet. Once it did then it worked...
Regards,
Tim -
How to hide object name in tray of pages
Hi everybody,
I want to hide the object name in the tray of a page.
I act as follows: open Page in VC --> Configure Page --> Look & Feel --> unselct "Show Object name in Tray"
I thought that is the right way, but every time I want to deploy, the option is true again.
Could anybody help me?Hi Robert,
Unfortunately, evrytime you open the model, it shows default values for the fieds. The only field for which it shows the correct value in the dashboard is 'Show Help Option'. However, at runtime, it does reflect the changes you make. You can check that in PCD.
e.g. If you uncheck the checkbox for 'Show object name' and deploy the first time. The page should reflect the change on the Portal in PCD, however in the model shows the default value i.e. the checked checkbox. If you deploy it again, it won't change the value on the portal. It will still retain the value(unchecked,) on the portal. In order to change the value back to what it was (checked) originally, you have to uncehck the checkbox and check it again and then deploy. The values will change on the portal.
I don't know the reason behind this behaviour though.
Regards,
Ajay -
How can I set the Object Name to the file name on import?
All-
I've been manually typing the filename into Aperture's Object Name metadata field. Is there a way to do this automatically? I use metadata presets to fill in many other fields on import but haven't found a way to set metadata fields on a file-by-file basis.
Perhaps there's a way to do this with the thousands of images already in my library as well...
Thanks,
AndreasHere's the cleaned-up version:
tell application "Aperture"
set selectedImages to the selection
repeat with i in selectedImages
set tName to name of i
set value of IPTC tag "ObjectName" of i to tName
end repeat
end tell
Some other related bits, which you can probably work out how to put into the above script:
Find out the AppleScript names of the IPTC tags (but only tags which have a value for that image), the names will be listed in the 'result' pane in the Script Editor:
tell application "Aperture"
set selectedImages to the selection
get name of every IPTC tag of item 1 of selectedImages
end tell
The same for EXIF tags:
tell application "Aperture"
set selectedImages to the selection
get name of every EXIF tag of item 1 of selectedImages
end tell
And for any custom tags you have set up. If you haven't set up any custom tags (one of my main reasons for going with Aperture) this will just return camera and picture time zones:
tell application "Aperture"
set selectedImages to the selection
get name of every custom tag of item 1 of selectedImages
end tell
Finally, keywords:
tell application "Aperture"
set selectedImages to the selection
get name of keywords of item 1 of selectedImages
end tell
To grab the first keyword name try 'name of keyword 1 of...' etc.
To grab the parent keywords for hierarchical keywording stuff try experimenting with 'get parents of keywords of'. The keywords seem to be read-only from AppleScript, so a magic script that added all parent keywords doesn't seem to be possible.
Ian -
Cost element report with cost object name column
Hi,
i'm looking for a report similar to S_ALR_87013601: Cost Elements: Breakdown by Object Type, but including a column with the cost object name. Does anyone know if such a report exists? If it doesn't exist, how can i create a report like this?
Some of my company costs are assigned to cost centers and some of them are assigned to wbs elements. We would like a report where we could have all the information together.
Thank you very muchHi Xavi ,
Some of my company costs are assigned to cost centers and some of them are assigned to wbs elements. We would like a report where we could have all the information together.=>
There is not standard report available.. which will display total cost per company code.. i,e cost booked on cost centers, internal order and WBS elements ... This is becuse each modules store data in seperate tables.
You have to create a ABAP report to serve your pourpose. You have to collate all the costs booked in a company code for cost centers, IO and WBS elements . Pick up real costs only as per company code..
We are using such custom report and its working fine.
Regards
Sarada -
Invalid DataStore object name /BIC/B0000173: Reason: No valid entry in tabl
Hi gurus,
I recently transported the 0FI_GL_10 datasource to preproduction. when i am trying to load the data in PrePod we are getting this error message.
<b>Invalid DataStore object name /BIC/B0000173: Reason: No valid entry in table RSTS</b>
Any help is appreciated with points.any more detailed messages,sm21 or st22??
did you try doing RSRV on the datastore object??
are you using the nw2004s data flow??
if using 3.x data flow ,skip PSA and try reloading it.
Hope it Helps
Chetan
@CP..
Maybe you are looking for
-
How do I assign a disk drive to backup my iPad
I am trying to update to iOS 8.1.1, using iTunes on my PC. However, there is insufficient space in my C: drive to backup the iPad Mini. I have other hard drives that have space and want to use one of the other drives for iTunes to perform the backu
-
Help Required in defining keyfields in custom DSO
Hi Experts, I have created a DSO based on a standards DS to bring in between an Infocube ( Zversion from SAP standard cube) and an standard info source. I am getting 1461 reords in PSA and same records my extractor shows in RSA3 but when it comes to
-
hi, Can any one tell us creation of logical port for publishing a webservice. While creating we are facing following exception: SRT Framework exception: Initial value "operation table" in method IF_SRT_WSP_SUBJECT_CONTEXT~IS_COMPATIBLE_TO_PROXY_ of c
-
Solution Manager: System Administration
Hello all, in Solution Manager -> dswp -> Operations Setup -> System Administration I've successfully created and monitored some servers; the problem is that I've accessed a server and in Session Components hit 'Complete'; since then, I can't remotly
-
FM to create equipment task group counter by copying the existing one.
Hi Experts, I need FM to create equipment task group counter by copying the existing one. Manully we do this through the Tcode : IA01 but i want to do this through the Prog... for that i wrote one bdc it is creating some problem. Please let me know a