Php data correct on html ouput but output to flash is incorrect

Not sure whats going on. Information sent back from database
is correct so it must be my for statement.
var nextY = 0;
var nextY2 = 18;
for (var count = 0; count < result_lv.typeCount; count++)
var nextY2 = 18;
holder.attachMovie("header", "type" + count, count);
holder["type" + count]._y = nextY;
holder["type" + count].txTitle.text = result_lv["type" +
count];
for (var counter = 0; counter < result_lv["type" + count
+ "clientCount"]; counter++) {
holder["type" + count].attachMovie("client", "cl" + counter,
counter);
holder["type" + count]["cl" + counter]._y = nextY2;
holder["type" + count]["cl" + counter]._x = 200;
holder["type" + count]["cl" + counter].txTitle.text =
result_lv["cl" + counter + "projName"];
nextY2 += Math.ceil(holder["type" + count]["cl" +
counter]._height + 2);
trace("project title=" + result_lv["cl" + counter +
"projName"]);
nextY += Math.ceil(holder["type" + count]._height + 2);
there are 3 sub categorys:
cd/dvd
www/html
www/flash
These load fine.
the problem starts in the second for(). For some strange
reason every category has the first 2 same projects.
The count for each category project count is correct.
But it would seem that each category want to load every
project regardless of the category that it should be in.
I have since discovered that flash is not outputting the
correct information being sent by the php file. This is a strange
one :S
Here's what php outputs and sends back to flash
quote:
&spotID=19&typeCount=3&type0=CD/DVD&type0clientCount=2&cl0projName=CD
Presentation&cl1projName=Alison
Gollings&type1=www/Flash&type1clientCount=15&cl0projName=Scotlet
redesign&cl1projName=glasgow as i see
it&cl2projName=mxgb.info&cl3projName=Sensua. The
collection&cl4projName=Clifford white
racing&cl5projName=Replenish line
count&cl6projName=scotlet.co.uk&cl7projName=Riki
Christo&cl8projName=IT
Band&cl9projName=JamieDobb.com&cl10projName=Kunt Flash
intro&cl11projName=R A Sneddon -- Flash
logo&cl12projName=Activefm&cl13projName=Flash test
area&cl14projName=Excel-Management&type2=www/html&type2clientCount=2&cl0projName=vinyl
revival&cl1projName=Photo Gallery&retval=1&
This information is correct and should be what flash is
recieving.
Below is what flash outputs via trace of flash input from php
script.
quote:
retval=1&type2clientCount=2&type2=www/html&cl14projName=Excel-Management&cl13projName=Flas h
test area&cl12projName=Activefm&cl11projName=R A Sneddon --
Flash logo&cl10projName=Kunt Flash
intro&cl9projName=JamieDobb.com&cl8projName=IT
Band&cl7projName=Riki
Christo&cl6projName=scotlet.co.uk&cl5projName=Replenish
line count&cl4projName=Clifford white
racing&cl3projName=Sensua. The
collection&cl2projName=mxgb.info&type1clientCount=15&type1=www/Flash&cl1projName=Photo
Gallery&cl0projName=vinyl
revival&type0clientCount=2&type0=CD/DVD&typeCount=3&spotID=19
The type count is correct but the information for the project
is wrong.
Can anyone see a typo??? it must be a typo.
THanks for any help

One possible issue is a browser caching problem.
Also consider trace statements for
trace ("results_lv.typeCount :" +results_lv.typeCount);
trace ("count:" +count);
trace ("result_lv[\"type\" + count + \"clientCount\"]:" +
result_lv["type" +
count + "clientCount"]);
Your statements "here is what PHP sends back to Flash" and
"what Flash
receives" is puzzling. Could you be saying here is what PHP
returns to a web
browser page and here is what Flash sees? If that is the
case, then it looks
like two different responses from the PHP program.
I generally have a test web page that sends the same data to
the PHP script
as Flash would and have have a debug option in the PHP to
return the return
values in a <pre> format so I can see them neatly in a
web page. This
allows testing the PHP program separately and verify what it
returns outside
of Flash. Once that is clear, then you should see the exact
same
information.
Example
echo $returnVals; // Contains all the url encoded variables.
in debug mode for web page
echo "<html><body><pre>" . $returnVals .
</pre></body></html>";
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
"[djdomain]" <[email protected]> wrote in
message
news:[email protected]...
> Not sure whats going on. Information sent back from
database is correct
> so it
> must be my for statement.
>
> var nextY = 0;
> var nextY2 = 18;
> for (var count = 0; count < result_lv.typeCount;
count++) {
> var nextY2 = 18;
> holder.attachMovie("header", "type" + count, count);
> holder["type" + count]._y = nextY;
> holder["type" + count].txTitle.text = result_lv["type" +
count];
> for (var counter = 0; counter < result_lv["type" +
count +
> "clientCount"];
> counter++) {
> holder["type" + count].attachMovie("client", "cl" +
counter, counter);
> holder["type" + count]["cl" + counter]._y = nextY2;
> holder["type" + count]["cl" + counter]._x = 200;
> holder["type" + count]["cl" + counter].txTitle.text =
result_lv["cl" +
> counter + "projName"];
> nextY2 += Math.ceil(holder["type" + count]["cl" +
counter]._height + 2);
> trace("project title=" + result_lv["cl" + counter +
"projName"]);
> }
> nextY += Math.ceil(holder["type" + count]._height + 2);
> }
>
> there are 3 sub categorys:
> cd/dvd
> www/html
> www/flash
> These load fine.
> the problem starts in the second for(). For some strange
reason every
> category has the first 2 same projects.
> The count for each category project count is correct.
> But it would seem that each category want to load every
project regardless
> of
> the category that it should be in.
> I have since discovered that flash is not outputting the
correct
> information
> being sent by the php file. This is a strange one :S
> Here's what php outputs and sends back to flash
>
quote:
>
&spotID=19&typeCount=3&type0=CD/DVD&type0clientCount=2&cl0projName=CD
> Presentation&cl1projName=Alison
>
Gollings&type1=www/Flash&type1clientCount=15&cl0projName=Scotlet
> redesign&cl1projName=glasgow as i see
> it&cl2projName=mxgb.info&cl3projName=Sensua. The
> collection&cl4projName=Clifford white
racing&cl5projName=Replenish line
> count&cl6projName=scotlet.co.uk&cl7projName=Riki
Christo&cl8projName=IT
> Band&cl9projName=JamieDobb.com&cl10projName=Kunt
Flash
> intro&cl11projName=R A
> Sneddon -- Flash
logo&cl12projName=Activefm&cl13projName=Flash test
>
area&cl14projName=Excel-Management&type2=www/html&type2clientCount=2&cl0projName
> =vinyl revival&cl1projName=Photo
Gallery&retval=1&
>
> This information is correct and should be what flash is
recieving.
> Below is what flash outputs via trace of flash input
from php script.
>
quote:
>
>
retval=1&type2clientCount=2&type2=www/html&cl14projName=Excel-Management&cl13pro
> jName=Flash test
area&cl12projName=Activefm&cl11projName=R A Sneddon --
> Flash
> logo&cl10projName=Kunt Flash
> intro&cl9projName=JamieDobb.com&cl8projName=IT
> Band&cl7projName=Riki
>
Christo&cl6projName=scotlet.co.uk&cl5projName=Replenish
> line count&cl4projName=Clifford white
racing&cl3projName=Sensua. The
>
collection&cl2projName=mxgb.info&type1clientCount=15&type1=www/Flash&cl1projName
> =Photo Gallery&cl0projName=vinyl
>
revival&type0clientCount=2&type0=CD/DVD&typeCount=3&spotID=19
>
> The type count is correct but the information for the
project is wrong.
>
> Can anyone see a typo??? it must be a typo.
>
> THanks for any help
>

Similar Messages

  • I´m having some problems with dates intervals. It´s not working well. I inserted the correct date between the right interval but the system refers to incorrect date? What shoul I do?

    Mensagem editada por: Mauricio Galletti
    It seens that there´s some problem with the specific date of 19/10/2014? Don´t know why? I just remove this date from the interval and the problem gone.
    What´s wrong with 19/10/2014?

    Hello Galdr,
    Welcome to the HP Forums.
    I see that after doing some updates, you've lost the use of switchable graphics in your Notebook. I will do my best to help you with this.
    You can try is to use the HP Recovery Manager. This will allow you to "recover" the Notebook and reinstall the original drivers. This document: Using Recovery Manager to Restore Software and Drivers (Windows 7), can assist you with that.
    Once the drivers are "reverted", then if you wish you can attempt updating.
    This first thing I will provide you in regards to updating is this document: Switchable Graphics on Notebooks Configured with Dual AMD GPUs. There is more general information than anything, but you may find it useful.
    When going to update you will want to use the website or the HP Support Assistant. These are the recommend ways to update. When using AMD's (or other OEM utilities) they will look for compatible drivers for the component, but not necessarily ones that work with your Notebook. What most likely happened, only one of the two drivers were actually updated.
    Here is a link to the newest driver provided by HP: AMD High-Definition (HD) Graphics Driver. Also, here's a link to using the HP Support Assistant: Using HP Support Assistant (Windows 7). (in case you wanted to learn more/use this method).
    I hope this is able to help you get back to "state 1", so that you may be able to update correctly and have full functionality of your switchable graphics again. Please let me know how this goes for you. Thank you for posting on the HP Forums.
    I worked on behalf of HP.

  • SAP Note for XD99 : Data changed but Output screen show error message

    This is regarding the XD99.. Mass data update.
    I am looking for SAP Note to fix it. Here data is changed KNA1-Name1 but output shows the Error message..
    Is there any Sap Note for this.
    Edited by: Mukesh Mahajan on Dec 9, 2010 2:45 PM
    Edited by: Mukesh Mahajan on Dec 9, 2010 2:47 PM
    Moderator message: please have a look in the Service Marketplace yourself.
    Edited by: Thomas Zloch on Dec 9, 2010 2:58 PM

    Hi there, gwinslo. You have come to the right place.
    From what I have been reading from other posts on this forum, the issue may
    be caused by the clear history settings.
    Press the '''<Alt>''' or '''<F10>''' key to bring up the tool bar. Then '''Tools > Options > Privacy'''.
    The button next to '''History''', select '''Use Custom Settings'''.
    At the bottom of the page, turn on '''Clear History When Firefox Closes.'''
    At the far right, press the '''Settings''' button. Turn on ONLY '''Cache''' and
    '''Form And Search History''' leaving the others off.
    '''https://support.mozilla.org/questions/997866?esab=a&s=&r=1&as=s''' {web link}
    This is not a cure but will make it easier if Firefox locks up.

  • Tutorial: Flash Builder 4 beta 2 and PHP Data/Services for beginners

    Hi fellas,
    I've written this tutorial for total beginners to get quickly to FB4 and PHP. Comments welcome
    Flash Builder 4 and PHP Data/Services for beginners
    http://www.flashrealtime.com/flash-builder-4-and-php-data-services/

    Hi,
    The first issue will be the pathing differences between wamp/mamp/xampp, some use www as root others htdoc you need to setup the php services on your local machine rather than importing a project.
    The created services will have a connection array declared at the top of the code that points to the mysql server, in the project default debug folder you will have the config file that has the zend and webserver path
    top of service file
    ============
    var $username = "root";
    var $password = "";
    var $server = "localhost";
    var $port = "3306";
    var $databasename = "zend";
    var $tablename = "clients";
    var $connection;
    amfconfig.ini
    =========
    [zend]
    ;set the absolute location path of webroot directory, example:
    ;Windows: C:\apache\www
    ;MAC/UNIX: /user/apache/www
    webroot =C:/wamp/www
    ;set the absolute location path of zend installation directory, example:
    ;Windows: C:\apache\PHPFrameworks\ZendFramework\library
    ;MAC/UNIX: /user/apache/PHPFrameworks/ZendFramework/library
    ;zend_path =
    [zendamf]
    amf.production = false
    amf.directories[]=Zender-debug/services
    In your main project folder you have a .model folder the file there is an *.fml file that contains your channel endpoints etc.
    David.

  • HTML Template but I need php files.

    Hello I have an html template but I need to create a php file for a login system. I went to the server behaviors tab and changed it to a php file but will it update based on template? Also I need to insert a form into a editable region I made into the body of the forum but everytime I do it when I look on the design screen it looks completely messed up but when I go to live view it looks fine. Any idea why?

    Hello I have an html template but I need to create a php file for a login system. I went to the server behaviors tab and changed it to a php file but will it update based on template? Also I need to insert a form into a editable region I made into the body of the forum but everytime I do it when I look on the design screen it looks completely messed up but when I go to live view it looks fine. Any idea why?
    If you have set up a testing server, your documents should automatically have the PHP extension. Then if you create a new document from a DWT file, this will have the PHP extension.
    I think it would be a good idea to have a look at a David Powers tutorial on dynamic sites which can be found here http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html
    In the same section, there are also tutorials on how to use template files.
    I hope this helps.
    Ben

  • Value interaction is Navigate but data format is HTML

    hi, I have a column says BRAND (string)
    but I dont want to show the text directly.
    I changed the data format to HTML, and the value of the column is HTML code (showing a image per brand).
    my goal is to:
    the users click on the image, then navigate to another request.
    how to achieve my goal ?

    1. select Data Format = HTML
    2. In formula (fx) window use the following code
    ''||Table.Brand||''
    where <URL> is the link to the page you want to navigate to.
    By doing this, Brand will appear as a hyperlink.
    Note: I wrote the html hyperlink tag <a></a> to show you how to get a link on your column, but this editor is turning that code in to a hyperlink. I dont know how to avoid this. Hope you get the point in the solution though.
    Edited by: vahibg on Aug 18, 2009 2:27 AM

  • PHP Header Error on HTML Page

    I'm trying to put some php I made into an html file but I'm running into a snag. My PHP script is a login in script and when I successfully login I get the folowing error:
    Warning: Cannot modify header information - headers already sent by (output started at /home/tyharox1/public_html/login.php:64) in/home/tyharox1/public_html/login.php on line 83
    Below is the code for the html file with with the php already writen in. Can anyone help me resolve this issue?
    <?php
    session_start();
    include ('mysql.php');
    ?>
    <!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>
    <!--[if lt IE 9]>
    <script src="html5shiv.js"></script>
    <![endif]-->
    <link href='http://fonts.googleapis.com/css?family=Coda' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" type="text/css" href="mainmenu.css"/>
    <link rel="stylesheet" type="text/css" href="submenu.css"/>
    <link rel="stylesheet" type="text/css" href="mainpage.css"/>
    <link rel="stylesheet" type="text/css" href="slideshow.css"/>
    <link rel="stylesheet" type="text/css" href="ribons.css"/>
    <script type="text/javascript" src="js/jquery-1.2.6.js"></script>
    <script type="text/javascript" src="js/startstop-slider.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Home</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <style type="text/css">
    body {
              background-color: #222;
    </style>
    </head>
    <body>
    <div>
    <img name="Logo" src="images/84087.jpg" width="100%" height="50px" alt="" />
    </div>
    <div id='mainmenu'>
              <ul>
                          <li class='active '><a href='Templates/index.html'><span>AITP</span></a></li>
                           <li><a href='#'><span>test</span></a></li>
                           <li><a href='#'><span>test</span></a></li>
                           <li><a href='#'><span>test</span></a></li>
                           <li><a href='#'><span>test</span></a></li>
              </ul>
        </div>
    </div>
    <div id="submenu">
                        <ul>
                                     <li class='active'><a href='Templates/index.html'><span>Home</span></a></li>
                                     <li><a href='#'><span>About Us</span></a></li>
                                     <li><a href='#'><span>Calendar</span></a></li>
                                     <li><a href='#'><span>Contact</span></a></li>
                                     <li><a href='#'><span>Members</span></a></li>
                        </ul>
              </div>
    <div>
    </div>
    <div class="ribbon">
        <h3>Memeber Login</h3>
        <section id="filler">
              Please Login
        <?php
    session_start();
    include ('mysql.php');
    if (isset ($_POST['submit'])) {
                        $username = mysql_escape_string($_POST['username']);
                        $password = mysql_escape_string(sha1($_POST['password']));
                        if (!empty ($username) && !empty ($password)) {
                                            $sql = mysql_query ("SELECT * FROM users
                                                                                              WHERE username='".$username."' AND
                                                                                              user_password='".$password."' LIMIT 1");
                                            if (mysql_num_rows ($sql) > 0) {
                                                      $_SESSION['loggedin'] = true;
                                                      $_SESSION['username'] = $username;
                                                      header("Refresh: 2; url=index.html");
                                                                       echo '<span style="color: #063; font-weight: bold;">Login Successful! You are now being redirected, Please Wait...</span>';
                                            }else{
                                                      echo 'Your username and/or password is incorrect!';
                        }else{
                                  echo 'You must enter a suername and password!';
    }else{
    echo '<form action="login.php" method="post">
    Username: <input type="text" name="username" /><br />
    Password: <input type="password" name="password" /><br />
    <input type="submit" name="submit" value="login" />
    </form>';
    ?>
        <section id="date">
                        <span id="publisher">Publisher:</span> Jane Doe <span id="publisher">Date:</span> Oct. 10, 2012
        </section>
        </section>
    </div>
    </div>
    <div id="footer">
    </div>
    </body>
    </html>

    You cannot use the PHP header function after anything has sent to the browser. Anything. You can have 100 lines of PHP before header() as long as the script doesn't send anything to the browser.
    So your options are to revise your code accordingly or use a javascript alternative, as in this example, where a little embedded php defines the actual url, but javascript is used to process it:
    <script type="text/javascript">
    window.location = "<?=$url?>";
    </script>

  • How to include javascript and HTML in analysis output?

    Is there any document for that? Currently I set Treat Text As HTML under Data Format tab and include some simple HTML in Column formula, but I doubt it is correct way to include javascript and HTML in ayalysis output. Can anybody provide any idea or sample?
    Thanks

    Hi,
    i am not sure about javascript but yes treat text as Html is used to utilize HTML power in OBIEE.There are many examples of this.Common uses are a href,GoNav and PortalPagenav fuction.These function are mix of HTML and OBIEE.We gebrally use this option when we want to carry out some HTML operation on data rendered by OBIEE.Common example is to make data values a hyperlink for which we use a href
    See the below links for GoNav and a href
    http://108obiee.blogspot.com/2009/09/go-url-request-navigation-between.html
    Creating Hierarchies on Direct Database Requests
    You can also write java scripts here.
    Regards,
    Sandeep

  • Sent data as an HTML form using HTTP with Prolog

    Hello,
    I am trying to sent data to a marketplaces via HTTP Post like it is described in the online documentation ( http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm ) but it doesn't work.
    I am trying to send 2 Post variables. An account ID and the content (an IDoc)
    I made the following entry in the prolog:
    id=abc&content=
    I wrote a short php-Script to check weather the variables are sent correctly..
    [code]<?php
    $id = $_POST['id'];
    $content = $_POST['content'];
    $filename = "Filename ".$id.".xml";
    /* Open a new File */
    $fp = fopen($filename,"w");
    fwrite($fp,$content);
    /* Close file */
    fclose($fp);
    ?>[/code]
    This script just creates a new file with the id as the filename and the content as the content of the file.
    When I run the test, the script receives no variables...
    Is there something wrong with the prolog?
    Yours
    Thomas

    Thomas,
    did you try <b>&</b>id=abc&content= ?
    Just to stick to the documentation....
    Did you play with a <i>?</i> - may also help.
    Finally - did you try with a manually entered post (e.g. via telnet) whether your php is correct. But I assume you know what you do....
    Helge

  • Php data service with something other than localhost for mysql

    Hello
    I'm trying to use an external host as an mysql source.
    I've used the 'generate from template' option and filled it out with the correct data.
    The php code is on my localhost on my mac.
    I've made a testfile in php to test my service and it seems to work and get the data from the database.
    But flashbuilder doesn't see an operation and when I try to refresh it says:
    java.lang.IllegalArgumentException: protocol = http host = null
    I get the same error if I try to 'generate from database' and I click the 'connect database' button.
    in the hostname field, I've tried the url to the server and also the IP (in case of a DNS problem), but either of them generate the same error.
    I hope some one can help me, so I can really start trying out the new data services.
    Thanks
    Johan Velthuis

    Thanks for replying, it works now!
    At first I got the error below, but after putting a ZendFramework folder in the /Library/Webserver/Documents folder my settings got accepted.
    Warning: require_once(Zend/Loader/Autoloader.php) [function.require-once]: failed to open stream: No such file or directory in /Users/johan/Sites/test/tempgateway.php on line 27
    Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader/Autoloader.php' (include_path='.:/usr/lib/php:/Library/WebServer/Documents/ZendFramework/library') in /Users/johan/Sites/test/tempgateway.php on line 27
    I think this is some kind of bug too, since I let the project wizard create a local ZendFramework folder in my project automatically, but it did not get used.
    It would really be great to have the webroot on a remote server through ftp or maybe afp in a private network to the remote server, but with only tapping into the remote database already solves a lot of problems for the workflow.
    In order to make this work (mysql remote connection) one should create a user on the mysql server with host '%' instead of 'localhost'.
    Since this is not very secure, you could also set the host to your external IP (if its not dynamic), or give that user only rights to your testdatabase.
    Thanks,
    Johan Velthuis

  • How to refresh the data in published HTML?

    Hi All,
    I have created a Process Engineering diagram, whcih represents flow of material from Equipment to another equipment.
    I have binded the diagram to data from the data base and saved/published as HTML to view it in browser. So far it is fine.
    But the next step is: What happens when the data changes in the data base? The generated HTML became just a static diagram which is of not much use. If i want to refresh the data, then I need to publish again !!
    Is there a way to make service calls from HTML and update the data dynamically in HTML display?
    Note: I am using VISIO 2013 Professional edition
    Venkat

    Hi,
    If we had saved/published Visiso drawing as HTML file, we could not refresh the data source to control the HTML data directly. We need to re-publish, I think you do not want to do it.
    Thus, I recommend you use JavaScript or coding to invoke and refresh the background database when you modified it.
    The following artile may also help you:
    http://www.mathworks.com/help/matlab/ref/refreshdata.html
    If you have any question related to Programming/Code, post in HTML forums for further assistance.
    Regards,
    George Zhao
    TechNet Community Support

  • The session getattributes lost one row of data in the html input table

    Deal all,
    I have input three rows of data in a html table. But I found
    the last row will disappear and lost when it return the data to
    backend. I think that maybe caused there is an error checking which
    prompts an error and after that , I change the value of the last(3rd)
    row and try to save it. The last row disappear in the UI and being not
    sent to the back end. Here is my code of the JSP
    RosterCodeSetupCommand rosterCodeSetupCommand =
    (RosterCodeSetupCommand)request.getSession().getAttribute("rosterCodeSetupCommand");
    int cmd = rosterCodeSetupCommand.getCmd();
    int pageNo = rosterCodeSetupCommand.getPageNo();
    EtWorkTime etWorkTime = rosterCodeSetupCommand.getEtWorkTime();
    List policyList = rosterCodeSetupCommand.getPolicyList();
    As you can see, the EtWorkTime is get from the rosterCodeSetupCommand.
    Usually, the rosterCodeSetupCommand will have all the rows in the
    table. But now in EtWorkTime, I found last row data is lost.
    And in the UI, when I press Save, the last row is disappear. So I
    guess the problem is happened in
    request.getSession().getAttribute("rosterCodeSetupCommand"); But I
    can't figure out what can make the last row lost in this sentence.
    Would you mind to give me some hints on what will make this happen and
    I will try to trace the code by myself. Thanks.

    Hi,
    I am not sure are you using spring framework or what. if yes you can populate data in command object in referenceData method of simpleformcontroller and that data will be available to the UI.

  • Reg : data is not getting in the output

    hi team,
                 data is not getting in the  output, but it is getting in the debug mode
    REPORT ZSAPP10 .
    *tables : pernr.
    TABLES : PA0001.
    type-pools : slis.
    types : begin of itab,
            pernr type pernr,
            orgeh type orgeh,
            abkrs type abkrs,
            end of itab,
            begin of itab2,
            pernr type pernr,
            vorna type pad_vorna,
            nachn type pad_nachn,
            end of itab2.
    parameter : p_pernr like pa0001-pernr.
    *DATA:  g_cprog  tYPE SY-CPROG.
    data : i_itab1 type table of itab initial size 0,
           i_itab2 type table of itab2 initial size 0.
    data : w_itab type itab,
           w_itab2 type itab2.
    data : t_fieldcat type slis_t_fieldcat_alv,
            w_fieldcat type slis_fieldcat_alv.
    data : t_event type slis_t_event,
            w_event type slis_alv_event.
    data : t_listheader type slis_t_listheader,
           w_listheader type slis_listheader.
    *get pernr.
    w_event-form = 'TOP_OF_PAGE'.
    w_event-form = 'sub1'.
    append w_event to t_event.
    w_listheader-typ = 'H'.
    w_listheader-info = 'this is new top of page'.
    append w_listheader to t_listheader.
    select pernr
           orgeh
           abkrs from pa0001 into table i_itab1 where pernr = p_pernr.
    w_fieldcat-col_pos = 1.
    w_fieldcat-seltext_m = 'personnal no'.
    w_fieldcat-fieldname = 'pernr'.
    w_fieldcat-tabname = 'i_itab1'.
    w_fieldcat-outputlen = '20'.
    append w_fieldcat to t_fieldcat.
    w_fieldcat-col_pos = 2.
    w_fieldcat-seltext_m = 'org. unit'.
    w_fieldcat-tabname = 'i_itab1'.
    w_fieldcat-fieldname = 'orgeh'.
    w_fieldcat-outputlen = '20'.
    append w_fieldcat to t_fieldcat.
    w_fieldcat-col_pos = 3.
    w_fieldcat-seltext_m = 'payroll area'.
    w_fieldcat-tabname = 'i_itab1'.
    w_fieldcat-fieldname = 'abkrs'.
    w_fieldcat-outputlen = '20'.
    append w_fieldcat to t_fieldcat.
    *g_cprog = SY-CPROG.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
               I_INTERFACE_CHECK                 = ' '
               I_BYPASSING_BUFFER                =
               I_BUFFER_ACTIVE                   = ' '
                 I_CALLBACK_PROGRAM                = SY-CPROG
               I_CALLBACK_PF_STATUS_SET          = ' '
               I_CALLBACK_USER_COMMAND           = ' '
               I_CALLBACK_TOP_OF_PAGE            = ' '
               I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
               I_CALLBACK_HTML_END_OF_LIST       = ' '
               I_STRUCTURE_NAME                  =
               I_BACKGROUND_ID                   = ' '
               I_GRID_TITLE                      =
               I_GRID_SETTINGS                   =
               IS_LAYOUT                         =
                 IT_FIELDCAT                       = T_FIELDCAT
               IT_EXCLUDING                      =
               IT_SPECIAL_GROUPS                 =
               IT_SORT                           =
               IT_FILTER                         =
               IS_SEL_HIDE                       =
               I_DEFAULT                         = 'X'
               I_SAVE                            = ' '
               IS_VARIANT                        =
                 IT_EVENTS                         = T_EVENT
               IT_EVENT_EXIT                     =
               IS_PRINT                          =
               IS_REPREP_ID                      =
               I_SCREEN_START_COLUMN             = 0
               I_SCREEN_START_LINE               = 0
               I_SCREEN_END_COLUMN               = 0
               I_SCREEN_END_LINE                 = 0
               IT_ALV_GRAPHICS                   =
               IT_ADD_FIELDCAT                   =
               IT_HYPERLINK                      =
               I_HTML_HEIGHT_TOP                 =
               I_HTML_HEIGHT_END                 =
               IT_EXCEPT_QINFO                   =
             IMPORTING
               E_EXIT_CAUSED_BY_CALLER           =
               ES_EXIT_CAUSED_BY_USER            =
                 TABLES
                 T_OUTTAB                          = I_ITAB1[]
              EXCEPTIONS
                PROGRAM_ERROR                     = 1
                OTHERS                            = 2
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
          FORM sub1                                                     *
    FORM sub1.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          IT_LIST_COMMENTARY       = t_listheader
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
    ENDFORM.                                                    " sub1

    write this way...
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
            EXPORTING
            i_callback_program                = w_repid
            is_layout                = wa_layout
            i_callback_user_command  = 'USER_COMMAND_ACCT'
            i_grid_title             = 'Document Status Report'
             it_fieldcat                       = it_fcat[]
         IT_SORT                        = IT_SORT[]
             it_events                = it_events
             TABLES
               t_outtab                        = it_final_data[]
          EXCEPTIONS
            program_error                     = 1
            OTHERS                            = 2.

  • I just got a new phone today the iphone 5c and i plugged it into itunes. i wanted to get all of my data from my iphone 4s but when i synced my phone all of my iphone 3 data was on my new phone how do i get my iphone 4 data on my new phone?

    I just got a new phone today the iphone 5c and i plugged it into itunes. i wanted to get all of my data from my iphone 4s but when i synced my phone all of my iphone 3 data was on my new phone how do i get my iphone 4 data on my new phone?

    Did you choose the wrong back up? There should be a drop box when you go to "Restore from Back up" in iTunes and your iPhone is plugged in, on the Summary page. Choose the correct back up. If you can't find one, and you still have your device, back up your iPhone 4 again and then choose that back up. Or check for an old iCloud back up if you have one.

  • How to display an "All Day Event" date correctly in an integrated SSRS Report?

    I have two event items in a calendar list in SharePoint 2010. Both items have the same start time and end time. One of them, however, has the "All Day Event" checkbox checked. If I access them through a REST service, this is how the data is
    returned:
    <!-- item 1 -->
    <d:StartTime m:type="Edm.DateTime">2014-03-21T00:00:00</d:StartTime>
    <d:EndTime m:type="Edm.DateTime">2014-03-25T23:55:00</d:EndTime>
    <d:AllDayEvent m:type="Edm.Boolean">false</d:AllDayEvent>
    <!-- item 2 -->
    <d:StartTime m:type="Edm.DateTime">2014-03-21T00:00:00</d:StartTime>
    <d:EndTime m:type="Edm.DateTime">2014-03-25T23:59:00</d:EndTime>
    <d:AllDayEvent m:type="Edm.Boolean">true</d:AllDayEvent>
    I have a report in the same SharePoint 2010 site that uses SSRS in integrated mode. The data source is the calendar list mentioned above.  The date fields are not formatted, just displayed as them come from the list/database.
    My locale is set to en-US. When I run the report, the start date for item 1 is displayed as "3/21/2014" ('all day' set to false) but the start date for item 2 is displayed as "3/20/2014" which is incorrect ('all day' set to true).
    I did some research online and found out that SharePoint stores all date fields as UTC except for 'All Day Events', which are stored in local time (our servers are in Central Time, but I'm running the report fom Pacific Time, in the US).
    I coudn't find a solution to display the date correctly in the integrated SSRS report. Is there a way, maybe some straightforward formatting, to show All Day Event dates correctly? I tried adding hours but this is inconsistent with daylight saving hour changes.
    I would appreciate any help.
    C#, Sharepoint

    Hi SharpBud,
    The date for all day event stored in SQL in GMT time, the start time for an all day event returns the start time in GMT time, which is not the current time most likely.
    This is a confirmed issue, as a workaround, I would suggest you to use a calculate column for the event for the column, using the following format:
    IF(TEXT(([End Time]-[Start Time])-TRUNC(([End Time]-[Start Time]),0),"0.000000000")="0.999305556",IF([Start Time]=ROUND([Start Time],0),[Start Time],DATE(YEAR([Start Time]),MONTH([Start
    Time]),DAY([Start Time])+1)),[Start Time])
    Thanks,
    Qiao Wei
    TechNet Community Support

Maybe you are looking for