Categorize one object by if another different object is related.
I want make a report that says if a Service Request has one of a specific type of Task then categorize that SR as "Category 1" and if it does not call it "Category 2".
I tried doing this using this calc: "case WHEN Activity.Type = 'Request New' then 'Category 1' else 'Category 2' end"
It works the closest but if a SR has one 'Request New' task and a task of a different type, it gets double categorized.
I want something that says if it has a 'Request New' task the it should ignore the others and categorize it as 'Category 1'.
Any ideas on how to do this? I'm stumped. Thanks ahead for your help.
Hi 830832,
This is a tough one and I don't see a way to do it in a single report. You could, however, create two reports and combine them for display purposes in a dashboard or custom tab.
Here is a simplified example (this would be an Activity report):
SR ID | SR | Type (from Activity) | Category (calculated value as below)
--> Filter on Type = 'Request New'
This is your "Category 1" report.
For your "Category 2" report, you want all the other SRs that DON'T have an activity of Type = 'Request New' So use the first report as a filter in your second report:
Where SR ID IS NOT IN (name of sub report).
Another alternative to consider is using ome external mechanism (web services or manual import / update ) to explicitly mark the SRs as "category 1" or "category 2". This would make reporting super easy, but clearly adds some overhead.
Good luck!
Similar Messages
-
How do I query changed view object attribute in another view object
Jdeveloper 10.1.3.4
My requirement is that I want to be able to query a view object (based on entity) on a non-key attribute where the value I am searching on may either be in the database on an existing record or, have just been recorded by updating a different view object based on the same entity (and yet to be committed).
When querying the second view object for a value just updated via a different view object, the second view object always returns no rows. I had expected the process to be :
EntityA
ViewObjectA based on EntityA
ViewObjectB based on EntityA
ViewObjectA - query row with key = 123. update attribute Y with value 456 (attribute Y in database null). Entity cache for EntityA, key 123, atttribute Y updated with value 456
ViewObjectB - query row with attribute = Y. expect record in EntityA cache just updated to be returned. Instead, nothing is returned
Here is the code I was using (where RandScheduleEdit and RandScheduleSearch are identical view objects based on entity object RandSchedule)
public static void main(String[] args) {
String amDef = "test.cache.model.AppModule";
String config = "AppModuleLocal";
ApplicationModule am = Configuration.createRootApplicationModule(amDef,config);
ViewObject rsEdit = am.findViewObject("RandScheduleEdit");
Key rsKey = new Key(new Object[]{40});
Row[] rsEditRows = rsEdit.findByKey(rsKey,1);
Row rsEditRow = rsEditRows[0];
rsEditRow.setAttribute("SId", new Number(7827));
ViewObject rsSearch = am.findViewObject("RandScheduleSearch");
rsSearch.setWhereClause("S_ID = :SId");
rsSearch.defineNamedWhereClauseParam("SId", null, null);
rsSearch.setNamedWhereClauseParam("SId",new Number(7827));
rsSearch.executeQuery();
Row rsSearchRow = rsSearch.first();
Configuration.releaseRootApplicationModule(am, true);
}Why does rsSearch not find the record S_ID = 7827 ? It seems to only be querying new records in the database and ignoring the cached record just updated ?
Any help greatly appreciated.
Cheers,
BrentrsSearch.setNamedWhereClauseParam("SId",new Number(7827));This might help:
rsSearch.setQueryMode(ViewObject.QUERY_MODE_SCAN_ENTITY_ROWS);
rsSearch.executeQuery(); -
Hello,
I’ve finally managed to deploy my first guest cluster with a shared VHDX using a service template.
So, I now want to try and update my service template. However, whenever I try to do anything with it, in the services section, I receive the error:
Unable to perform the job because one or more of the selected objects are locked by another job. To find out which job is locking the object, in the jobs view, group by status, and find the running or cancelling job for the object. ID 2606
Well I tried that and there doesn’t seem to be a job locking the object. Both the cluster nodes appear to be up and running, and I can’t see a problem with it at all. I tried running the following query in SQL:
SELECT * FROM [VirtualManagerDB].[dbo].[tbl_VMM_Lock] where TaskID='Task_GUID'
but all this gives me is an error that says - conversion failed when converting from a character string to uniqueidentifier msg 8169, level 16, State 2, Line 1
I'm no SQL expert as you can probably tell, but I'd prefer not to deploy another service template in case this issue occurs again.
Can anyone help?No one else had this?
-
I am unable to remove a host from my Virtual Machine Manager 2012 R2. I receive the following error:
Error (2606)
Unable to perform the job because one or more of the selected objects are locked by another job.
Recommended Action
To find out which job is locking the object, in the Jobs view, group by Status, and find the running or canceling job for the object. When the job is complete, try again.
I have already tried running the following command in SQL Server Management Studio
SELECT * FROM [VirtualManagerDB].[dbo].[tbl_VMM_Lock] where TaskID='Task_GUID'
I received this error back:
Msg 8169, Level 16, State 2, Line 1
Conversion failed when converting from a character string to uniqueidentifier.
I have also tried rebooting both the host and the Virtual Machine Manager Server. After rebooting them both, I still receive the same error when trying to remove the host.
Here are my server details
VMM Server OS = Windows 2012 Standard
VMM Version = 2012 R2 3.2.7510.0
Host OS = Windows 2012 R2 Datacenter
Host Agent Version = 3.2.75.10.0
SQL Server OS = Windows 2012 Datacenter
SQL Version = 2012 SP 1 (11.0.3000.0)Hi there,
How many hosts are you managing with your VMM server?
The locking job might be the background host refresher job. Did you see any jobs in the jobs view, when the host removal job failed?
If there is no active jobs in the jobs view when this host removal job fails, can you please turn on the VMM tracing, retry the host removal, and paste back the traces for the failed job (search for exception and paste the whole stack)?
Thanks!
Cheng -
How to pass a "object" as a prameter from one java class to another java
hi experts, I want to know "How to pass and get object as a parameter from one java class to another java class". I tried follwoing code just check it and give suggetions..
import Budget.src.qrybean;
public class ConfirmBillPDF extends HttpServlet
qrybean db = new qrybean();
SimplePDFTable pdfTable = new SimplePDFTable();
pdfTable.simplePDFTableShow("2010","2011","1","2","1","131","102");
}Here i want to pass db with simplePDFTableShow method. simplePDFTableShow is in another java class. So how can i do this.
And also i want to know, how this obj will get.
please help me.
Edited by: andy_surya on Jul 14, 2010 7:51 AMHi andy_surya
what is this i am not understand
pdfTable.simplePDFTableShow("2010","2011","1","2","1","131","102");but i am try to solve your problem try this
qrybean db = new qrybean();
SimplePDFTable pdfTable = new SimplePDFTable();
pdfTable.simplePDFTableShow(db);and access like this in SimplePDFtable class update your method
simplePDFTable(qrybean tempDB)
// write your code
} -
This is just a major pain point that I hope is fixed as soon as possible.
In all Keynote 6 versions of the past (and 5), you were able to do the following:
1) Copy a Title or Body object (with proper formatting) from one Master Slide to another.
1a) The slide you would paste it into would have had to have been deleted/unchecked.
2) The pasted Title and Body objects would then assume the role of the Master's Title and Body Boxes
Now:
Instead of assuming the role of the Master Slides Title and Body Boxes, they are simply text box objects. If you were to check "Title" or "Body", the old objects (with probably improper formatting) would still be that slide.Below is the EtreCheck report. If Needed I am willing to make a screencast of the problem.
Problem description:
copying and pasting elements on masterpages in Keynote doesn’t work.
EtreCheck version: 2.1.8 (121)
Report generated 9 februari 2015 17:56:13 CET
Download EtreCheck from http://etresoft.com/etrecheck
Click the [Click for support] links for help with non-Apple products.
Click the [Click for details] links for more information about that line.
Hardware Information: ℹ️
MacBook Pro (Retina, 15-inch, Late 2013) (Technical Specifications)
MacBook Pro - model: MacBookPro11,3
1 2.3 GHz Intel Core i7 CPU: 4-core
16 GB RAM Not upgradeable
BANK 0/DIMM0
8 GB DDR3 1600 MHz ok
BANK 1/DIMM0
8 GB DDR3 1600 MHz ok
Bluetooth: Good - Handoff/Airdrop2 supported
Wireless: en0: 802.11 a/b/g/n/ac
Battery Health: Normal - Cycle count 235
Video Information: ℹ️
Intel Iris Pro
NVIDIA GeForce GT 750M - VRAM: 2048 MB
Color LCD spdisplays_2880x1800Retina
System Software: ℹ️
OS X 10.10.2 (14C109) - Time since boot: 5:43:37
Disk Information: ℹ️
APPLE SSD SM0512F disk0 : (500,28 GB)
EFI (disk0s1) <not mounted> : 210 MB
Macintosh HD (disk0s2) / : 400.00 GB (133.37 GB free)
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
BOOTCAMP (disk0s4) /Volumes/BOOTCAMP : 99.42 GB (49.66 GB free)
USB Information: ℹ️
Apple Internal Memory Card Reader
Apple Inc. BRCM20702 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Inc. Apple Internal Keyboard / Trackpad
Thunderbolt Information: ℹ️
Apple Inc. thunderbolt_bus
Gatekeeper: ℹ️
Mac App Store and identified developers
Kernel Extensions: ℹ️
/System/Library/Extensions
[not loaded] com.AmbrosiaSW.AudioSupport (4.1.2 - SDK 10.7) [Click for support]
[loaded] com.Cycling74.driver.Soundflower (1.6.6 - SDK 10.6) [Click for support]
[not loaded] com.splashtop.driver.SRXDisplayCard (1.6 - SDK 10.7) [Click for support]
[not loaded] com.splashtop.driver.SRXFrameBufferConnector (1.6 - SDK 10.7) [Click for support]
Launch Agents: ℹ️
[not loaded] com.adobe.AAM.Updater-1.0.plist [Click for support]
[running] com.adobe.AdobeCreativeCloud.plist [Click for support]
[not loaded] com.splashtop.streamer-for-root.plist [Click for support]
[running] com.splashtop.streamer-for-user.plist [Click for support]
[not loaded] com.teamviewer.teamviewer.plist [Click for support]
[not loaded] com.teamviewer.teamviewer_desktop.plist [Click for support]
Launch Daemons: ℹ️
[running] com.adobe.adobeupdatedaemon.plist [Click for support]
[loaded] com.adobe.fpsaud.plist [Click for support]
[loaded] com.ambrosiasw.ambrosiaaudiosupporthelper.daemon.plist [Click for support]
[running] com.splashtop.streamer-daemon.plist [Click for support]
[loaded] com.splashtop.streamer-srioframebuffer.plist [Click for support]
[not loaded] com.teamviewer.teamviewer_service.plist [Click for support]
[loaded] net.telestream.InstallToLibrary.plist [Click for support]
User Launch Agents: ℹ️
[loaded] com.adobe.AAM.Updater-1.0.plist [Click for support]
[loaded] com.adobe.ARM.[...].plist [Click for support]
[loaded] com.adobe.ARM.[...].plist [Click for support]
[loaded] com.google.keystone.agent.plist [Click for support]
[running] com.spotify.webhelper.plist [Click for support]
User Login Items: ℹ️
iTunesHelper Programma (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
Dropbox Programma (/Applications/Dropbox.app)
Google Drive Programma (/Applications/Google Drive.app)
Internet Plug-ins: ℹ️
AdobeAAMDetect: Version: AdobeAAMDetect 2.0.0.0 - SDK 10.7 [Click for support]
FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
EPPEX Plugin: Version: 4.1.0.0 [Click for support]
AdobePDFViewerNPAPI: Version: 11.0.10 - SDK 10.6 [Click for support]
AdobePDFViewer: Version: 11.0.10 - SDK 10.6 [Click for support]
Flash Player: Version: 16.0.0.305 - SDK 10.6 [Click for support]
Default Browser: Version: 600 - SDK 10.10
QuickTime Plugin: Version: 7.7.3
Silverlight: Version: 5.1.20913.0 - SDK 10.6 [Click for support]
JavaAppletPlugin: Version: 15.0.0 - SDK 10.10 Check version
User internet Plug-ins: ℹ️
Picasa: Version: 1.0 - SDK 10.6 [Click for support]
Safari Extensions: ℹ️
LastPass
3rd Party Preference Panes: ℹ️
Flash Player [Click for support]
SwitchResX [Click for support]
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
6% WindowServer
1% fontd
0% Google Drive
0% SystemUIServer
0% Core Sync
Top Processes by Memory: ℹ️
1.20 GB Adobe Photoshop CC 2014
1.08 GB Adobe InDesign CC 2014
515 MB Finder
429 MB firefox
241 MB WindowServer
Virtual Memory Information: ℹ️
5.82 GB Free RAM
7.91 GB Active RAM
2.02 GB Inactive RAM
1.42 GB Wired RAM
2.71 GB Page-ins
0 B Page-outs
Diagnostics Information: ℹ️
Feb 9, 2015, 12:33:36 PM /Users/[redacted]/Library/Logs/DiagnosticReports/Splashtop Streamer_2015-02-09-123336_[redacted].crash
Feb 9, 2015, 12:12:22 PM Self test - passed
Feb 9, 2015, 11:57:53 AM /Users/[redacted]/Library/Logs/DiagnosticReports/Splashtop Streamer_2015-02-09-115753_[redacted].crash
Feb 9, 2015, 09:48:33 AM /Users/[redacted]/Library/Logs/DiagnosticReports/Splashtop Streamer_2015-02-09-094833_[redacted].crash -
How to pass the object of one class to the another class?
Hello All,
My problem is i am sending the object of serializable class from one class to another class but when i collection this class into another it is transfering null to that side even i filled that object into the class before transfer and the point is class is serializable
code is below like
one class contain the code where i collecting the object by calling this function of another class:-
class
lastindex and initIndex is starting and ending range
SentenceStatusImpl tempSS[] = new SentenceStatusImpl[lastIndex-initIndex ];
tempSS[i++] = engineLocal.CallParser(SS[initIndex],g_strUserName,g_strlanguage,g_strDomain);
another class containg code where we transfering the object:-
class
public SentenceStatusImpl CallParser(SentenceStatusImpl senStatus, String strUserName, String strLanguage, String strDomain)
*//here some code in try block*
finally
System.+out+.println("inside finally...........block......"+strfinaloutput.length);
senStatus.setOutputSen(strfinaloutput);//strfinaloutput is stringbuffer array containg sentence
fillSynonymMap(senStatus);
senStatus.setTranslateStatus(*true*);
return senStatus;
Class of which object is serialized name sentenceStatusimpl class:-
public class SentenceStatusImpl implements Serializable
///Added by pavan on 10/06/2008
int strSourceSenNo;
String strSourceSen = new String();
String strTargetSen = new String();
StringBuffer[] stroutputSen = null;
HashMap senHashMap = new HashMap();
HashMap dfaMarkedMap = new HashMap();
boolean bTargetStatus = false;
public SentenceStatusImpl(){
public void setOutputSen(StringBuffer[] outputSen){
stroutputSen = outputSen;
public StringBuffer[] getOutputSen(){
return stroutputSen;
public void setTranslateStatus(*boolean* TargetStatus){
bTargetStatus = TargetStatus;
}//classok,
in class one
we are calling one function (name callParser(object of sentenceStatusImpl class,.....argument.) it return object of sentenceStatusImple class containg some extra information ) and we collecting that object into same type of object.
and that sentenceStatusImple classs implements by Serializable
so it some cases it is returning null
if you think it is not proper serialization is please replay me and suggest proper serialization so that my work is to be done properly (without NULL)
hope you understand my problem -
Change object from one transport request to another
Hi,
I have a requirement wherein i need to change the object from one transport request to another. The thing is that i have saved
one in one transport request and when i am trying to transport it , it is not allowing me to transport as this transport request
contains some inactive object. I have also tried to delete that object from this transport request and put in another one
but when i tried to do that i was only allowing me to create sub task within the same request .
Kindly suggest me
Thanks
ParagHi,
you can either just delete the object from the object item list of the first transport request (just click away all warnings and hints). Then put it into a new request, lock it and transport it. You might ned to overtake the responsibility for the first request but with the appropriate authorization this should be no issue.
Other solution is using a transport of copies. This will tell you the object is locked in another request when you release it but still allow to transport it.
In all solutions you have to be sure that transporting the object without all other stuff in the request is possible as the objects are independent from each other. Otherwise you will not be able to import the request in the destination system.
Rgds.
Roman -
Inserting objects from one PDF document to another in Acrobat XI
When I copy objects using "Edit Text & Images" and insert it to another document, objects are insert in any place of document, but when document "A" have view "Fit to screen" and document "B" have same view and I copy object from A and insert to B, object in B will insert to same place (exact) how it was in A. It works fine in Acrobat 9, 10. It didn't work in Acrobat XI (11.0.3). Does any know how to fix it?
The PDF template we need to copy the form fields "to" doesn't start out having any form fields. It is the fields that we need copied from a previous year's PDF template.
Here's an except from my original post: "I am looking for a way to copy the form fields from an existing PDF document (last year's PDF in our case) and copy the form fields into a new PDF document (that does not yet have any form fields defined)"
The "new" PDF template is a complete "paper" form with updated legal text and calendar year referrences but NO form fields. In our IS group, we then take these forms, add form fields to them and are then able to populate them with database-resident user data. We serve them up to the user in their browser pre-populated with their application data.
So again, our need is to find a way to copy form fields from "last year's" PDF template and copy just the form fields to an fresh "new year's" PDF template that contains no form fields to begin with. What we begin with is just a PDF representation of a paper student loan application.
Thanks for the suggestion! -
How do I make 2 points in two different objects to stick to eachother?
As the topic says, I need to make 2 points in two different objects to stick to eachother, so for example when I rotate a line which is "connected" to a square object in one end, the line will rotate around that point.
Also, if I have lets say two square objects and I "connect" one of the corners of one square object to another corner of another square object, where the points are located exactly on the same location, I need to be able to rotate any of the square objects around the point which is connected to the other square.
Is this possible?
Some will probably ask why I need to do this, but I can only say I do, it's a long storyIts quite complicated guys , I'm quite sure Illy doesn't do what I'm looking for.
It's basically a line which is "anchored" at one point and connected to a square at the other point. So when I move the square the line is being dragged with it without altering its length. And of course the "anchored" point of the line stays where it was from the beginning, while the other end is attached to the square moving with it.
This way the squares point, the one which is connected to the line, can neither end up closer or farther from the lines "anchored" point. The square can only move around that point in an exact circle, with constant radius.
I'm using this for measuring/map creation. It doesn't have to be 100% exact down to the millimetre, but I'd be happy if I could get it centimetres exact if you know what I mean. Of course this is on a scale of like 100x100 metres or more.
I can do it without this "feature" too, but it takes more time and is not totally exact either.
I can't use CAD for this, so it'll have to be Illy. -
How to Display two different objects in a single table header in Cross Tab?
i All,
I've a reqiurement for a Cross Tab Report like I need two different objects that should be displayed side-by-side, one object's values after another in a single header. In the picture below I've shown the objects separately in two rows, top header having BSNLNL,MTNLNL,RCOMNL and Header-2 having AIRTIL,RCOMIL. But requirements needs to be showing like this,
BSNLNL
MTNLNL
RCOMNL
AIRTIL
RCOMIL
Actually, the data for the header comes from a single object called Operator. I've show the Operators name ending with NL and after that names ending with IL. So, i've separated the data into two variables using the below formulae.
IL:
=[Billing Operator]
Where
Match([Billing Operator];"*IL")=1
NL:
=[Billing Operator]
Where
Match([Billing Operator];"*NL")=1
Also, the NL data should start first and after the NL data's last value ends, the IL data should begin.
One more thing is that I've to show '0' for null values. So i've used the below formulae on the column data. You can see below that except the "Outgoing ILD Mins in the month from Mobile Network" everything else showing fine. I don't understand why.
=If
Substr([Franchise];3;1)="M"
Then
[Mobile Outgoing Charged Usage Minutes]
Else
0
I tried different approaches but couldn't find a solution. Could you please help me?
I'm using BO WebI 4.1 SP1
Regards,
Naren Vema.Hi Naren,
No need to split Billing Operator object. Create a variable-
V_IL_NL= If Match([Billing Operator];"*IL")=1 Then "IL" ElseIf Match([Billing Operator];"*NL")=1 Then "NL"
1) Put V_IL_NL variable below Billing Operator object header.
2) Sort and create break on this variable.
3) Delete Footer column. it will automatically create when you apply break.
4) Hide V_IL_NL variable from this header.
~Anuj -
Objects to show at different times on a slide not showing up
Hi Everyone,
I hope this problem is minor and that I’m just missing a small step but here it goes…
I’m using Captivate 4 and I’ve only been using it on one particular computer. I updated a captivate project that I’ve been working on since September and I’ve finished all the edits (added a picture, changed a few words) as requested by colleauges when all of a sudden, some objects that were suppose to show at different times on the slide were not showing up at all. The frustrating part is I actually finished the project! When I do a preview within the edit view, the objects appear as it should, however, when I publish it or do a preview on wepage, the objects are not appearing at all (ie a word at 10 sec, another at 20 sec). Anway, there were only 3 slides acting like this, all with objects are suppose to show up at different times on the slide (these were not the slides that I recently edited). My video works fine, my quiz works fine, and I’ve uploaded an initial version of my work on a Pathlore LMS with no problems (publish specs: flash 8, AS2).
I have several other projects that are less complicated (ie no video, no objects showing at different times within the slide) and they are OK. I’ve checked on other computers and same problem.
I tried deleting the slides, and redoing it again within the same project but still wont work I tried copying everthing on a new project with the same size with no luck.
I tried making a 2 slide project with objects showing up at different times and it works.
Is my project corrupted in some way? What are the possible culprits for this problem?
I really hope I don’t have to start from scratch…
Thanks in advance!Hi there
While it's certainly possible that the project has somehow become corrupt, you might find that simply closing and restarting Captivate changes things.
Have you tried that? I've seen it where bits and pieces are suddenly missing. After I restarted, things were just fine again.
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
Add advanced action to submit button and setting different objectives score for the same course
Hi, i would like to increase a counter in a quiz slide when the user press the submit button, using advanced actions.
It's like if the submit button is somehow inhibited from certain options, and i cannot find how to add an advanced action to it.
what i need, is to allow unlimited attempt until the user selects the right answer. each time the user click on submit, a counter increases by one. When user finally select the right answer, we read the counter value and assign a different score, depending on the attempt (for example: 1st attempt=20 points, 2nd attempt=10 points, 3rd attempt=0 points)
After that, i need to save all score obtained for a certain group of quiz slide separately from the "main score" (i think the main score is stored in cmi.objectives.0.score) to have partials scores for a course. I examined the "advanced interactions" panel and i noticed that for each quiz slide there is a specific interaction ID and each quiz slide is associated typically to the same Objective ID. What i need is to associate different groups of slides to different Objective ID's.
In Storyline i was able to do this by passing to the lms a cmi.objectives.n.score (where "n" is the place in the objectives array) and i did it by executing a javascript on success for each question slide. (each javascript added the score of previous slides in the same group to obtain the total score of the group to be passed to lms with a specific function).
examining captivate scorm functions in the published scormdriver.js i found the following function
function SCORM_SetObjectiveScore(strObjectiveID,intScore,intMaxScore,intMinScore)
so i think it can be done the same way in captivate executing javascript in the right way.
Is there also an easier solution to write different scores to different obectives in the same course?
many thanks for any help!Have a look at:
Question Question Slides in Captivate - Captivate blog
Question Question Slides - Part 2 - Captivate blog
Indeed, Submit button is part of the Question slide, not a normal button. You can add a custom shape button, but it will never replace what happens when the Submit button is clicked: validation of the answer, showing captions, adding to score etc. Making the score depending on the attempt is not possible with default functionality, it is possible with custom question slides, but then the reporting to LMS is another issue. You should try to do it by JS, or if you only need SWF-output you could use the Master widget by InfoSemantics.
Link score to attempts in Custom questions - Captivate blog
Lilybiri -
Passing different objects to different constructors
I have a question about passing objects to constructors with different type object parameters.
I am using three classes:
The main class StringEditorGUI class allows me to enter two string objects which are passed to constructors (a default constructor and one with specified parameters) in a StringEditor class. These string objects then I beleive need to be passed to a linked list (MyList) class (that contains two constructors and together create two linked objects. So the problem I am having is that the MyList constructor with specified parameter is of the MyList type and the objects being sent are of the String type. Here is the abbreviate code. I need to understand how to pass the String objects from the StringEditor (String left, String right) constructor to the MyList(MyList lst) constructor.
Any help/hints etc. is appreciated.
Thanks,
MB
public class StringEditorGUI extends JFrame implements ActionListener {
// create empty StringEditor
private StringEditor ed = new StringEditor();
static public void main(String [] args) {
new StringEditorGUI().setVisible(true);
public void actionPerformed(ActionEvent ae) {
Object objSource = ae.getSource();
if (objSource == buttonSet) {
String strSet = JOptionPane.showInputDialog("Please enter text to set to editor:");
if (strSet != null)
ed = new StringEditor(strSet, "");
else if (objSource == buttonInsert) {
String strInsert = JOptionPane.showInputDialog("Please enter text to insert into " +
"editor at cursor position:");
for (int i = 0; strInsert != null && i < strInsert.length(); i++)
ed.insertChar(strInsert.charAt(i));
public class StringEditor {
/** Creates a new instance of StringEditor */
// Effect: StringEditor object is created
// Postcondition: no characters are in the string
public StringEditor() {
// Effect: StringEditor object is created
// Precondition: parameters strings are non-null
// Postcondition: characters from strings left and right are represented
// in the editor
public StringEditor(String left, String right) {
public class MyList {
private int numItems;
private Object item;
private MyList next;
/** Creates a new instance of MyList */
// Effect: new MyList object created
// Precondition: None
// Postcondition: an empty MyList object exists
public MyList() {
next = null;
// Effect: new MyList object created that is copy of lst
// Precondition: lst is not null
// Postcondition: an MyList object that is identical to lst exists
public MyList(MyList lst) {
next = lst;
}you either need to make or find a function in StringEditor that will return these strings. Another option would be to find where the StringEditor constructor is called (you should seriously post more code cause what you posted is pretty useless) and call the MyList constructor with the same parameters.
-
What is SAP name space for different objects.
Hi Guys,
Kindly let me know the SAP name spaces for different objects.
Thankshi,
Naming Conventions in ABAP Objects
Global classes and interfaces that you create in the Class Builder are stored in the class library and administered by the R/3 Repository: they therefore have the same namespace as all other Repository objects (database tables, structures, data elements, and so on).
It is therefore necessary to have naming conventions for object types and their components and to use them uniformly within program development.
The following naming convention has been conceived for use within the SAP namespace:
If you do not observe the naming conventions for object types (classes and interfaces), conflicts will occur when the system creates persistent classes, since it will be unable to generate the necessary co-classes.
Namespace for Components
A single namespace within a class is shared by:
All components of the class itself (attributes, methods, events, constructors, interfaces, internal data types in the class, and aliases)
All public and protected components of the superclasses of the class.
Method implementation has a local namespace. The names of the local variables can obscure those of class components.
Naming Convention
The naming convention has been kept as general as possible to avoid adversely influencing the naming of objects.
General Remarks
When you choose names for development objects, you should:
Use English names
Use glossary terms when possible
For example, CL_COMPANY_CODE instead of BUKRS
In compound names, use the underscore character (_) as a separator. Since names are not case-sensitive, this is the only character that you can use to separate names.
Example: CL_COMPANY_CODE, CL_GENERAL_LEDGER_ACCOUNT
Names should describe the action, not the implementation of the action.
Example: PRINT_RECTANGLE, not RECTANGLE_TO_SPOOL
Conventions for Object Types
Class and interface names in the class library belong to the same namespace as data elements, tables, structures, and types. They are maintained centrally in table TADIR.
Class in the class library
CL_<class name>
The class name should be made up of singular nouns.
CL_COMPANY_CODE, CL_GENERAL_LEDGER_ACCOUNT
Interfaces in the class library
IF_<interface name>
The same naming convention applies to interfaces as to classes.
IF_STATUS_MANAGEMANT, IF_CHECKER
Local classes in programs
(recommendation)
LCL_<class name>
The class name should be made up of singular nouns.
LCL_TREE_MANAGEMENT
Local interfaces in programs
(recommendation)
LIF_<interface name>
The sane naming convention applies to interfaces as to classes.
LIF_PRINTER
Recommended naming conventions are not compulsory. However, if you use prefixes for these class and interface names, you should use those listed above.
Conventions for Components
Method name
<method name>
Method names should begin with a verb:
GET_STATUS, CREATE_ORDER, DETERMINE_PRICE
Events
<event name>
Event names should have the form
<noun>_<participle>:
BUTTON_PUSHED, COMPANY_CODE_CHANGED, BUSINESS_PARTNER_PRINTED
Local type definitions within a class
(recommendation)
TY_<type name>
TY_INTERNAL_TYPE, TY_TREE_LIST
Data definitions (variables)
<variable name>
When you name variables within a class (CLASS-DATA or DATA), avoid using verbs at the beginning of the name (to avoid conflicts with method names).
LINE_COUNT, MARK_PRINTED, MARK_CHANGED, STATUS
Data definitions (constants)
(recommendation)
CO_<constant name>
CO_MAX_LINE, CO_DEFAULT_STATUS, CO_DEFAULT_WIDTH, CO_MAX_ROWS
Recommended naming conventions are not compulsory. However, if you use prefixes for these class and interface names, you should use those listed above..
Concrete Method Descriptions
Attribute access
SET_<attribute name>, GET_<attribute name>
Methods that access attributes of any kind should be prefaced with GET_ or SET_.
GET_STATUS, SET_USE_COUNT
Event handler methods
ON_<event name>
Methods that handle events should begin with ON, followed by the name of the event that they handle.
ON_BUTTON_PUSHED, ON_BUSINESS_PARTNER_PRINTED
Methods that perform type conversions
AS_<new type>
AS_STRING, AS_ISOCODE
Methods that return a Boolean value
These methods may not return any exceptions.
Recommendation: Use SPACE and 'X' to represent false and true respectively.
IS_<adjective>
IS_OPEN, IS_EMPTY, IS_ACTIVE
Check methods
CHECK_<objective>
CHECK_AUTHORIZATION, CHECK_PROCESS_DATE
Local Conventions Within Methods
For parameters
The parameters are regarded from the point of view of the method that implements them:
IMPORTING parameters
IM_<parameter name>
EXPORTING parameters
EX_<parameter name>
CHANGING parameters
CH_<parameter name>
RESULT
RE_<result>
Using prefixes is NOT compulsory. However, if you do use them, use those listed above.
For exceptions
The following table contains a series of possible exception names, that can also be used generically (for example, NOT_FOUND could also be used as DATE_NOT_FOUND)
EXCEPTION
Meaning
ACTION_NOT_SUPPORTED
The requested action or function code is not supported.
CANCELLED
If a method uses a dialog to find out what has to be dome (for example, a list of choices), and the user chooses "Cancel", you can set this exception.
EXISTING
A new object that you want to create already exists in the database.
FAILED
The method could not be executed because of the current environment. This exception is intended for cases where the method cannot be executed because of variable system circumstances.
..._FAILED
Part of the method could not be completed because of the current environment. (OPEN_FAILED, CLOSE_FAILED, SELECTION_FAILED, AUTHORIZATION_FAILED)
FOREIGN_LOCK
Data is locked by another user.
INCONSISTENT
Object data in the database is inconsistent.
..._INCONSISTENT
The component data for of an object in the database is inconsistent.
INVALID
The object data entered is incorrect (for example, company code does not exist). Compare NOT_QUALIFIED.
..._INVALID
The component data entered for an object is incorrect. Compare NOT_QUALIFIED.
INTERNAL_ERROR
Last resort. Only use this exception if you cannot be more precise about the nature of the error.
NOT_AUTHORIZED
The user does not have the required authorization.
NOT_CUSTOMIZED
The object requested is not correctly customized.
..._NOT_CUSTOMIZED
The component of the requested object is not correctly customized.
NOT_FOUND
Unable to find the requested object.
..._NOT_FOUND
Unable to find component of the requested object.
NOT_QUALIFIED
The combination of input parameters is insufficient to run the method. Compare INVALID.
..._NOT_QUALIFIED
One parameter of the method is not qualified.
NUMBER_ERROR
Error assigning a number.
SYSTEM_ERROR
This exception is set if the Basis system returns an unexpected error message.
regards,
sudheer.
Maybe you are looking for
-
Canceled Service, and now I want to give my phone to a family member to start service
Found a spot on the website to do it but it says it's pending. Called Customer Service and it won't let me do anything. I still owe a past due balance I will pay when I get paid next week but I would like to give my phone to a family member now
-
MacBook Pro w/ OSX v10.6 refused to restart- reinstalled now slow
OK- here is what happened/I did: 1. I used it fine with FinalCut Pro, watching videos with QT10 and closed the lid one night, two weeks ago. 2. Next day I opened the lid and tried to view a video with QT10 only to be told that that version of QT wa
-
Exception in thread "main" Unsupported major.minor version 50.0
When i type javac <program name>.java it compiles. But when i type java <program name> i get this error: Exception in thread "main" java.lang.UnsupportedClassVersionError <Unsupportedmajor.minor version 50.0> I type javac -version. I get 1.6.0_07. I
-
What's a good forge game for the iPad?
I was wondering if there was a game for the iPad kind of like Gary's Mod or the forge on Halo Reach.
-
How to delete certain rows from Table view
Hi Experts, I need to display result on the basis of certain process type. So i have used code like below. lv_iterator = me->typed_context->searchresult->collection_wrapper->get_iterator( ). lv_entity = lv_iterator->get_first( ).