Hi ,
i have the following code :
-(void)loadVersionDataToTable: (int)versionIndex{
OptimizationReportDate* datedVersions = [self.optimizationReport.datedResults objectAtIndex:0];
ReportDateVersion* version = [datedVersions.versions objectAtIndex:versionIndex];
ReportDateVersionSegment *seg = [version.versionSegments objectAtIndex:0];
NSString* command = (@"loadRevenueTable( %@ , %@ , %@ , %@ , %@ , %@ , %@ , %@ )",
(@"%@",[seg.values objectForKey:@"PageRequest"]),
(@"%@",[seg.values objectForKey:@"PageDisplay"]),
(@"%@",[seg.values objectForKey:@"Completions"]),
(@"%@",[seg.values objectForKey:@"CR"]),
(@"%@",[seg.values objectForKey:@"VistisGeneratingRevenue"]),
(@"%@",[seg.values objectForKey:@"RPV"]),
(@"%@",[seg.values objectForKey:@"AOV"]),
(@"%@",[seg.values objectForKey:@"TotalRevenue"]));
NSLog(@"loadRevenueTable( %@ , %@ , %@ , %@ , %@ , %@ , %@ , %@ )",
(@"%@",[seg.values objectForKey:@"PageRequest"]),
(@"%@",[seg.values objectForKey:@"PageDisplay"]),
(@"%@",[seg.values objectForKey:@"Completions"]),
(@"%@",[seg.values objectForKey:@"CR"]),
(@"%@",[seg.values objectForKey:@"VistisGeneratingRevenue"]),
(@"%@",[seg.values objectForKey:@"RPV"]),
(@"%@",[seg.values objectForKey:@"AOV"]),
(@"%@",[seg.values objectForKey:@"TotalRevenue"]));
[webView stringByEvaluatingJavaScriptFromString:command];
}
the nslog command prints out a the desired output of a call to the function with the right properties while the command property is assigned the last values from the retreived from the nsdictionary (the values property is a nsdictionary) this is driving me nuts ?? anyone ? the order of the log and nsstring* command does not matter also .