Help need in Drag and drop the Lines and rectangle in applet
hi
i want to create a simple paint applictaion which is capable of draw lines, rectangle, images etc. after that lines and other thinks can be moveable and rotate and scaling also.
the major restrictions in its implemented only in jdk1.1.
so if you people found any solutions or sample codings or application(this one is best) send it to [email protected]
thanks in advance
Giri
the major restrictions in its implemented only in
jdk1.1.Why!
Similar Messages
-
Help needed in Drag and Drop and resizing of image icons
Hi all,
I'm doing a project on Drag and Drop and resizing of image icons.
There is one DragContainer in which i have loaded the image icons and i want to drop these image icons on to the DropContainer.
After Dropping these icons on to the DropContainer i need to resize them.
I have used the Rectangle object in resizing.
The problem now i'm facing is when i drag, drop and resize an image icon and when i try to drag, drop a second image icon the first image icon gets erased.
can any one help me in fixing this error.
if u want i can provide the source code.
thanks in advance
muralithe major restrictions in its implemented only in
jdk1.1.Why! -
Help needed in drag and drop of Flex tree
Hi,
We have an application which allows drag and drop between
multiple
trees and lists.
Here are the steps I follow to refresh on drag and drop:
1. Dispatch a custom event which calls server.
2. On successful response from server I change the model
which is
data provider for the tree.
3. Then, set a flag which triggers 'invalidateDisplayList'
and 'invalidateList' for tree (and other listeners).
4. The tree refreshes fine. But as soon as I drag and drop
between
trees again, I get this error in Tree.as:
TypeError: Error #1010: A term is undefined and has no
properties.
at mx.controls::Tree/::updateDropData()
at mx.controls::Tree/calculateDropIndex()
at mx.controls.listClasses::ListBase/showDropFeedback()
at mx.controls::Tree/showDropFeedback()
The behaviour is weird, sometimes the browser hangs and stops
responding.
I am calling 'contentTree.showDropFeedback(event)' in my
dragOver
event listener which is triggering error.
My tree data provider is a custom class which has 'children'
array
collection attribute.
Any help on how to resolve this issue would be highly
appreciated.
Thanks in advance,
Sujathathe major restrictions in its implemented only in
jdk1.1.Why! -
Help needed with header and upload onto business catalyst
Can someone help with a problem over a header please?
I have inserted a rectangle with a jpeg image in background, in the 'header' section, underneath the menu. It comes up fine on most pages when previsualised, going right to the side of the screen, but stops just before the edge on certain pages. I have double checked that I have placed it in the right place in relation to the guides on the page.
That's one problem.
The second problem is that I tried to upload onto business catalyst, which got to 60% and refused to go any further, saying it couldn't find the header picture, giving the title and then u4833-3.fr.png. The picture is in the right folder I have double checked. And it isn't a png. Does it have to be ?
And the third problem is that I got an email following my upload from business catalyst in Swedish. I am living in France.
Can anyone help ? Thanks.Thanks for replying,
How can I check the preview in other browsers before I publish a provisional site with BC?
The rectangle width issue happens on certain pages but not others. The Welecom page is fine when the menu is active, also the contact page, but others are slightly too narrow. Changing the menu spacing doesn’t help - I was already on uniform but tried changing to regular and back.
In design mode the rectangle is set to the edge of the browser, that’s 100%browser width right?
Re BC I have about 200 images on 24 different pages and it seems to be having difficulty uploading some of them. But it has managed a couple I named with spaces but not others I named with just one name.
Is there an issue on size of pictures ? If I need to replace is there a quick way to rename and relink or do I have to insert the photos all over again?
I’m a novice with Muse with an ambitious site !
Thanks for your help.
Mary Featherstone
Envoyé depuis Courrier Windows
De : Sanjit_Das
Envoyé : vendredi 14 février 2014 22:15
À : MFeatherstone
Re: Help needed with header and upload onto business catalyst
created by Sanjit_Das in Help with using Adobe Muse CC - View the full discussion
Hi
Answering the questions :
- Have you checked the preview in Muse and also in other browsers ?
- Does the rectangle width issue happens when menu is active , or in any specific state , Try to change the menu with uniform spacing and then check.
- In design view the rectangle is set to 100% browser width ?
With publishing :
- Please try to rename the image file and then relink
- If it happens with other images as well , see if all the image names includes strange characters or spaces.
- Try again to publish
With e-mail from BC :
- Under preferences , please check the country selected.
- If you have previously created partner account in BC and selected country and language then it would follow that, please check that.
Thanks,
Sanjit
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6121942#6121942
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6121942#6121942
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6121942#6121942. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Help with using Adobe Muse CC at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0. -
Help need in drag drop operation in AIR application
I would like to know if there is a way to drag and drop an attachment file from an desktop mail client application(similar to MSoutlook) into an AIR application and make it accessible to the AIR application.
I did experiments with this the drag operation and its giving AIR a File Promise List format as its file type.
But I'm not exactly sure how to make use of it once it is dropped. The examples in web explains how to manupilate File Promises list format from an AIR application to the desktop.
There is not much explainations about droping a file promise list format into an AIR app. your valuable help will be greatly appreciated.Dear all,
Is the above mentioned task feasible or not?.If not do mention any other way for implementing this functionality or close to it.
Thanks -
Please help with simple Drag N Drop
I’m desperate and need some help with this simple drag
and drop. Here is the scenario…this animation is for a
kindergarten course. I have 6 different colored teddy bears on the
floor and the bears are to be placed on the middle shelf in the
room, in no particular order. I have the code in place to drag the
bears, and they return to their original location if dropped in the
wrong area. Everything works, except I can’t make the bears
stick to the target area. The target area has to be the same for
all 6 bears. Can someone help me out with this?
I have a feeling that the problem has something to do with my
instance names, but I have tried everything I can think of and
cannot get it to work. Is there some way I can post, send, or
attach my .fla file for someone to look at? I’m desperate.
PLEASE HELP!var startX3:Number;
var startY3:Number;
var counter3:Number=0;
vf_A.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
vf_A.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
vf_E.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
vf_E.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
vf_I.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
vf_I.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
vf_O.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
vf_O.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
vf_U.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
vf_U.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
function pickUp3(event:MouseEvent):void {
event.target.startDrag(true);
reply2_txt.text="";
event.target.parent.addChild(event.target);
startX2=event.target.x;
startY2=event.target.y;
function dropIt3(event:MouseEvent):void {
event.target.stopDrag();
var myTargetName:String="target"+event.target.name;
var myTarget:DisplayObject=getChildByName(myTargetName);
if (event.target.dropTarget != null &&
event.target.dropTarget.name == "instance112") {
reply2_txt.text="Good Job!";
event.target.removeEventListener(MouseEvent.MOUSE_DOWN,
pickUp3);
event.target.removeEventListener(MouseEvent.MOUSE_UP,
dropIt3);
event.target.buttonMode=false;
event.target.x=myTarget.x;
event.target.y=myTarget.y;
var mySound:Sound = new vowels_NAR_goodjob();
mySound.play();
counter3++;
} else {
reply2_txt.text="Try Again!";
event.target.x=startX2;
event.target.y=startY2;
var mySound2:Sound = new vowel_NAR_nopetryagain();
mySound2.play();
if (counter2==5) {
reply2_txt.text="Great Job! You did it!";
gotoAndPlay(3300);
vf_A.buttonMode=true;
vf_E.buttonMode=true;
vf_I.buttonMode=true;
vf_O.buttonMode=true;
vf_U.buttonMode=true; -
Some help needed for improrting and editing
Hi,
I need a litle help with two issues.
1) I was trying to edit a photo but when i click the edit button, I can see the photo at the top of the screen in the film strip but not in the edit screen and I have also noticed for this particular picture I cannot view it in full zoom. All I can see is an " ! " mark.
2) I deleted this picture and tried to import again but iphoto states that it cannot import because it already exists. I tried closed the program, deleting the cache.Derek
It is strongly advised that you do not move, change or in anyway alter things in the iPhoto Library Folder as this can cause the application to fail and even lead to data loss
iPhoto is a database and like any database it needs you to manipulate the data via the app itself, and not via a back door. So, that's why it thinks the pic is still there - because the entry in the database is still there.
The correct way to remove a pic is to move it to the iPhoto trash and empty the iPhoto trash. This will remove the pic from the database and the HD.
Now your database base is bunged up you have two choices: one is to return things precisely the way they were the other is to create and populate a new library.
To create and populate a new library:
Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
Move the iPhoto Library to the desktop
Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
Go into the iPhoto Library (Right Click -> Show Package Contents on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
When you're sure all is well you can delete the iPhoto Library on your desktop.
In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.
Assuming you renamed a file to make it easier to find:
There are three ways (at least) to get files from the iPhoto Window.
1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
To upload to MySpace or any site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
This is also true for emailing with Web-based services. If you're using Gmail you can use THIS
If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser. Or, if you want to access the files with iPhoto not running, then create a Media Browser using Automator (takes about 10 seconds) or use THIS
The change was made to the format of the iPhoto library because many users were inadvertently corrupting their library by browsing through it with other software or making changes in it themselves. If you're willing to risk database corruption, you can restore the older functionality simply by right clicking on the iPhoto Library and choosing 'Show Package Contents'. Then simply make an alias to the folders you require and put that alias on the desktop or where ever you want it. Be aware though, that this is a hack and not supported by Apple.
Regards
TD -
Newbie - help needed with array and dictionary objects
Hi all
Please see the code below. I've posted this code in another thread however the original issue was resolved and this is now a new issue I'm having although centered around the same code.
The issue is that I'm populating an array with dictionary objects. each dictionary object has a key and it's value is another array of custom objects.
I've found that the code runs without error and I end up with my array as I'm expecting however all of the dictionary objects are the same.
I assume it's something to do with pointers and/or re-using the same objects but i'm new to obj-c and pointers so i am a bit lost.
Any help again is very much appreciated.
// Open the database connection and retrieve minimal information for all objects.
- (void)initializeDatabase {
NSMutableArray *authorArray = [[NSMutableArray alloc] init];
self.authors = authorArray;
[authorArray release];
// The database is stored in the application bundle.
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *path = [documentsDirectory stringByAppendingPathComponent:@"books.sql"];
// Open the database. The database was prepared outside the application.
if (sqlite3_open([path UTF8String], &database) == SQLITE_OK) {
// Get the primary key for all books.
const char *sql = "SELECT id, author FROM author";
sqlite3_stmt *statement;
// Preparing a statement compiles the SQL query into a byte-code program in the SQLite library.
// The third parameter is either the length of the SQL string or -1 to read up to the first null terminator.
if (sqlite3preparev2(database, sql, -1, &statement, NULL) == SQLITE_OK) {
// We "step" through the results - once for each row.
// We start with Letter A...we're building an A - Z grouping
NSString *letter = @"A";
NSMutableArray *tempauthors = [[NSMutableArray alloc] init];
while (sqlite3_step(statement) == SQLITE_ROW) {
author *author = [[author alloc] init];
author.primaryKey = sqlite3columnint(statement, 0);
author.title = [NSString stringWithUTF8String:(char *)sqlite3columntext(statement, 0)];
// FOLLOWING WAS LEFT OVER FROM ORIGINAL COMMENTS IN SQLBooks example....
// We avoid the alloc-init-autorelease pattern here because we are in a tight loop and
// autorelease is slightly more expensive than release. This design choice has nothing to do with
// actual memory management - at the end of this block of code, all the book objects allocated
// here will be in memory regardless of whether we use autorelease or release, because they are
// retained by the books array.
// if the author starts with the Letter we currently have, add it to the temp array
if ([[author.title substringToIndex:1] compare:letter] == NSOrderedSame){
[tempauthors addObject:author];
} // if this is different letter, then we need to deal with that too...
else {
// create a dictionary to store the current tempauthors array in...
NSDictionary *tempDictionary = [NSDictionary dictionaryWithObject:tempauthors forKey:@"authors"];
// add the dictionary to our appDelegate-level array
[authors addObject:tempDictionary];
// now prepare for the next loop...
// set the new letter...
letter = [author.title substringToIndex:1];
// remove all of the previous authors so we don't duplicate...
[tempauthors removeAllObjects];
// add the current author as this was the one that didn't match the Letter and so
// never went into the previous array...
[tempauthors addObject:author];
// release ready for the next loop...
[author release];
// clear up the remaining authors that weren't picked up and saved in the "else" statement above...
if (tempauthors.count > 0){
NSDictionary *tempDictionary = [NSDictionary dictionaryWithObject:tempauthors forKey:@"authors"];
[authors addObject:tempDictionary];
else {
printf("Failed preparing statement %s
", sqlite3_errmsg(database));
// "Finalize" the statement - releases the resources associated with the statement.
sqlite3_finalize(statement);
} else {
// Even though the open failed, call close to properly clean up resources.
sqlite3_close(database);
NSAssert1(0, @"Failed to open database with message '%s'.", sqlite3_errmsg(database));
// Additional error handling, as appropriate...
Message was edited by: dotnetterOk, so I know what the issue is now...I just don't know enough to be able to resolve it!
it's the tempAuthors objects.
It's an NSMutableArray which is create on the line before the start of the WHILE loop.
Having looked through the debugger, I can see that each dictionary object is created (with different codes which I assume are memory addresses) so all is well there. However, on each iteration of the loop in the middle there is an IF...ELSE... statement which in the ELSE section is clearing all objects from the tempAuthors array and beginning to repopulate it again.
Looking at the containing dictionary objects in the debugger I can see that the tempAuthors object that each contains has the same code (again, I'm assuming this is a memory address) - so if I understand correctly, it's the same object...I assumed that when I created the dictionary using the dictionWithObject call that I would be passing in a copy of the object, but it's referencing back to the object which I then go on to change.
Assuming the above is correct, I've tried several "stabs in the dark" at fixing it.
I've tried relasing the tempAuthors object within the ELSE and initialising it again via an alloc...init - but this didn't work and again looking through the debugger it looks as though it was confused as to which object it was supposed to be using on the following iteration of the WHILE loop (it tried to access the released object).
Having read a little more about memory management can someone tell me if I'm correct in saying that the above is because the tempAuthors object is declare outside the scope of the WHILE loop yet I then try to re-instantiate it within the loop (does that make sense???).
Sorry for the long post...the more I can understand the process the less I can hopefully stop relying on others for help so much.
I am continuing to read up on memory management etc but just not there yet.
Regards
Wayne -
Slice tool help needed width expands and contracts
I recently did a header for my website and srinks and expands
with different screen sizes I need a bit of help to undstand how
and why this happens.
I built it on a 19" screen fits perfectly on the page. Then
on the 15" I'm using now its very small leaving gaps along the
sides
here's the problemNo, I don't mean that your header should be all one image.
Currently, your header is a table with a number of images
inside it. The width of the table is "absolute." It is set to a
fixed number of pixels (800). It won't change. What you see as
smaller and larger on your different monitors is a result of the
different resolution that the two monitors have.
The forum content, on the other hand, is in tables with
widths that are "relative." They are are a percentage of the width
of the browser window (81%). These tables will change size
depending on the size of the browser window. For just one perfect
setting, everything will line up. For all other widths, you have a
mess.
You need your header table and your forum tables to match.
Either your header needs to be designed differently, so that it can
expand and contract gracefully when a browser window is a different
size (in pixels), or you need to edit your forum so that the
various parts are all 800 pixels wide instead of varying
percentages.
As for monitors, it isn't the physical size that is important
here, it's resolution. It isn't the number of inches, it's the
number of pixels. You can have a 21" monitor that's set to 800x600
pixels and you can have a 17" monitor set to 1600x1200 pixels. On a
monitor with 800x600 pixel resolution, your header will be the full
width of the screen and the forum content will be about 650 pixels,
indented on both sides. On a monitor that is 1600x1200 pixel
resolution, your header will be about half of the screen width and
your forum content will be about 1300 pixels wide. -
Guys, i have the following problem:
Company A is transferring its voice calls to Company B through internet and Company B is making the voice calls and takes tha charges of the voice provider here in greece. We are using 2 2911 routers with all the modules for isdn lines. The ip phones are working fine, but Company A cannot send fax anywhere... When Company A is trying to send fax, just the time when the fax internal modem's sound is beginning, the line is dropped..
Phones have g729 codecs and faxes g711.
I don't know if the line has noise or jitter etc...
this is the sh voice port output, please instruct me what other debug you want to post, thank you.
B_SITErouter#sh voice port 0/2/0
Basic Rate Interface 0/2/0 Slot is 0, Sub-unit is 2, Port is 0
Type of VoicePort is ISDN-BRI
Operation State is DORMANT
Administrative State is UP
No Interface Down Failure
Description is not set
Noise Regeneration is enabled
Non Linear Processing is enabled
Non Linear Mute is disabled
Non Linear Threshold is -21 dB
Music On Hold Threshold is Set to -38 dBm
In Gain is Set to 0 dB
Out Attenuation is Set to 0 dB
Echo Cancellation is enabled
Echo Cancellation NLP mute is disabled
Echo Cancellation NLP threshold is -21 dB
Echo Cancel Coverage is set to 128 ms
Echo Cancel worst case ERL is set to 6 dB
Playout-delay Mode is set to adaptive
Playout-delay Nominal is set to 60 ms
Playout-delay Maximum is set to 1000 ms
Playout-delay Minimum mode is set to default, value 40 ms
Playout-delay Fax is set to 300 ms
Connection Mode is normal
Connection Number is not set
Initial Time Out is set to 15 s
Interdigit Time Out is set to 10 s
Call Disconnect Time Out is set to 60 s
Ringing Time Out is set to 180 s
Wait Release Time Out is set to 30 s
Companding Type is A-law
Region Tone is set for GR
Station name None, Station number None
Translation profile (Incoming):
Translation profile (Outgoing):
Voice class called number pool:
lpcor (Incoming):
lpcor (Outgoing):
A_SITErouter#sh voice port 1/0/6
Foreign Exchange Station 1/0/6 Slot is 1, Sub-unit is 0, Port is 6
Type of VoicePort is FXS
Operation State is UP
Administrative State is UP
No Interface Down Failure
Description is not set
Noise Regeneration is enabled
Non Linear Processing is enabled
Non Linear Mute is disabled
Non Linear Threshold is -21 dB
Music On Hold Threshold is Set to -38 dBm
In Gain is Set to 0 dB
Out Attenuation is Set to 3 dB
Echo Cancellation is enabled
Echo Cancellation NLP mute is disabled
Echo Cancellation NLP threshold is -21 dB
Echo Cancel Coverage is set to 128 ms
Echo Cancel worst case ERL is set to 6 dB
Playout-delay Mode is set to adaptive
Playout-delay Nominal is set to 60 ms
Playout-delay Maximum is set to 1000 ms
Playout-delay Minimum mode is set to default, value 40 ms
Playout-delay Fax is set to 300 ms
Connection Mode is normal
Connection Number is not set
Initial Time Out is set to 15 s
Interdigit Time Out is set to 10 s
Call Disconnect Time Out is set to 60 s
Supervisory Disconnect Time Out is set to 750 ms
Ringing Time Out is set to infinity
Wait Release Time Out is set to 30 s
Companding Type is u-law
Region Tone is set for GR
Analog Info Follows:
Currently processing Voice
Maintenance Mode Set to None (not in mtc mode)
Number of signaling protocol errors are 0
Impedance is set to 600r Ohm
Station name None, Station number None
Caller ID Info Follows:
Standard BELLCORE
Output attenuation is set to 14 dB
Caller ID is transmitted after 1 ring(s)
Translation profile (Incoming):
Translation profile (Outgoing):
Voice card specific Info Follows:
Signal Type is loopStart
Ring Frequency is 25 Hz
Hook Status is Off Hook
Ring Active Status is inactive
Ring Ground Status is inactive
Tip Ground Status is inactive
Digit Duration Timing is set to 100 ms
InterDigit Duration Timing is set to 100 ms
Hookflash-in Timing is set to max=500 ms, min=0 ms
Hookflash-out Timing is set to 400 ms
No disconnect acknowledge
Ring Cadence is defined by CPTone Selection
Ring Cadence are [10 40] * 100 msec
Ringer Equivalence Number is set to 1
A_SITErouter#Guys any ideas? Do you need extra debug output?
Thank you. -
Help needed on Servlets and JSTL
Hi
I am using tomcat 5.5 and JDK 1.5. What are the softwares I have to download for compiling servlets and creating JSTL ?. Help needed.
Thanks
IndyaRajaI tried compling servlet, but it is raising error
that coul not find package javax.servletWhat I did not mention... you need to add those JARs in the Classpath explicitly. You will find them in %TOMCAT_HOME%\common\lib. You atleast need to add servlet-api.jar to your Classpath. :) -
Some help needed with initWithNibName and UITableViewCell
Hiya guys, been going at this for a few hours now and came to the conclusion I can use a helping hand.
*Here's the .m file* http://thepreciousyears.com/web/MainViewController.m
The jist of the issue is I have a table view that has custom cells, each individual cell calls its respected detail view from separate nib files. This is working as expected.
In the CustomCell I used IB and setup custom IBOutlets as you'll see in the code. I got this working fine.
The issue is I can't seem to figure out how to give each cell its own respective title/author/date/image. If you look at the above code you'll see that title/author/date/image will repeat.
Any help would be appreciated!
Cheers!// tell our table what kind of cell to use and its title for the given row
- (UITableViewCell *) tableView:(UITableView *) tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
// Define CellIdentifier @"customCell"
// ** make sure the expansion of kCellIdentifier is entered under InfoViewCustomCell Attributes in IB
InfoViewCustomCell *cell = (InfoViewCustomCell *)[tableView dequeueReusableCellWithIdentifier:kCellIdentifier];
if (cell == nil)
// ** this line isn't doing anything except making a memory leak
// cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:kCellIdentifier] autorelease];
cell = [[[NSBundle mainBundle] loadNibNamed:@"InfoViewCustomCell" owner:nil options:nil] objectAtIndex:0];
// ** be careful about hard coding a zero index in the above nib array; that index can be version dependent
// ** (e.g. it could be one)--it's safer to take the last element of the array or even to walk the array
// ** to find an object of the expected class.
// ** the next four lines are setting the properties of each cell to the same info,
// ** so we would certainly expect each cell to display the same text and image
[[cell articleName]setText:@"Article1"];
[[cell authorName]setText:@"John Doe"];
[[cell date]setText:@"June 21st, 2009"];
[[cell image]setImage:[UIImage imageNamed:@"test.jpg"]];
// ** this is the kind of statement which would populate each cell with different
// ** text, since the text selection is based on the row:
//cell.textLabel.text = [[self.infoTableData objectAtIndex:indexPath.row] objectForKey:kTitleKey];
// ** thus the above four lines should be implemented something like this:
// ** NSDictionary *rowData = [self.infoTableData objectAtIndex:indexPath.row];
// ** [[cell articleName] setText:[rowData objectForKey:kTitleKey]];
// ** [[cell authorName] setText:[rowData objectForKey:kAuthorKey]];
// ** etc.
return cell;
Hope the above is helpful. I haven't run the recommended code in a test bed yet, so please don't be surprised if I made a typo. If there are bugs you can't find right away, just let me know. I'm running very similar code in several projects, so any glitches should be very easy to fix.
- Ray -
Help needed with footers and shrinking text
Hi Guys
I got a report that I want to print conditional headers and footers for. When I specify that I only want a foooter to appear on the last page, I get REP-1216 error, I checked out Metalink and followed a note on how to get around it but I'm having no joy. Can anyone help me out? I also want to make certain bits of the header and footer visible depending on a value retrieved from the report query only I get REP-1314 saying that my format trigger referencesa column at the wrong frequency. I know the value is in another frame but how do I make this value available in the margin so that the formatting will work?
Also, I want to be able to shrink some lines of an address if it has a null value at runtime e.g
My House
First Address Line
Second Address Line
<Null>
Post Code
I want to format it so that it appears as:
My House
First Address Line
Second Address Line
Post Code
I really appreciate if someone could help me out as always this is very urgent!
Many thanks
CiaranHi Ciaran,
I only want a foooter to appear on the last page
I am quoting from Note 1017067.102 on Metalink (REP-1216 when running report with field in margin) - you might have already seen this note...
Objects in the margin region are restarted on every physical page. As a
result, not all print condition types make sense for margin objects. Because
objects are restarted on every page, it is as if you are always on the first
page of the object.
The print condition FIRST is the same as the print condition ALL.
The print conditions LAST and ALL BUT LAST are invalid because "LAST" is never
reached.
The print condition ALL BUT FIRST causes the object to never appear because
the object never goes beyond "FIRST" page.
Thus, the only valid print conditions for the object are FIRST and ALL.
also want to make certain bits of the header and footer visible depending on a value retrieved from the report queryYou can use conditional formatting / format trigger only for objects that are in the same group in the data model. For example, you can reference employee_id in the format trigger of employee_name if they are in the same group. In your header / footer Format Trigger, you can reference only report-level columns. So if you can make your column to appear at the report level (outside of any group), you may be able to reference it from the header / footer.
want to be able to shrink some lines of an address if it has a null value at runtime You may be able to use Anchors. See Builder Help for more information and examples.
Navneet. -
Help needed with flash and web service call
Hi all,
I need some help with web services and flash. I'm very new to flash, so please have that in the back of your mind when reading this :-)
I've got a .swf file, and I would like to display a number received from a web service (using adobe flash professional cs5). Ive added the web service and provided the WSDL, but when i try to "Add Method Call", nothing happens. Why? What am I doing wrong?
Hope someone can helpstart with the button that causes the text to be displayed. find what it does (which may not be easy because most templates are coded by novice or intermediate level coders) and follow that trail to the text. (note: the text may be in a txt or xml file that's loaded.)
to have a button release open a file, use:
yourbtn.onRelease=function(){
getURL("http://www.adobe.com"); -
Help need to solve in calculating the grades of students
select * from std where cno = 'CS 130' and csno= 2 and sfname='Yvonne';
SFNAME SLNAME CNO CSNO AC MARKS
Yvonne Williams CS 130 2 PA 77
Yvonne Williams CS 130 2 QZ 92
Yvonne Williams CS 130 2 QZ 76
Yvonne Williams CS 130 2 QZ 99
Yvonne Williams CS 130 2 QZ 99
Yvonne Williams CS 130 2 HW 92
Yvonne Williams CS 130 2 HW 91
Yvonne Williams CS 130 2 HW 74
Yvonne Williams CS 130 2 HW 74
Yvonne Williams CS 130 2 Mi 92
Yvonne Williams CS 130 2 Fi 77
11 rows selected.
Select * from gpol where cno = 'CS 130' and csno= 2;
CNO CSNO GP PTAKEN D
CS 130 2 Final Exam 30
CS 130 2 Homework 20 Y
CS 130 2 Midterm Exam 20
CS 130 2 Participation 10
CS 130 2 Quiz 20 Y
here D= drop lowest. PTAKEN is the percentage taken. According to these 2 tables I have to drop the lowest score in HW and QZ and find the average of the remaining scores. After that according to the grading policy I have to calculate the grade points. Like this there are many courses and different grading policies.
Any help is really appreciated.
Thanks
SmithaHi Hoek and Frank,
Thnks for ur replies. I tried Hoek method also. It didn't work. let me tell u in detail with giving information about the tables used here. Plz hav pateince 2 read it.
1) create table student (
ID varchar2(7) not null,
sfname varchar2(20) not null,
slname varchar2(20) not null,
constraint id_pk primary key (ID)
I'm just displaying a part of output here
SQL> select * from student;
ID SFNAME SLNAME
CS00000 Jeff Runyan
CS00001 J. Landry
CS00002 Laetia Ension
CS00003 Z.A. Scrittorale
CS00004 Sarah Wilson
CS00005 Irv Dalvi
CS00006 Daniel Wicelinski
CS00007 Michael Carcia
CS00008 Roy Limate
CS00009 J. Segall
CS00010 Gerard Biers
2) create table section (
cno char(6) not null,
csno number(1) not null
check (csno<10),
slno char(3) not null
constraint sec_pk primary key (slno),
constraint cn_uk unique (cno, csno)
SQL> select * from section;
CNO CSNO SLN
CS 10 2 000
CS 20 2 001
CS 20 4 002
CS 20 7 003
CS 20 8 004
CS 25 1 005
CS 25 2 006
CS 25 3 007
CS 25 4 008
CS 25 5 009
CS 25 6 010
3) create table course (
cno char(6) not null,
descript varchar(40) not null,
cost number(8,2),
prereq char(6),
credit number(1) default '3' not null,
constraint cn_pk primary key (cno)
SQL> select * from course;
CNO DESCRIPT COST PREREQ CREDIT
CS 10 DP Overview 1195 3
CS 20 Intro to Computers 1195 3
CS 25 Intro to Programming 1195 CS 140 3
CS 80 Structured Programming Techniques 1595 CS 20 3
CS 100 Hands, On Windows 1195 CS 20 3
CS 120 Intro to Java Programming 1195 CS 80 3
CS 122 Intermediate Java Programming 1195 CS 120 3
CS 124 Advanced Java Programming 1195 CS 122 3
CS 125 JDeveloper 1195 CS 122 3
CS 130 Intro to Unix 1195 CS 20 3
CS 132 Basics of Unix Admin 1195 CS 130 3
4) create table activity (
AID char(2) not null,
activity varchar2(7) not null
check (activity in ('Final', 'Midterm', 'Project', 'PA', 'PA_1', 'PA_2', 'PA_3', 'PA_4’, 'PA_5', 'PA_6', 'PA_7', 'PA_8', 'PA_9', 'PA_10', 'PA_11', 'PA_12', 'HW', 'HW_1', 'HW_2', 'HW_3', 'HW_4', 'HW_5', 'HW_6', 'HW_7', 'HW_8’,
'HW_9', 'HW_10', 'QZ', 'QZ_1', 'QZ_2', 'QZ_3', 'QZ_4')),
constraint aid_pk primary key (AID)
AI ACTIVIT
00 Midterm
01 Project
02 QZ
03 QZ_1
04 QZ_2
05 QZ_3
06 QZ_4
07 PA
08 PA_1
09 PA_2
10 PA_3
5) create table studentrecord (
ID varchar2(7) not null,
slno char(3) not null,
aid char(2) not null,
marks number(3) not null
check (marks <= 100),
constraint idsr_fk foreign key (ID)
references student (ID) on delete set null,
constraint slsr_fk foreign key (slno)
references section (slno) on delete set null,
constraint aidsr_fk foreign key (AID)
references activity (AID) on delete set null
SQL> select * from studentrecor
ID SLN AI MARKS
CS00000 000 07 91
CS00000 000 03 76
CS00000 000 04 90
CS00000 000 05 83
CS00000 000 06 73
CS00000 000 21 76
CS00000 000 22 75
CS00000 000 23 98
CS00000 000 24 98
CS00000 000 00 76
CS00000 000 31 91
ID SLN AI MARKS
CS00001 001 07 91
CS00001 001 03 76
CS00001 001 04 90
CS00001 001 05 83
CS00001 001 06 73
CS00001 001 21 76
CS00001 001 22 75
CS00001 001 23 98
CS00001 001 24 98
CS00001 001 00 76
CS00001 001 31 91
Now I created a view based on these tables as
CREATE OR REPLACE VIEW std AS
SELECT sfname, slname, section.cno, csno, substr (activity, 1, 2) as activity, marks FROM student, studentrecord, section, course, activity WHERE student.id= studentrecord.id and studentrecord.slno = section.slno and section.cno = course.cno and studentrecord.aid = activity.aid ;
6) create table gp (
gpno char(2) not null,
gp varchar2(13) not null
check (gp in ('Final Exam', 'Midterm Exam', 'Project', 'Participation', 'Quiz', 'Homework')),
constraint g_pk primary key (gpno)
GP GP
00 Participation
01 Project
02 Final Exam
03 Midterm Exam
04 Quiz
05 Homework
7) create table gpcourse (
slno char(3) not null,
gpno char(2) not null,
ptaken number(3) not null
check(ptaken <=100),
dropl char(1)
check (dropl in (‘Y’)),
constraint s_fk foreign key (slno)
references section (slno) on delete set null,
constraint g_fk foreign key (gpno)
references gp (gpno) on delete set null
SQL> select * from gpc
SLN GP PTAKEN D
000 02 30
000 05 20 Y
000 03 20
000 00 10
000 04 20 Y
001 02 30
001 05 20 Y
001 03 20
001 00 10
001 04 20 Y
002 00 25 Y
SLN GP PTAKEN D
002 01 75
003 02 60
003 03 40
004 02 60
004 03 40
005 02 50
005 05 10 Y
005 03 25
005 00 5
005 04 10
006 02 30
Now i created one more view
CREATE OR REPLACE VIEW gpol AS
SELECT section.cno, csno, gp, ptaken, dropl FROM gp, gpcourse, section, course WHERE gpcourse.slno= section.slno and section.cno= course.cno and
gp.gpno = gpcourse.gpno;
Now let me know where I'm going wrong?
Maybe you are looking for
-
With Leopard, waking my Powerbook it may crash and restart.
Every time I put my laptop to sleep and try to wake it up, it is a crap shoot if it will wake up or just crash and completely re-start. This is beyond frustrating, this is aggravating and I would rather have tiger back. Least it works. And I won't be
-
What is the best way to get multiple authorisors to sign a pdf form in the same meeting on a single pc or tablet?
-
Hi Guys, I have to work and configure the scenario from Websrvices to SAP. Can anyone let me know the process and steps to setup / Configure the scenario for Web services --> RFC. Thanks a lot in Advance. Regards, Kittu.
-
There were no results for If i buy locked iphone 5s( verizon) from usa can i use it in india ..and when i buy this ph is this mandatory that i have to choose the carrier plan....and one more qs after unlocking still the warenty is valid..plzz tell me
-
Resync tables without Datapump
There are some data differences between streams source db and replicated db side. What are the best possible methods available for sync?