[ipad] SplitView and passing value to DetailViewController
Sorry for my english
i'm creating a Splitview project
in my RootViewController i have a table view
that when use didSelectRowAtIndexPath load another one tableview with WithNibName method;
When i try to pass a value from a selected cell to the detailview doesn't work without error;
to test i try to pass value to detailview from second table loading it as first one table in pop control and it work;
what am i forgetting?
I attached You my project
First table is loaded from RootViewController class
Second one form SecondTable class
and the DetailView from DetailViewController
thanks....
www.emanueleferrari.it/test.zip
Hi Emanuele, and welcome to the Dev Forum!
bolco wrote:
When i try to pass a value from a selected cell to the detailview doesn't work without error;
I don't have an iPad dev environment right now, so can't run your project, but here are some suggestions that might lead you in the right direction:
Since the transition between the RootViewController and the SecondTable controller object is working correctly under your split view controller, I don't see why the transition from the SecondTable controller object to the DetailViewController object should be different. So try something like this:
// SecondTable.m
#import "DetailViewController.h"
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// ricaviamo il link dell'elemento selezionato
NSString *link = [[elencoFeed objectAtIndex:indexPath.row] objectForKey: @"link"];
NSLog(@"%s: link=%@", _func_, link);
// ripiliamo il link da spazi, return e tabs
link = [link stringByReplacingOccurrencesOfString:@" " withString:@""];
link = [link stringByReplacingOccurrencesOfString:@"
" withString:@""];
link = [link stringByReplacingOccurrencesOfString:@" " withString:@""];
NSLog(@"%s: link=%@", _func_, link);
// apriamo la nuova vista
DetailViewController *dvController = [[DetailViewController alloc]
initWithNibName:@"DetailView" bundle:[NSBundle mainBundle]];
dvController.detailItem = link;
[self.navigationController pushViewController:dvController animated:YES];
[dvController release];
I removed the alert view code to simplify things, and I would recommend leaving it out until you get the above, basic transition working correctly.
Are you presenting the alert view so the user can decide whether or not the detail view should be opened? If so, you might want something like this:
// SecondTable.m
#import "DetailViewController.h"
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// ricaviamo il link dell'elemento selezionato
// ripiliamo il link da spazi, return e tabs
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:link message:@"Your description"
delegate:self cancelButtonTitle:@"No" otherButtonTitles:@"Yes", nil];
[alert show];
[alert release];
- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex {
if (buttonIndex == 1) {
// apriamo la nuova vista
DetailViewController *dvController = [[DetailViewController alloc]
initWithNibName:@"DetailView" bundle:[NSBundle mainBundle]];
dvController.detailItem = alertView.title;
[self.navigationController pushViewController:dvController animated:YES];
[dvController release];
The code which brings up the detail view is placed in the alert view delegate method because the main thread isn't suspended after [alert show]. Note the link which must be passed to the detail view has been saved in the 'title' property of the alert view, so it's already available in the alert view delegate method.
- Ray
Similar Messages
-
Query from the data abse and pass values to a pdf form
query from the data abse and pass values to a pdf form
Hello
Hello i have this html report that i have written to output a
report.
now, i am assigned to pass the same fields to a pdf form so
the fields in the adaobe form can be populated or the term
Pre-populate the form.
can anyone help me get started.
first i would like to know if it can be done.
second, what do i need to get started (tools )
third how do i do this.
i am really lost at this point.
can anyone give me tips in how to approach this
subject??It can be one using Adobe Acrobat Designer which is packaged
with Acrobat
Professional Pro 7. It uses all XML to create and populate
forms.
If you had the time, you can also create <cfdocument
type="pdf"> to have
them ready and just pass the info to it so it autogenerates
the PDF on the
fly. -
Open a web page and pass values from a java file
Hi,
I need to open a web page and pass values in the text boxes.
Finally submit needs to be triggered. All this needs to be done from a java file. i.e instead of entering my values in a web page and submit, i need to do it from my java file..
Any inputs so that I proceed in the right direction..or is there any alternate way to achive this ??
Thanks in advance..
SidI hava found a lines of jaa that can open a URL , lets say www.net.java
You can open it writable or not.
It is half of the job you need.
If you are interested.
I am wrinting a program to print a URL , and have developed this small
code.
Angel Portal -
Navigate between 2 reports and pass values between 2 different columns
Hello
I have a question about navigating from 1 report to another while passing the value from column 1 to column 2 in the second report...
In OBIEE 11G, I create action link on report 1, column 1 and this action link is navigate to BI Content and the destination is report 2. Now report 2 has column 2, which is an alias of column 1 from report 1, from user's point of view they are the same, but from OBIEE point of view they are different.
My action link is able to navigate to report 2, however, the value in column 1 which I clicked to execute the navigation, does not get passed to column 2 in report 2..
Is there a way around this issue?
Let me know if I need to provide more clarification
ThanksThank you Anirban
I think this is the best solution you just provided.The current post and the post at below looks same
Navigate from report to dashboard and pass values between different column
is it not answered?
Thanks :)
Edited by: Srini VEERAVALLI on May 7, 2013 3:07 PM -
Calling a report and passing values!!
Hi Experts,
i have a requirement. I have a report [zrep1] with billing doc field and shipment field on the selection screen.
The logic for billing document is written. Im writing logic for shipment numbers. I am finding the billing documents of delivaries for each shipment.
I want to pass those billing documents as input to the same report program [zrep1] for the existing billing document code to get the output.
How to call the same report and pass the values from internal table as input to it.
Please suggest the way to proceed. i knw it is possible.
Thanks in advance.
Edited by: Craig Cmehil on Jul 3, 2008 3:30 PMHello,
Try this:
The program report1 has a stand-alone selection screen with the screen number 1100. In the program report2, an internal table with row type RSPARAMS and a ranges table are filled for this selection screen. These are transferred at SUBMIT together with a single condition.
Program accessed
REPORT report1.
DATA text TYPE c LENGTH 10.
SELECTION-SCREEN BEGIN OF SCREEN 1100.
SELECT-OPTIONS: selcrit1 FOR text,
selcrit2 FOR text.
SELECTION-SCREEN END OF SCREEN 1100.
Calling program
REPORT report2.
DATA: text TYPE c LENGTH 10,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF text,
range_line LIKE LINE OF range_tab.
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'H'.
APPEND range_line TO range_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'K'.
APPEND range_line TO range_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
Regards. -
Hierarchal Columns and Passing Values to a Detail Report (Action Links)
I have a question in OBIEE 11.1.1.5 around Hierarchal Columns and passing the values to a detail report. I have create a report with a Hierarchal column (Two Levels only), Month Column and a metric.
I created a detail report and see both columns used in the hierarchy to "is Prompted" as well as the Month column.
On the Summary report I put an Action Link on the Metric to navigate to this Detail Report. When I select the metric I see that the Month value gets passed to the Detail Report but none of the Hierarchal columns have been passed at all.
When I replace the hierarchal column with just the two columns, the values get passed fine.
Is this a known issue with Hierarchal columns? Is this functionality even available?
ThanksI am assuming then that no one has attempted this on the forum?
-
How to import values from txt and pass values to variables
I need to export some variables from Indesign and import them in Illustrator. I can export a txt file from InDesign but I don't know how to import and pass the values to variables in Illustrator.
Can someone help?Well from you ID script Im presuming that you are simply writing a few lines of info to a plain text file like so…
writeFile('SomeData');
writeFile('AnotherData');
writeFile('LastData');
function writeFile(info) {
try {
var log = File('~/Desktop/ID_Data.txt');
log.open('a');
log.write(info + '\r');
log.close()
catch (e) {
alert(e);
So you would just read this back where or when ever you need to use it in your Illustrator script…
var log = File('~/Desktop/ID_Data.txt');
log.open('r');
var a = log.readln();
var b = log.readln();
var c = log.readln();
log.close();
alert(a); -
Open SAP window from browser and pass values
Hi,
I am developing JSP application and I want to open and pass some values to mm03. Is there any possible way to do this .Hi,
You will need to do a function module with a bdc to call MM03.
Then you can pass the parameters to the function module and run MM03. -
How to call one Main MXML from another main MXML file and pass values between them?
Hi,
I am trying to populate a datagrid from a XML file ,which I have done successful
I am able to get data out of the datagrid on clicking on any element
Now when I click on any element in datagrid I want call a new mxml file which is also have Aplication tag and I want to pass that value of clicked element to it
This is the code I am using for getting data from XML into data grid in 1st MXML file and the XML file used.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" initialize="exp.send()">
<fx:Declarations>
<s:HTTPService id="exp" url="expLab1.xml" result="
resultHandlerQuestionBar(event)"/>
</fx:Declarations>
<s:Panel x="74" y="218" width="485" height="333" title="Work On Configured Experiments" id="p1" fontSize="14" chromeColor="#9BFDAB" dropShadowVisible="false" contentBackgroundColor="#E4EEE6" contentBackgroundAlpha="1.0" backgroundColor="#67B6AC" textAlign="left">
<mx:DataGrid x="35" y="33" width="338" height="88" dataProvider="{experimentdetails}" chromeColor="#FCFCFC" contentBackgroundColor="#FFFFFF" selectionColor="#FAFBFD" rollOverColor="#FCFDFF" focusColor="#FCFDFD" itemClick="onItemClick( event );">
<mx:columns>
<mx:DataGridColumn id="j1" dataField="experimentName" headerText="" itemRenderer="jaya">
</mx:DataGridColumn>
</mx:columns>
</mx:DataGrid>
</s:Panel>
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.events.FlexEvent;
import mx.events.ListEvent;
import mx.rpc.events.ResultEvent;
[Bindable]
private var workbenchname:ArrayCollection;
//private var a:String;
private function resultHandlerQuestionBar(event:ResultEvent):void
experimentdetails=event.result.List.experimentList.experiment;
[Bindable]
private var experimentdetails:ArrayCollection;
private var alert:Alert;
private var data:String;
private function onItemClick( e:ListEvent ):void {
data= experimentdetails.getItemAt(e.rowIndex).experimentName.toString();
alert=Alert.show(experimentdetails.getItemAt(e.rowIndex).experimentName.toString());
]]>
</fx:Script>
</s:Application>
and the xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<List>
<workbench>Basic Movement</workbench>
<experimentList>
<experiment>
<experimentName>Distance with varying time</experimentName>
<Rating>2</Rating>
<expNO>1</expNO>
</experiment>
<experiment>
<experimentName>Distance with Constant time</experimentName>
<Rating>1</Rating>
<expNO>2</expNO>
</experiment>
<experiment>
<experimentName>Time taken while decelerating</experimentName>
<Rating>3</Rating>
<expNO>3</expNO>
</experiment>
</experimentList>
</List>
Now the code for 2nd MXML is as follows
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:Label text="lable1" >
</s:Label>
</s:Application>Check out ExternalInterface class:
http://livedocs.adobe.com/flex/3/html/help.html?content=passingarguments_2.html
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
www.ChikaraDev.com
Flex Training and Support Services -
Execute InfoPackage in ABAP program and Pass Values at runtime
Hi All,
I want to execute an InfoPackage in an ABAP program. I am looking to execute the Infopackage in a loop passing in different values to 0FISCPER under Data Selection tab in the InfoPackage at run time. Please help. I would appreciate if someone has code.
Thanks.
Regards,
bw_newbieyou can do the same thing with routine in data selection. why do you want to do it with ABAP Program? any specific Reason?
You can achive this using BAPI_IPAK_START and BAPI_IPAK_CHANGE FM in ABAP Program.
You need to pass Fiscal Period values in BAPI_IPAK_CHANGE FM.
Nagesh Ganisetti.
Assign points if it helps. -
Adding New Field and Passing Values Between Screens
In the Oracle Projects Create Project screen, I've been asked to add a new LOV for Organization (LOV copied from a subsequent page) - and then pass the selected value to the next page and default in the value based on the selection on the first page.
I understand I'll be modifying the first page's XML to add the new LOV, but how can I get the second page to recognize the value selected on the first page? Do I need to pass this as a parameter?
Thanks in advance for your help!Thanks - I understand that the CO should not be extended, and other posts in this forum mention that the AM should not be extended either.
What is the recommended extension path in a scenario like the one I describe above (adding a field to a seeded page and trying to pass it to the second page)?
Sorry for all the questions - I couldn't find this scenario described elsewhere in the forums! -
Js-confirm box with request and passing value: incorrect url
Hi folks!
Scenario: User clicks on link-column field in tablular form, Confirm box pops up with a confirmation message, with "OK" generates a request and should pass a value from the form into an item for further processing.
The URL in the column link as of now looks like that:
javascript: apex.confirm("message goes here...", {request:"EQDONE", set:{"P2100_X": "#EQMID#"}});For some reason just nothing happens. When I omit the "javascript:", I get an unvalid-url error message. But if I change the procedure name, shoudln't I get some error message also?
Please tell me what's wrong. Thank you! :)Hmm... Ok, makes sense... a little.
The use of (in my case) #EQMID# works, if the target is not URL but "Page in App", and you use the Column Link Dialog fields "Name" and "Value", but maybe because at this point it gets renderes into html and not when called from a javaScript function? Thats how I understand it now.
However: I have just looked into the html-sourcecode. The java Script call IS actually fully rendered with the corrosponding IDs.
This is a sample of one table row:
<tr class="even"><td align="left" headers="Erfasst">13.08.2012</td><td align="left" headers="KundenNr">4784668</td><td align="left"
headers="Kontrolle">XML-Abrechnung - Abrechnungsart überprüfen bei KundenNr: 4784668</td><td align="left" headers="Details">TD, STEWEAGSTEG_LF:
Papier+Archiv (GK)</td><td align="left" headers="Ausnahme bis">-</td><td align="left" headers="bearbeitet von">-</td><td align="center" headers=
"'ERLEDIGT'"><a href="javascript: apex.confirm("message goes here...", {request:"EQDONE", set:{"P2100_X": "34"}});" ><img src="wwv_flow_file_mgr.get_file?
p_security_group_id=6519817386341009&p_flow_id=150&p_fname=ausnahmeBtn_check.png" alt="" title="Fehlerhaften Verrechnungstyp im SDK-PS ausbessern
und Eintrag als erledigt kennzeichnen."></a></td><td align="center" headers="'AUSNAHMEREGELUNG'"><a href="f?p=150:2100:1212226464451606:EINGAU
SNAHME:NO::P2100_KUNU_AUSNAHME,P2100_EQMID,P2100_DATEPICK_AUSN:4784668,34," ><img src="wwv_flow_file_mgr.get_file?p_security_group_id=
6519817386341009&p_flow_id=150&p_fname=ausnahmeBtn.jpg" alt="" title="Diesen Kunden als Ausnahmeregelung bis zu vorgegebenem Datum deklarieren.">
</a></td></tr>The set statement containe the correct ID in each row! Here 34.
So, according to http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/javascript_api.htm#AEAPI274 , it should work.
Anyway, I will try your suggestion using the fnn array.
Edited by: tpetri on 16.08.2012 08:34 -
Navigate from report to dashboard and pass values between different column
Hello
I have a question about navigating from 1 report to a dashboard page while passing the value from column 1 to column 2 in the second report...
In OBIEE 11G, I create action link on report 1, column 1 and this action link is navigate to BI Content and the destination is a dashboard page, which has column 2 used as dashboard prompt and there are 3 reports all use column 2 to filter. Now the column 2 in the dashboard page is an alias of column 1 from report 1, from user's point of view they are the same, but from OBIEE point of view they are different.
My action link is able to navigate to dashboard, however, the value in column 1 which I clicked to execute the navigation, does not get passed to column 2 as the dashboard prompt doesn't get this value upon navigation..
Since I can't put column 1 in dashboard 2 nor can I put column 2 in report 1. Because our data model is done in the way that if I use column 1 or column 2 in both places, it will be circular joins...
Is there a way around this issue?
Let me know if I need to provide more clarification
ThanksSid
Here is the thing..
Let's say we have Dimension 1, dimension 2 and fact 1 and fact 2
In one report, you need to show Dimension 2 and fact 1 so Dimension 2 joins to fact 1.
In some other cases, you need to shown dimension 1 and fact 2 stuffs, but dimension 1 can't get to fact 2 without going through dimension 2. So Dim 1 --> Dim 2 --> Fact 2
Then in some other cases, you need to show Dim 1 and Fact 1 reports..
In means, your model will look at:
Dim1 --> DIm2 and Dim 1 --> Fact 1 and Dim 2 --> Fact 1.. This is just a simpler version of a much more complex model that I am dealing with now..
So in this case, you can't just use Dim 1 attributes across the board. For some dashboards, you will have to create alias of Dim 1, call it A1_Dim1, un-join Dim1 with Dim 2 or to fact 1 to avoid circular joins... Then in different reports, you either use columns from Dim 1 or A1_Dim1..
Now Dim1 and A1_DIM1 are really the same thing, but they are not according to OBIEE...
So my problem is, in report 1 where Dim1 is used, it can't past values to Dashboard 2 where A1_DIM1 is used as dashboard prompt..
I want to know if there is a way around this issue
Hope this makes more sense now
Thanks -
Handling the return values and passing values to a dialog
Dear all,
I am trying to return values from a dialog to a page.
I am following a tutorial:
http://www.oracle.com/technology/products/jdev/101/howtos/adfdialog/index.html
its okey, but I couldnt understand the following code:
public void handleReturn(ReturnEvent event)
if (event.getReturnValue() != null)
Customer cst;
String name;
String psw;
cst = (Customer)event.getReturnValue();
CustomerList.getCustomers().add(cst);
name = cst.getFirstName();
psw = cst.getPassword();
inputText1.setSubmittedValue(null);
inputText1.setValue(name);
inputText2.setSubmittedValue(null);
inputText2.setValue(psw);
please help me what are these variables?
that I could be able to map with me own.
Regards:
Muhammad Nadeem
[email protected]If you look further down on the tutorial, you will notice that these values are set in the dialog done() and cancel() actionListeners. Similarly, you will return your own object(s) when calling returnFromProcess() - see the done() method.
Regards,
Nick -
Submit page and pass value at the same time
Hi All,
I have a tabular form on EMP table. The SQL query for the form is:
SELECT empno, ename, sal
FROM emp
WHERE deptno = :P0_DEPTNO
On the form, I have three buttons labelled as dept10, dept20 and dept30. I want to achieve the following when I press a button:
1. Submit the page.
2. Value of :P0_DEPTNO is set according to the button pressed.
I am able to achieve only one of the above at a time. How can I achieve both at the same time.
I am using Oracle 10g with Apex 4.0.
Thanks,
ZahidActually, it would be cleaner to create a single post submit PL/SQL process as follows:
BEGIN
:P0_DEPTNO := CASE :REQUEST
WHEN 'dept10' THEN value_for_dept10 button
WHEN 'dept20' THEN value_for_dept20 button
WHEN 'dept30' THEN value_for_dept30 button
END CASE;
END;Or if you want to set P0_DEPTNO to the name of the button, then just
:P0_DEPTNO := :REQUEST;
Maybe you are looking for
-
Everytime I try to watch a tv show on my itunes i GET A MESSAGE THAT MY COMPUTER IS NOT AUTHORIZED. iT IS AUTHORIZED.
-
Hi everyone I need help? I bought my MacBook pro 17" in may 2012 and I've only used it for iTunes and to surf the net. I gathered that I wasn't really using it to its full potential. I'm selling it now and wanted to restore it. I think I've pressed c
-
Importing selected photos from Digital Camera
More than a question, this is a suggestion to the Apple developers of the iPhoto software. There are two options or tools I would really appreciate to have in my iPhoto version 5.0.4 1. Ability to import selected photos from my digital camera or memo
-
Hi All, I've got the following code: var currentStateIndex:int = 0; for (var index:int in this.states){ if(this.currentState == this.states[index].name){ currentStateIndex = index; break; I'm trying to identify the index of t
-
"Ethernet Cable Not Connected" Huh?
I have a dual 10.3 450 G4 that I rarely connect to the internet. I kept getting the wrong date and time so I changed the battery. Now the monitor display keeps resetting to the wrong size and I keep getting the message the "Ethernet Cable not connect