Passing text data

The web page loading (browsing) sequence is
www.abc.com/main.html > www.abc.com/subpage1.html > www.abc.com/subpage2.html
QUESTION:
How to pass text data which is in a dynamic textbox ("I want to fly") from www.abc.com/main.html  to www.abc.com/subpage2.html

You are correct. The js function and externalinterface class. are not a problem. But how could I add (pass on) the current stiring to the next URL?
Because in my case the sring varies all the time.
www.abc.com/main/?john=111
www.abc.com/main/?peter=222
www.abc.com/main/?mathew=333
www.abc.com/main/?paul=444
What I want is;
www.abc.com/main/?peter=222  > www.abc.com/sub/?peter=222  > www.abc.com/supersub?peter=222
If you suggestion works please could you show me a code to do the following
yourURLstring = "www.xxxx.com?yourquerystringvariable="+yourquerystringvalue;

Similar Messages

  • Passing the date to a text field using DateChooser

    How can I pass the date that someone selects to a text field
    in Flash.
    AND then how can I pass the date that someone selects to a
    text field in Director using the same component?
    "selectedDate()" isn't working, plus I get "undefined" when I
    trace that...

    > Do you know why if I select the same date twice I get a
    "property not
    > found"
    > error ---- #selectedDate?
    Think you have to use on change(me) instead of mouseUp.
    To use that with the flashobject, you need to intialize the
    object once, eg
    in enterframe.
    Try the following - look out for linebreaks.
    property pSprite
    property pInit
    property pEvent
    on beginSprite(me)
    pSprite = sprite(me.spriteNum)
    pInit = false
    pEvent = 0
    end
    on enterFrame(me)
    if not(pInit) then
    pEvent = pSprite.newObject("MyDateChooser")
    pSprite.setCallBack(pEvent, "change", #change, me)
    pInit = true
    end if
    end
    on change(me)
    y = integer(sprite(1).selectedDate.getYear()) + 1900
    d = integer(sprite(1).selectedDate.getDate())
    m = integer(sprite(1).selectedDate.getMonth())+1
    member("chosenDate").text = d & "-" & m & "-"
    & y
    end
    on endSprite(me)
    pEvent = 0
    end

  • PLEASE HELP!!!  Problem with Java and SQLServer Text data type

    Hi there,
    I have a java app. that reads from an MS SQLServer database. Originally, all long text fields were declared as NVARCHAR(200). The program worked fine.
    Someone then advised that I change all long text fields to the TEXT data type. The program now crashes out with the following Exception:
    "java.sql.SQLException: [JRun][SQLServer JDBC Driver]This ResultSet can not re-read row data for column 25."
    Basically, I have a method that retrieves a resulset and iterates through it. The resultset is passed to another method during each iteration. In the example below, the 'specialNote' field used to be NVARCHAR(200). The code worked fine. Then when it was changed to TEXT, the program no longer works with the above Exception thrown.
    Anyone know any special way SQLServer TEXT data types need to be handled?
    Thanks for any advice!
    The code looks something like this in functionality:
    <CODE>
    public void method1 (Connection conn)
    Resultset rs = conn.createStatement().executeQuery("SELECT * FROM ProductBB");
    while (rs.next())
    method2(rs);
    public void method2 (ResultSet rs)
    String str = rs.getString("specialNote");
    </CODE>

    Hi JWoods,
    Thanks for the suggestion. I originally had the code do what you suggested, ie, get the resultset then retrieve the data all within the same method. The data is then used to set properties in an object.
    When I had to create another method that also retrieved a resultset but using a different primary key, then also use the returned data to set the properties in the same type of object, I didn't want to repeat the setter code. That's why I decided to pass the resultsets to the same method that did the property setting.
    Unfortunately, it stopped working with the data type change.
    Any other thoughts?

  • How to pass text in MDX query

    Hi All,
    I was wondering how to pass text in MDX query.
    Below mentioned is my sample query and it is working fine.
    SELECT
    {[Measures].members} ON AXIS(0),
    NON EMPTY [0MATERIAL].[LEVEL01].MEMBERS
    *[0DOC_NUMBER].[LEVEL01].MEMBERS ON AXIS(1)"
    FROM [$ZTEST]"
    WHERE {[0MATERIAL].[000012345]} ";      
    But in data base 000012345 consists of material name as “ Pepsi “
    Now based on Pepsi I want to fetch results? Is it possible?
    Thanks in advance.

    Srinivas,
    So you are using JAVA, if you consult the developer's guide there is a section specifically addressing your question the ResultSet API should handle this via the formatted
    <b>Retrieving Result Sets
    ResultSet API</b>
    Note that the concept allows for more than two axes, however a two-dimensional, table-like data set makes the
    example easy to illustrate. On the columns axis, two members (“Store Cost” and ”Store Sales”) of the measures
    dimension have been selected; on the rows axis, three members (“Berlin,” ”Hamburg,” and ”Munich”) of the City level
    of a geographical hierarchy. The dataset has six cells:
    Cells provide four mandatory properties:
    • Value — supports all common column types, for example:
    o numeric types
    o dates
    o time values
    o strings
    o null
    • Data type — int value describing the data-type (see java.sql.Types)
    • Status — state of the cell (for example, error or null)
    <b>• Formatted value — a string representation of value</b>
    You can retrieve text in this manner.
    Do you want to be able to pass text as if it were a value as well?
    Cheers,
    Scott

  • Trying to pass xml data to a web service

    I'm working on an Apex application that is required to pass data to a web service for loading into another (non Oracle) system. The web service expects two stings as input, the first string is simply an ID, the second string is an xml document. I generate an xml 'string' using PL/SQL in an on-submit process prior to invoking the web service. If I pass regular text for the second parameter, the web service returns an error message which is stored in the response collection and displayed on the page as expected. When I pass the the xml data, I get a no data found error and the response collection is empty. I have tried this in our development environment on Apex 3.1.2 (database version 10.2). I also tried this on our Apex 4.0.2 sandbox (with the same Oracle 10.2 database). I have found that once I have nested xml, I get the no data found message, if I pass partial xml data, I get the error response from the web service. Perhaps I am not generating the xml correctly to pass to the web service (this only just occurred to me as I write this)? Or is there an issue passing xml data from Apex to the web service? Any help will be greatly appreciated! here is the code I use to generate the xml string:
    declare
      cursor build_data  is
        select u_catt_request_buid,u_catt_request_name,u_catt_cassette_buid,u_catt_cassette_name
          ,u_project_name,u_sub_project,replace(u_nominator,'ERROR ','') u_nominator
          ,replace(replace(u_going_to_vqc,'Yes','true'),'No','false') u_going_to_vqc
          ,u_promoter,u_cds,u_terminator
          ,u_primary_trait,u_source_mat_prvd,u_pro_resistance_1,u_vector_type
          ,nvl(u_my_priority,'Medium') u_my_priority
          ,replace(replace(u_immediate_trafo,'Yes','true'),'No','false') u_immediate_trafo
          ,replace(replace(u_new_bps_cmpnt,'Yes','true'),'No','false') u_new_bps_cmpnt
          ,u_compnt_name,u_new_cmpt_desc,initcap(u_target_crop) u_target_crop,u_corn_line
          ,u_plant_selection,u_num_of_ind_events,u_num_plants_per_event,u_molecular_quality_events
          ,replace(replace(u_field,'Yes','true'),'No','false') u_field
          ,u_t1_seed_request,u_potential_phenotype,u_submission_date
          ,u_sequence_length,u_trait,u_frst_parent,u_frst_parent_vshare_id,u_cds_vshare_id
          ,constructid,cassetteid,description
        from temp_constructs_lims
        order by constructid,description;
      v_xml_info         varchar2(350);
      v_xml_header       varchar2(1000);
      v_xml_data         clob;
      v_xml_footer       varchar2(50);
      v_create_date      varchar2(10);
      v_scientist_name   v_users.full_name%type;
      v_scientist_email  v_users.email_address%type;
      v_primas_code      construct.fkprimas%type;
      v_nominator_name   v_nominators.full_name%type;
      v_file_length      number;
    begin
      -- initialize variables
      v_create_date := to_char(sysdate,'YYYY-MM-DD');
      v_xml_data := null;
      -- get name and email address
      begin
        select full_name,email_address
        into v_scientist_name,v_scientist_email
        from v_users
        where ldap_account = :F140_USER_ID; 
      exception when no_data_found then
        v_scientist_name := '';
        v_scientist_email := '';
        v_scientist_name := 'Test, Christine';
        v_scientist_email := '[email protected]';
      end;
      -- set up xml file 
      if :OWNER like '%DEV%' then
        v_xml_info := '
          <?xml version="1.0" encoding="utf-8"?>
          <exchange xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xmlns="deService"
                    xsi:schemaLocation="deService http://mycompany.com/webservices/apexdataexchange/schemas/RTPCATT.xsd">
      else
        v_xml_info := '
          <?xml version="1.0" encoding="utf-8"?>
          <exchange xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xmlns="deService"
                    xsi:schemaLocation="deService http://mycompanyprod.com/webservices/apexdataexchange/schemas/RTPCATT.xsd">
      end if;
      -- populate xml header records
      v_xml_header := '<header xmlns="">
        <stdXmlVer>2.0</stdXmlVer>
        <sendingUnit>'||:P36_UNIT_NUMBER||'</sendingUnit>
        <sendingPerson>'||v_scientist_name||'</sendingPerson>
        <notification>'||v_scientist_email||'</notification>
        <creationDate>'||v_create_date||'</creationDate>
      </header>
      <entities xmlns="">
      for rec in build_data loop
        begin
          -- get primas code for current construct
          select fkprimas
          into v_primas_code
          from construct
          where constructid = rec.constructid;
        exception when no_data_found then
          v_primas_code := null;
        end;
        begin
          -- get nominator name for current construct
          select full_name
          into v_nominator_name
          from v_nominators
          where nominator_id = rec.u_nominator;
        exception
          when no_data_found then
            v_nominator_name := null;
          when invalid_number then
            v_nominator_name := catt_pkg.full_name_from_user_id(p_user_id => rec.u_nominator);
            v_nominator_name := 'Test, Christine';
        end;
        v_xml_data := v_xml_data||'
          <Construct>
          <requestBUID>'||rec.u_catt_request_buid||'</requestBUID>
          <requestName>'||rec.u_catt_request_name||'</requestName>
          <cassetteBUID>'||rec.u_catt_cassette_buid||'</cassetteBUID>
          <cassetteName>'||rec.u_catt_cassette_name||'</cassetteName>
          <scientist>'||v_scientist_name||'</scientist>
          <projectNumber>'||v_primas_code||'</projectNumber>
          <subProject>'||rec.u_sub_project||'</subProject>
          <comments>'||rec.description||'</comments>
          <nominator>'||v_nominator_name||'</nominator>
          <goingToVqc>'||rec.u_going_to_vqc||'</goingToVqc>
          <primaryTrait>'||rec.u_primary_trait||'</primaryTrait>
          <sourceMatPrvd>'||rec.u_source_mat_prvd||'</sourceMatPrvd>
          <prokaryoticResistance>'||rec.u_pro_resistance_1||'</prokaryoticResistance>
          <vectorType>'||rec.u_vector_type||'</vectorType>
          <priority>'||rec.u_my_priority||'</priority>
          <immediateTrafo>'||rec.u_immediate_trafo||'</immediateTrafo>
          <newComponent>'||rec.u_new_bps_cmpnt||'</newComponent>
          <componentName>'||rec.u_compnt_name||'</componentName>
          <newComponentDescription>'||rec.u_new_cmpt_desc||'</newComponentDescription>
          <targetCrop>'||rec.u_target_crop||'</targetCrop>
          <Line>'||rec.u_corn_line||'</Line>
          <plantSelection>'||rec.u_plant_selection||'</plantSelection>
          <numOfIndEvents>'||rec.u_num_of_ind_events||'</numOfIndEvents>
          <numOfPlantsPerEvent>'||rec.u_num_plants_per_event||'</numOfPlantsPerEvent>
          <molecularQualityEvents>'||rec.u_molecular_quality_events||'</molecularQualityEvents>
          <toField>'||rec.u_field||'</toField>
          <potentialPhenotype>'||rec.u_potential_phenotype||'</potentialPhenotype>
          </Construct>
      end loop;
      -- complete xml data   
      v_xml_footer := '
          </entities>
        </exchange>
      -- complete submission data
      :P36_XML_SUBMISSION := null;   
      :P36_XML_SUBMISSION := v_xml_info||v_xml_header||v_xml_data||v_xml_footer;
      :P36_XML_SUBMISSION := trim(:P36_XML_SUBMISSION);
    end;Here is an example of :P36_XML_SUBMISSION:
    <?xml version="1.0" encoding="utf-8"?> <exchange xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="deService" xsi:schemaLocation="deService http://mycompany.com/webservices/apexdataexchange/schemas/RTPCATT.xsd"> <header xmlns=""> <stdXmlVer>2.0</stdXmlVer> <sendingUnit>10</sendingUnit> <sendingPerson>Test, Christine</sendingPerson> <notification>[email protected]</notification> <creationDate>2011-12-20</creationDate> </header> <entities xmlns=""> <Construct> <requestBUID>150000123</requestBUID> <requestName>AA0000123</requestName> <cassetteBUID>160000123</cassetteBUID> <cassetteName>AB000123</cassetteName> <scientist>Test, Christine</scientist> <projectNumber>T000123</projectNumber> <subProject>Discovery Plus</subProject> <comments>AA0000123 From CATT on 20-DEC-11 </comments> <nominator>Test, Christine</nominator> <goingToVqc>true</goingToVqc> <primaryTrait>promoter::intron::transit:gene::terminator</primaryTrait> <sourceMatPrvd>seed - stuff</sourceMatPrvd> <prokaryoticResistance></prokaryoticResistance> <vectorType>Plant Vector</vectorType> <priority>Medium</priority> <immediateTrafo>true</immediateTrafo> <newComponent></newComponent> <componentName>gene</componentName> <newComponentDescription>unknown function; sequence has some similarity to others</newComponentDescription> <targetCrop>Crop</targetCrop> <Line>Inbred</Line> <plantSelection>smidge ver2</plantSelection> <numOfIndEvents>6</numOfIndEvents> <numOfPlantsPerEvent>1</numOfPlantsPerEvent> <molecularQualityEvents>NA</molecularQualityEvents> <toField>true</toField> <potentialPhenotype></potentialPhenotype> </Construct> </entities> </exchange>My application page is accessed by an action from another page. The user reviews the data in a sql report region. When the use clicks on the Upload (SUBMIT) button, the xml string is generated first and then the web service is invoked. I have tried passing a simple string as the second parameter ("dummydata") and partial data in the xml string ("<sendingPerson>Test, Christine</sendingPerson>") the web service returns this error in both cases:
    Error[Validate Data]: (XML) = Data at the root level is invalid. Line 1, position 1.. Cannot validate the XML! Data Exchange not accepted!Once I pass the entire xml string above, I get an Oracle-01403: no data found error. I have opened the web service in IE and pasted my xml input string and received a valid, verified result, so I am sure that the generated xml is correct. I have spoken with the web service developer; there are no log entries created by the web service when I submit the full xml string, so I suspect the failure is in the Apex application.
    Thanks,
    Christine
    I should add that once I have nested tags in the xml, I get the Oracle no data found error ("<header xmlns=""> <stdXmlVer>2.0</stdXmlVer> <sendingUnit>10</sendingUnit> </header>"). I f I do not have nested tags in the xml ("<notification>[email protected]</notification> <creationDate>2011-12-20</creationDate>"), I get the web service response (error).
    Edited by: ChristineD on Dec 20, 2011 9:54 AM

    Ok, I think I'm getting closer to thinking this all the way through. When I have used clobs in the past, I've always used the DBMS_CLOB package. I use this to create a temp clob and then make the above calls. I had to go find an example in my own code to remember all of this. So, here is another suggestion... feel free to disregard all the previous code snippets..
    declare
      cursor build_data  is
        select u_catt_request_buid,u_catt_request_name,u_catt_cassette_buid,u_catt_cassette_name
          ,u_project_name,u_sub_project,replace(u_nominator,'ERROR ','') u_nominator
          ,replace(replace(u_going_to_vqc,'Yes','true'),'No','false') u_going_to_vqc
          ,u_promoter,u_cds,u_terminator
          ,u_primary_trait,u_source_mat_prvd,u_pro_resistance_1,u_vector_type
          ,nvl(u_my_priority,'Medium') u_my_priority
          ,replace(replace(u_immediate_trafo,'Yes','true'),'No','false') u_immediate_trafo
          ,replace(replace(u_new_bps_cmpnt,'Yes','true'),'No','false') u_new_bps_cmpnt
          ,u_compnt_name,u_new_cmpt_desc,initcap(u_target_crop) u_target_crop,u_corn_line
          ,u_plant_selection,u_num_of_ind_events,u_num_plants_per_event,u_molecular_quality_events
          ,replace(replace(u_field,'Yes','true'),'No','false') u_field
          ,u_t1_seed_request,u_potential_phenotype,u_submission_date
          ,u_sequence_length,u_trait,u_frst_parent,u_frst_parent_vshare_id,u_cds_vshare_id
          ,constructid,cassetteid,description
        from temp_constructs_lims
        order by constructid,description;
      v_xml_info         varchar2(350);
      v_xml_header       varchar2(1000);
      v_xml_data         clob;
      v_xml_footer       varchar2(50);
      v_create_date      varchar2(10);
      v_scientist_name   v_users.full_name%type;
      v_scientist_email  v_users.email_address%type;
      v_primas_code      construct.fkprimas%type;
      v_nominator_name   v_nominators.full_name%type;
      v_file_length      number;
      v_xml_body    varchar2(32767); --added by AustinJ
      v_page_item    varchar2(32767);  --added by AustinJ
    begin
      -- initialize variables
      v_create_date := to_char(sysdate,'YYYY-MM-DD');
      --v_xml_data := null;   --commented out by AustinJ
      dbms_lob.createtemporary( v_xml_data, FALSE, dbms_lob.session );  --added by AustinJ
      dbms_lob.open( v_xml_data, dbms_lob.lob_readwrite );  --added by AustinJ
      -- get name and email address
      begin
        select full_name,email_address
        into v_scientist_name,v_scientist_email
        from v_users
        where ldap_account = :F140_USER_ID; 
      exception when no_data_found then
        v_scientist_name := '';
        v_scientist_email := '';
        v_scientist_name := 'Test, Christine';
        v_scientist_email := '[email protected]';
      end;
      -- set up xml file 
      if :OWNER like '%DEV%' then
        v_xml_info := '
          <?xml version="1.0" encoding="utf-8"?>
          <exchange xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xmlns="deService"
                    xsi:schemaLocation="deService http://mycompany.com/webservices/apexdataexchange/schemas/RTPCATT.xsd">
      else
        v_xml_info := '
          <?xml version="1.0" encoding="utf-8"?>
          <exchange xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xmlns="deService"
                    xsi:schemaLocation="deService http://mycompanyprod.com/webservices/apexdataexchange/schemas/RTPCATT.xsd">
      end if;
      -- populate xml header records
      v_xml_header := '<header xmlns="">
        <stdXmlVer>2.0</stdXmlVer>
        <sendingUnit>'||:P36_UNIT_NUMBER||'</sendingUnit>
        <sendingPerson>'||v_scientist_name||'</sendingPerson>
        <notification>'||v_scientist_email||'</notification>
        <creationDate>'||v_create_date||'</creationDate>
      </header>
      <entities xmlns="">
      for rec in build_data loop
        begin
          -- get primas code for current construct
          select fkprimas
          into v_primas_code
          from construct
          where constructid = rec.constructid;
        exception when no_data_found then
          v_primas_code := null;
        end;
        begin
          -- get nominator name for current construct
          select full_name
          into v_nominator_name
          from v_nominators
          where nominator_id = rec.u_nominator;
        exception
          when no_data_found then
            v_nominator_name := null;
          when invalid_number then
            v_nominator_name := catt_pkg.full_name_from_user_id(p_user_id => rec.u_nominator);
            v_nominator_name := 'Test, Christine';
        end;
        v_xml_body := '
          <Construct>
          <requestBUID>'||rec.u_catt_request_buid||'</requestBUID>
          <requestName>'||rec.u_catt_request_name||'</requestName>
          <cassetteBUID>'||rec.u_catt_cassette_buid||'</cassetteBUID>
          <cassetteName>'||rec.u_catt_cassette_name||'</cassetteName>
          <scientist>'||v_scientist_name||'</scientist>
          <projectNumber>'||v_primas_code||'</projectNumber>
          <subProject>'||rec.u_sub_project||'</subProject>
          <comments>'||rec.description||'</comments>
          <nominator>'||v_nominator_name||'</nominator>
          <goingToVqc>'||rec.u_going_to_vqc||'</goingToVqc>
          <primaryTrait>'||rec.u_primary_trait||'</primaryTrait>
          <sourceMatPrvd>'||rec.u_source_mat_prvd||'</sourceMatPrvd>
          <prokaryoticResistance>'||rec.u_pro_resistance_1||'</prokaryoticResistance>
          <vectorType>'||rec.u_vector_type||'</vectorType>
          <priority>'||rec.u_my_priority||'</priority>
          <immediateTrafo>'||rec.u_immediate_trafo||'</immediateTrafo>
          <newComponent>'||rec.u_new_bps_cmpnt||'</newComponent>
          <componentName>'||rec.u_compnt_name||'</componentName>
          <newComponentDescription>'||rec.u_new_cmpt_desc||'</newComponentDescription>
          <targetCrop>'||rec.u_target_crop||'</targetCrop>
          <Line>'||rec.u_corn_line||'</Line>
          <plantSelection>'||rec.u_plant_selection||'</plantSelection>
          <numOfIndEvents>'||rec.u_num_of_ind_events||'</numOfIndEvents>
          <numOfPlantsPerEvent>'||rec.u_num_plants_per_event||'</numOfPlantsPerEvent>
          <molecularQualityEvents>'||rec.u_molecular_quality_events||'</molecularQualityEvents>
          <toField>'||rec.u_field||'</toField>
          <potentialPhenotype>'||rec.u_potential_phenotype||'</potentialPhenotype>
          </Construct>
        ';    --modified by AustinJ
        dbms_lob.writeappend( v_xml_data, length(v_xml_body), v_xml_body);   --added by AustinJ
      end loop;
      -- complete xml data   
      v_xml_footer := '
          </entities>
        </exchange>
      -- complete submission data
      v_page_item := null;   
      v_page_item := v_xml_info||v_xml_header||wwv_flow.do_substitutions(wwv_flow_utilities.clob_to_varchar2(v_xml_data))||v_xml_footer;   --added by AustinJ
      :P36_XML_SUBMISSION := trim(v_page_item);   --added by AustinJ
        dbms_lob.close( v_xml_data);  --added by AustinJ
        if v_xml_data is not null then   
            dbms_lob.freetemporary(v_xml_data);   --added by AustinJ
        end if;  --added by AustinJ
    end;This code will use the Database to construct your clob and then convert it back to a varchar2 for output to your webservice. This makes more sense to me now and hopefully you can follow what the process is doing.
    You don't technically need the two varchar2(36767) variables. I used two for naming convention clarity sake. You could use just one multipurpose variable instead.
    If you have any questions, just ask. I'll help if I can.
    Austin
    Edited by: AustinJ on Dec 20, 2011 12:17 PM
    Fixed spelling mistakes.

  • How to get  sales area text data ( line1) from XD02

    hi sap gurus,
    how to get table name for sales area text xd02 (like marking, remarks , tag ) or we have to use function module to fetch it in the report.
    thanks ,
    Amit Ranjan .

    Table names for all texts are STXH,STXL but from table u cannot fetch them as in the table these texts are stored in RAW format. To fetch this text in human readable format use the FM READ_TEXT. To use this Fm u have to pass text name, text id and object name..u can get all data by double clicking the editor for each text..it will goto the sapscript editor(line editor) then from menu path Goto->Header..u will get all the info....
    Regards,
    JOy.

  • ICal Alarm - Pass Event data to AppleScript?

    Is there a way that a script called by an iCal alarm can be passed event data as parameters?

    This is a quick one I knocked up a while back to see if it was possible. The problem is that iCal doesn't tell the script what event triggered it, so you have to go looking ...
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">(*
    called from iCal as on alarm, will speak the title of the alarm event
    won't work for repeating events
    AK ITCarlow Nov 2004
    set Now to current date
    -- Adjust FuzzSeconds to suit; if too big, close events will speak several times
    set FuzzSeconds to 15
    tell application "iCal"
    set MyEvents to every event of every calendar where ((start date of it) ≥ (current date))
    repeat with ThisEvent in MyEvents --scan the list looking for events that have triggered us
    try
    set MinutesBefore to (trigger interval of open file alarm of ThisEvent) as number
    set TriggerInt to (Now - ((start date of ThisEvent) + 60 * MinutesBefore)) --notionally 0 for firing event
    if (TriggerInt < FuzzSeconds) and (TriggerInt > (-FuzzSeconds)) then
    say (summary of ThisEvent as text) & " at " & (start date of ThisEvent as text)
    --could say other fields too eg location, description ...
    end if
    end try
    end repeat
    end tell
    </pre>
    AK

  • Passing from data from one page to another

    Hi All, i'm currently doing a CSV file upload into a database
    application, and I'm wondering if it is possible to pass the data
    from the file field to another php file which executes the command
    of inserting the data of the csv file into the database? Thanks!!
    Wanqi

    You have this in test.php -
    $target_path = $_GET['uploadfile'];
    That implies that the page calling test.php is passing
    'uploadfile' as a URL
    variable. But it isn't.
    <form id="form1" name="form1"
    enctype="multipart/form-data" method="post"
    action="test.php">
    Why wouldn't $target_path be the same as $uploadfile?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "taywanqi" <[email protected]> wrote in
    message
    news:[email protected]...
    > Attached below is the code i used for my application:
    >
    > form.php
    >
    >
    >
    >
    >
    >
    >
    > <?php
    > session_start();
    > ?>
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    > <title>Untitled Document</title>
    > <style type="text/css">
    > <!--
    > .style13 { color: #FFFFFF;
    > font-family: Georgia, "Times New Roman", Times, serif;
    > font-size: 14px;
    > }
    > -->
    > </style>
    > </head>
    >
    > <body>
    > <form id="form1" name="form1"
    enctype="multipart/form-data" method="post"
    > action="test.php">
    > <p align="center">
    > <input type="file" name="fileupload" id="fileupload"
    />
    > <input type="hidden" name="csvfile" id="csvfile"/>
    >
    > </p>
    > <p align="center">
    > <input type="submit" name="upload" id="upload"
    value="Submit" />
    > </p>
    > </form>
    > </body>
    > </html>
    >
    >
    > Test.php
    >
    > <?php
    > session_start();
    > echo $name;
    > ob_start();
    > ?>
    >
    > <?php require_once('connection.php'); ?>
    >
    > <?php
    >
    > //UPLOADING FILE
    > if(isset($_POST['upload']))
    > {
    >
    > $uploaddir = 'uploads';
    >
    > $uploadfile = $uploaddir .
    basename($_FILES['fileupload']['name']);
    >
    > $target_path = $_GET['uploadfile'];
    >
    > echo $target_path;
    >
    > //$target_path = ini_get('$uploadfile');
    >
    > echo $file;
    >
    > echo '<pre>';
    > if
    (move_uploaded_file($_FILES['fileupload']['tmp_name'],
    $uploadfile)) {
    >
    > echo "File is valid, and was successfully uploaded.\n";
    >
    > } else {
    > echo "Possible file upload attack!\n";
    > }
    >
    > echo 'Here is some more debugging info:';
    > print_r($_FILES);
    >
    > print "</pre>";
    > }
    >
    >
    > $fcontents = $_SESSION[csvfile];
    >
    > for($i=0; $i<sizeof($fcontents); $i++) {
    >
    > $line = trim($fcontents[$i]);
    > $arr = explode("\t", $line);
    >
    > echo $arr."<br>\n";
    >
    >
    > }
    >
    > //ATTRIBUTES
    > //$fieldseparator = ',';
    > //$lineseparator = '\n';
    >
    > //READING OF FILE
    > $csvfile = $uploaddir .
    basename($_FILES['fileupload']['name']);
    >
    > //TRUNCATE THE FILE BEFORE INSERTING IT INTO THE
    DATABASE
    > mysql_select_db($database, $test);
    > mysql_query("TRUNCATE TABLE timetable") or die("MySQL
    Error: " .
    > mysql_error()); //Delete the existing rows
    >
    > //IMPORT CSV INTO DATABASE
    > $lines = 0;
    > $queries = "";
    > $linearray = array();
    > $fcontents = file($csvfile);
    >
    > for($i=0; $i<sizeof($fcontents); $i++) {
    >
    > $lines++;
    >
    > $line = trim($fcontents[$i]);
    >
    > $linearray = explode(',',$line);
    >
    > $linemysql = implode("','",$linearray); // convert the
    array to a string
    >
    > echo "$linemysql". "\n";
    >
    > //$query = "INSERT INTO timetable
    values('$linemysql')";//Insert query to
    > insert values into the database
    > $query = 'LOAD DATA INFILE "$target_path" REPLACE
    > INTO TABLE timetable
    > FIELDS TERMINATED BY ","
    > OPTIONALLY ENCLOSED BY """"
    > LINES TERMINATED BY "\r\n"';
    >
    > mysql_query($query, $test) or die('SQL
    ERROR:'.mysql_error()); //Insert
    > in
    > the new values into the database
    >
    > }
    >
    > ?>
    >
    > </head>
    > <body>
    > </body>
    > </html>
    > <?php ob_flush(); ?>
    >

  • How to pass a data from child window to parent window

    Hi,
    I have a jsp page with two hidden fields and a button, On clicking the button a popup will come out. There are two combobox in the popup and a search button. After putting a value in the comboboxes,if I click the search button, I need the datas of the combobox to pass to the parent's hidden fields then I need to do a data base search with that values of hidden fields and display the result in the parent page.
    I could I solve this problem, Please help, Its urgent.
    Thanks and Regards
    Rajib Sharma

    I think that you can use the JavaScipt as follow to pass a data from child window to parent window
    <HEAD>
    <script>
    function passData(){
    opener.form1.test1.value=form2.test2.value; //pass the value of test2 to the parent's test1
    window.close();
    </script>
    </HEAD>
    <BODY>
    <form name=form2>
    <input name=test2 type=text>
    <input type=button onclick="passData()" value=CLOSE>
    </form>
    </BODY>

  • Passing 2 date parameters in report

    I have to create a report in such a way that ...i have to pass 2 date parameters to get the report..
    For example..
    I get report parameter pagein reports and then I enter the parameter
    Parameter1: 27-MAY-10
    Parameter2: 30_JUN-10
    and then i click RUN REPORT
    can any1 help me out how to pass this parameter in report... i am stuck at this point
    NOTE: I want to use the parameter form feature in report builder....

    @ Sarah
    what you do is to call a refort from a form. i think it is not what Suhail want.
    @ Suhail
    if i understand, you want to pass the parameters from the parameterform your report to the report.
    i think you must create a parameterform and save it als html like this:
    To create a simple Parameter Form in HTML:
    1. In a text editor or HTML editor, create an HTML page that contains a form. The
    form should contain a list of values, a field, and a button. The code for this form
    can look something like the following:
    <form name="form1" method="post" action="*NAME_form.jsp*">
    <h2>Parameter Form</h2>
    <input id="connect" type="hidden" name="userid" value="*hr/hr@db-connect*">
    <input type="hidden" name="destype" value="*cache*">
    <input type="hidden" name="desformat" value="*html*">
    <br> Date_beginn: <input type="text" name="Date Beginn" value="">
    <br> Date_end: <input type="text" name="Date end" value="">
    <input type="submit" name="Submit" value="Run Report">
    </form>
    you can save this code als .html.
    Now you can open the code in the report builder and save it als .jsp.
    you can yet start with the copilation of the report.
    i hope this code will help you.

  • Smartforms- TABLE -Lines,rgrding passing  Quan&DATS fields to smartforms

    Hi All ..
    Iam working on Tables in smartform ,
    These are  queries  to which  i need solution ..
    1)  In (Window) Table- Heading  i have created  3 LINES   in which  my  data  had  to display...( i have  a line   in that TEXT is used to display  a particular fields of the Itab ) .  as i came to know that  in my Zprog iam gettting my  data in the fields  but   wen  in smartform these fields values are not displayed ( when these fields are placed in LINE  )  but  wen  these fields are placed outof LINE that is outof table then iamgetting  value for these fields..  so please   let me know  wat are the changes that ishould do  to  get my  data  in  my table ( LINE )
    2) How  to pass  DATS and QUAN  fields  to the smartforms..
    as iam getting  data to DATS and Quan Fields in my  Zprog   but these  values are not showed in my  smartForm ..  ..
    Thanks in Advance..
    Looking  for  a good  reply ..
    Aslam..

    Hi,
    you have created 3 linetypes for table .
    you have create loop for multiple records display.
    in loop you have to pass table from which you are displaying inti output.
    To internal table we get data from print program and create text for corresponding cells.
    then it will pass those data to table.
    2) create programlines for that.
    in that mention table from which table is containing quantity.
    that is import parameter specified .
    export parameters are your output fields using for calculation.
    AMOUNT = TAB3-NETWR.
    Netamount = Netamount + TAB3-NETWR.
    here input is tab3 table it contains quantity data.
    lamount,netamount are output parameters.
    like that you can display quantity.
    or in global definitions currency/quantity fields tab is available you can pass there also.
    for dat fields write logic for conversion of date and pass that variabl in form output.

  • Passing context data back to Java Webdynpro

    Hi All,
    I have created Java Webdynpro's with Adobe Interactive Forms in them. I use ActiveX not Native. Yesterday passing data from the AIF to Webdynpro for Java was working like this (it didn't work in Native mode) today it doesn't. Neither does pressing any buttons. I'm not sure what has been installed on my system, it could be Adobe Read 9.0. Now creating the forms using the livecycle designer in de Netweaver developer studio is also very unstable (unworkable)
    My main question is: how can I pass the data from the interactive form to webdynpro for java (without using the submit button, as I want to have such buttons on my webdynpro and not in my forms.)
    Jeschael

    Jeschael,
    Try creating a new project and repeat the same steps. Do you get error there as well.
    Also try setting some context in WD, assign it to a Text Field of Adobe and see if you get the value.
    For eg: Let's assume you created a Context called "Name" then set it
    wdContext.currentContextElement.setName("Test");
    Now try to assign this to Text Field, see if you get the value in Adobe form by writing this code in the initialize event of Text Field in Adobe LiveCycle Designer in JavaSript.
    xfa.host.messageBox("Value is :"+TextField1.rawValue);
    Chintan

  • E-Separation - Can we pass dynamic data in email body ?

    Hello Experts,
    I'm trying to pass dynamic data in the email body which is triggered on the process initiation in E-SEPARATION. Could someone please tell if it is possible in the first place ? If possible, how can I proceed ...
    What I tried ?
    When I initiate the separation process, I'm able to trigger the emails but with static content. Need something to be passed dynamically in it ....
    Thanks
    Vivek

    You can check the Document HRPBSIN_AC_MAIL_PARAMETERS  for dynamic parameters which can be used in your mail content.
    But it's limited and will not full fill to have more dynamic variables as per business requirement.
    So we have the option to enhance and replace the dynamic variable content for mail content in class CL_EAIN_UTILITIES method SEND_MAIL
    For this method you can create overwrite exit and pass the dynamic values in dialog texts objects.

  • Bulk text data insertion in Partitioned Table

    Hi All,
    I want to insert more than 200 crore records from 5 text data files in a single table say TAB1 (PARTITIONED table with RANGE type).
    Currently I am using EXTERNAL TABLE concept and providing 5 filenames (of total 45 crore records) at a time to external table definition access criteria LOCATION() with COMMA ",".
    After that using following sql statement:
    INSERT /*+ APPEND PARALLEL(6) */ INTO TAB1 SELECT * FROM TAB1_EXT;
    Presently The execution time statistics for 45 crore records is as follows:
    1)     With /*+ PARALLEL(6) */ hint, execution time : 81 Mins     
    2)     with /*+ APPEND PARALLEL */ hint, execution time : 73 Mins     
    3)     With cursor loop; bulk collect and FORALL with interval of 1000000 records, execution time : 98 Mins
    Earlier the execution time was too much but after changing and trying with variation in SQL logic, DB parameter, and H/w, now it is somewhat good.
    Now INDEXES are also removed from table. NOLOGGING is purposely not using as it will not be considerable at PROD environment.
    Also Database is not in ARCHIVE mode now.
    I also tried with change in DB parameters like SGA_MAX_SIZE which is now 16GB. I am thinking even to change DB_BLOCK_SIZE value from 8K to 32K.
    O/S: LINUX
    ORACLE DB: ORACLE 11g
    RAM: 256 GB
    48 CPU CORES, AMD Opteron (HP DL 585 Model)
    If you have any suggestion, please pass it to me.

    Instead of disturbing parallel coordinators you could just submit n jobs each doing a simple <b>insert into big_table select * from external_table_n</b> or something similar - all external_tables_i having the same structure just different location parameters.
    Regards
    Etbin
    Edited by: Etbin on 26.2.2011 12:25
    possibly grouping text data files according to partitions the data would end within

  • How exactly can I load TEXT DATA to a Hyperion Planning application?

    I have a data file that has TEXT data that I want to load to planning. I do not wish for this text data to be displayed in a Smart List, rather I want to use the new Planning data type "Text"
    In chapter 5 of the Planning Admin Guide in the Matrix for Data Load Tools, it says the Planning Outline Load Utility can load Text Data values.
    I can't make sense out of the the instructions to load data with this utility. Can someone please help me?
    -Chris

    Hi John,
    I like your idea of flipping the Data Load Dimension and the Driver Dimension. Unfortunately Planning won't let me set Period as a Data Load Dimension.
    I only get Account, CCCC, Employee, SCCC, and SAU_CAU_Facility (5 of the 11 dimensions in this application).
    So that's why I set the Data Load Dimension and the Driver Dimension as I did. It ran but with some kickouts on missing members. So 16 of the 19 records I sent processed and I understand why these three kicked out in the error file:_
    [Tue Jul 28 10:33:37 EDT 2009] Error occurred loading data record 1: Job_Description,Wrkforce,ENVIRONMENTAL COORDINATOR,"BegBalance, 71_71_CAU, GAK_SCCC, No_CCCC, Actual, FY09, Final, Emp_7340"
    [Tue Jul 28 10:33:37 EDT 2009] com.hyperion.planning.InvalidMemberException: The member Emp_7340 does not exist or you do not have access to it.
    [Tue Jul 28 10:33:37 EDT 2009] Error occurred loading data record 2: Job_Description,Wrkforce,EXECUTIVE ASSISTANT,"BegBalance, 71_71_CAU, G02_SCCC, No_CCCC, Actual, FY09, Final, Emp_4435"
    [Tue Jul 28 10:33:37 EDT 2009] com.hyperion.planning.InvalidMemberException: The member Emp_4435 does not exist or you do not have access to it.
    [Tue Jul 28 10:33:37 EDT 2009] Error occurred loading data record 4: Job_Description,Wrkforce,PRESIDENT & COO-YANKEE ENERGY SYSTEM,"BegBalance, 71_71_CAU, G02_SCCC, No_CCCC, Actual, FY09, Final, Emp_8747"
    [Tue Jul 28 10:33:37 EDT 2009] com.hyperion.planning.InvalidMemberException: The member Emp_8747 does not exist or you do not have access to it.
    [Tue Jul 28 10:33:38 EDT 2009]Planning Outline data store load process finished with exceptions: exceptions occured, examine the exception file for more information. 19 data records were read, 19 data records were processed, 16 were successfully loaded, 3 were rejected.
    The log file that loads tells some good news as well..._
    Successfully logged into "Wrkforce" application, Release 11.111, Adapter Interface Version 5, Workforce supported and not enabled, CapEx not supported and not enabled, CSS Version 3
    "Account" dimension properties and information:
    Account, Parent, Alias: Default, Valid For Consolidations, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation, Data Load Cube Name, BegBalance, Point-of-View, Account Type, Time Balance, Skip Value, Exchange Rate Type, Variance Reporting, Source Plan Type, Plan Type (Wrkforce), Aggregation (Wrkforce)
    No UDA's defined on "Account"
    "Period" dimension properties and information:
    Period, Parent, Alias: Default, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation, Type, Start Period, End Period, Aggregation (Wrkforce)
    No UDA's defined on "Period"
    "Years" dimension properties and information:
    Years, Parent, Alias: Default, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation
    No UDA's defined on "Years"
    "Scenario" dimension properties and information:
    Scenario, Parent, Alias: Default, Valid For Consolidations, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation, Start Year, Start Period, End Year, End Period, Exchange Table, Include BegBal, Process Management Enabled, Aggregation (Wrkforce)
    No UDA's defined on "Scenario"
    "Version" dimension properties and information:
    Version, Parent, Alias: Default, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation, Version Type, Process Management Enabled, Aggregation (Wrkforce)
    No UDA's defined on "Version"
    "CCCC" dimension properties and information:
    CCCC, Parent, Alias: Default, Valid For Consolidations, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation, Plan Type (Wrkforce), Aggregation (Wrkforce), Open_Closed_CCCC
    No UDA's defined on "CCCC"
    "Open_Closed_CCCC" attribute dimension (on base dimension "CCCC"). Attributes defined on the "Open_Closed_CCCC" dimension: Open_CCCC; Closed_CCCC;
    Open_Closed_CCCC, Parent, Alias: Default, Operation
    "Employee" dimension properties and information:
    Employee, Parent, Alias: Default, Valid For Consolidations, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation, Aggregation (Wrkforce)
    No UDA's defined on "Employee"
    "SCCC" dimension properties and information:
    SCCC, Parent, Alias: Default, Valid For Consolidations, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation, Aggregation (Wrkforce), Open_Closed_SCCC
    No UDA's defined on "SCCC"
    "Open_Closed_SCCC" attribute dimension (on base dimension "SCCC"). Attributes defined on the "Open_Closed_SCCC" dimension: Open_SCCC; Closed_SCCC;
    Open_Closed_SCCC, Parent, Alias: Default, Operation
    "SAU_CAU_Facility" dimension properties and information:
    SAU_CAU_Facility, Parent, Alias: Default, Valid For Consolidations, Data Storage, Two Pass Calculation, Description, Formula, UDA, Smart List, Data Type, Operation, Aggregation (Wrkforce), Open_Closed_SCF
    No UDA's defined on "SAU_CAU_Facility"
    "Open_Closed_SCF" attribute dimension (on base dimension "SAU_CAU_Facility"). Attributes defined on the "Open_Closed_SCF" dimension: Open_SCF; Closed_SCF;
    Open_Closed_SCF, Parent, Alias: Default, Operation
    Exchange Rates properties:
    Table, Description, To Currency, From Currency, Operation, Method, Historical, Beg Balance, Year, Period, Average, Ending
    UDA properties:
    Dimension, UDA, Operation
    Translation input file fields:
    Value, Driver Member, Point-of-View, Data Load Cube Name
    [Tue Jul 28 10:33:35 EDT 2009]Successfully located and opened input file "D:\Hyperion\products\Planning\bin\testload.csv".
    [Tue Jul 28 10:33:35 EDT 2009]Header record fields: Account, Data Load Cube Name, BegBalance, Point-of-View
    [Tue Jul 28 10:33:35 EDT 2009]Located and using "Account" dimension for loading data in "Wrkforce" application.
    [Tue Jul 28 10:33:38 EDT 2009]Load dimension "Account" has been unlocked successfully.
    [Tue Jul 28 10:33:38 EDT 2009]A cube refresh operation will not be performed.
    [Tue Jul 28 10:33:38 EDT 2009]Create security filters operation will not be performed.
    [Tue Jul 28 10:33:38 EDT 2009]Examine the Essbase log files for status if Essbase data was loaded.
    [Tue Jul 28 10:33:38 EDT 2009]Planning Outline data store load process finished with exceptions: exceptions occured, examine the exception file for more information. 19 data records were read, 19 data records were processed, 16 were successfully loaded, 3 were rejected.

Maybe you are looking for

  • Allowing existing iPhoto library to copy on import

    When I initially setup my iPhoto library I told it not to copy photos to the iPhoto folder on import. Since then I have added about 4300 photos complete with notations, keywords, dates, etc. Now I really wish that I had just let iPhoto take care of h

  • HT1414 if i restore my iphone and loose all music numbers etc can i get them back without backing up?

    how do i get my info back???

  • Burning to disc MUVO

    Windows XP Home. I have Creative Nomad software installed. I have successfully installed several albums on my hard dri've using Creative Nomad software. I would like to take a few of these albums and burn them to a CD? Instructions keep telling me to

  • Extensis Portfolio 8.1.1 and Lightroom - keywords question

    Hi, I've imported images to Lightroom that have had keywords applied using Portfolio (an Extensis product). Once imported into Lightroom, however, Lightroom does not show these keywords. It only shows those keywords applied using Photoshop CS2. Is th

  • Backup Issue with WinXP

    I have an iPhone 3G and I'm trying to sync / backup the phone to a Windows XP computer. The computer is authorized and we have sync'd purchased music to the iPhone. The iPhone is running iOS 5.01 with iTunes 10.6.1. When trying to sync the iPhone - i