Styling last link in list using php

I'm using a "border right" to separate my horizontal navigation links but I would like to eliminate the border from the last link. I know how to do this in HTML but I'm trying to figure out if there's a php code I can use. Is it possible?

Hi Stiankd,
As croute1 suggested, check if the account used to create the item is a system account or not.
It is by design that system account cannot start workflow automatically in SharePoint.
If it's not the case, please check ULS logs to see if anything unexpected occurred.
For SharePoint 2010, by default, ULS log is at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS.
Thanks,
Victoria
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • Code to get friend list using PHP

    Hi all ,
    I need to know how to bring the friendlist of a particullar user from it's email-id as user id in an application.
    Thanks and regards,
    Deekay.

    Hi all ,
    I need to know how to bring the friendlist of a particullar user from it's email-id as user id in an application.
    Thanks and regards,
    Deekay.

  • Can the last link in a thunderbolt daisy-chain be a non-thunderbolt monitor using miniDisplay port?

    Can the last link in a thunderbolt daisy-chain be a non-thunderbolt monitor, using miniDisplay port?
    For example, Mac mini <--> external SSD <--> apple cinema display 30" (using miniDisplay port adaptor plugged into the SSD's second thunderbolt port)

    TechnoMax wrote:
    for instance STAE122 or STAE 127?
    FWIW, STAE129 is the current version TB adapter
    that is self powered and has TB daisy chain port.
    STAE122 and STAE127 are older versions and
    not the current model, though there may be stock of
    these around.  As to whether this will solve your issue,
    I don't know.
    Can I trick the Mac under Bootcamp as OS to use HDMI for the monitor? Dell officially says that the monitor can only accept 1900x1080 over HDMI, but some have fiddled wth different computers with custom settings that worked with some Monitors but mostly under Linux and to Dell 2711.
    The MacMini HDMI port is hardware limited to 1980x1200.

  • How to display dynamic hyper link in list view webpart using xslt ?

    Hello,
    I have changed design layout of list using xslt webpart.
    However, still I am unable to update the hyperlink value for the same.
    I have column named "PageLink" that is having http link value for example "http://google.com"
    I require to display that value over the Title Text and hence I have updated code as below.
    But its not updating href link as per the requirement !
    <xsl:variable name="varPageLink">
    <xsl:value-of select="@PageLink" />
    </xsl:variable>
    <a href="{@varPageLink}" target="_blank" onmouseover="javascript:this.style.cursor='hand';" >
    <xsl:value-of select="@Title"></xsl:value-of>
    </a>
    Can anyone please
    Dipti Chhatrapati

    Hi,
    In my case safelinkurl  == varPageLink
    what I have defined as xsl variable.
    However, by specifying the link value in list as relative URL - my code has worked as per the expectation
    There was fault in link value as this xslt has not accepted absolute URL !
    I hope this finding can help others :) !
    Thank you for your time !
    Kind Regards,
    Dipti Chhatrapati

  • Styling command link inside a panel List

    Hi All,
    I have the following layout:
    PanelBox
    --panelList
    -- CommandLink
    I would like to style the command link under the panel List component. I have tried skinning the command Link component individually as well as applying styling to panel List component. Both didn't work( I haven't debugged this yet with firebug). From the skinning document, it has been mentioned that Style the root component of the command Link/Panel List. In this case, how do we style the command Link component. Basically, i would like to apply style for Link active, hover and focus.
    Thanks,
    Bala

    As far as I am aware, you would need to skin the specific component irrespective of the parent componet/root.
    For your usecase, you take look at the skinning demo application for the various skinning selectors for the command link at
    http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/commandLink.jspx
    Thanks,
    Navaneeth

  • Email flex list contents using php

    I have dragged 5 items from a datagrid to a drop-enabled list component. Now I want the user to be able to email himself the list. I am using PHP and have an HTTP service request and PHP mailer code but I do not know how to get the data that is in the list into variables that I can use with my php code.
    <mx:HBox>
    <mx:VBox>
         <mx:DataGrid dataProvider="{restaurantsAC}" dragEnabled="true" height="300" width="600" id="restaurantsDG">
              <mx:columns>
              <mx:DataGridColumn dataField="restaurantName" />
              <mx:DataGridColumn dataField="restaurantAddress" />
              <mx:DataGridColumn dataField="restaurantCuisine" />
              <mx:DataGridColumn dataField="restaurantPrice" />
              </mx:columns>
            mx:DataGrid>
         <mx:LinkButton label="Show my Favorites List" click="showFavoritesList()"/>
    </mx:VBox>
    <mx:Canvas id="favoritesListContainer" height="100%" includeInLayout="false" visible="false">
    <mx:SWFLoader source="assets/myFavorites.swf" x="10" y="10"/>
    <mx:List id="favoritesList" x="10" y="40" dropEnabled="true"  labelField="restaurantName" />
    </mx:Canvas>
    </mx:HBox>
    <mx:Button click="sendFavorites()" />    
    public function sendFavorites():void {
                    var h:HTTPService=new HTTPService();
                    h.url="http://wmywebsite.com/mail.php";
                    h.request=??????????????;
                    h.method="POST";
                    h.send();
    Thanks for any assistance!

    you fetch your datagrid items from PHP itself right????
    then, while sending mail in php, generate same set of data and mail it.. dont bother about the datagrid items.
    if you use filter/sorting in FLEX, then you can apply similar rules in php too before sending the email.
    or, if you manipulate the collection in front end ( by drag/drop ), then just concatenate the ids of items, and send to php, in php you can use EXPLODE to get individual items to mail.

  • When I use Safari on my iPad 1/4 of the left side of the screen is grey. It seeme devoted to "shared links", "reading list", or "History". I would like to get rid of that. How can I do it?

    When I use Safari on my iPad 2, more than 1/4 of the left side of the screen is used for "shared links", "reading list", or "History". I would like to hide that. How do I do that?

    Tap the Book icon seen left of the address box.
    Best.

  • Implement Ordered List using Links

    hey guys! i need to write a program that implements an ordered list using links. My first step has always been to find examples and read them over for help. However, i am having a hard time finding this one and i was wondering is anyone had or knows where to find an example of a OrderedLinkList using LinearNodes. It would be great if it had these classes, but not necessary:
    ListADT<T>
    OrderedListADT<>
    LinkedList<T>
    OrderedLinkList<T>
    LinearNode<E>
    LinkedIterator<T>
    Any help would be greatly appreciated and thanks in advance!
    scottybh

    This is clearly some kind of exercise, otherwise you'd just use LinkedList<T>. LinkedList is ordered (always returns the elements in the same order) and can be sorted by providing a Comparator<T> to Collections.sort().
    I'd suggest you do the exercise or ask a more specific question.
    Brian

  • Creating category lists with php (David Powers???)

    I am creating a dynamic content website with numerous entries under various categories. The categories are kept in a seperate mysql that looks something like this (an example):
    ID
    Main
    Sub
    1
    food
    candy
    2
    food
    meat
    3
    drink
    coke
    4
    drink
    snapple
    5
    drink
    dr. pepper
    6
    food
    bread
    I have created a page where the user can see all of the main categories. In the above case, food and drink. I do not want 'food' and 'drink' to be repeated three times. So I have used php code which david powers gives in his recipe: http://cookbooks.adobe.com/post_Create_nested_lists_from_a_recordset__PHP_-16720.html.
    The problem is that in the above case, the page will list: food, drink, food. This is because when the php passes through the 'drink's it then sees the last 'food' as being unique.
    How do I get rid of this issue (without having to to continuosly reorder my mysql table)?
    thanks
    P.S. I am posting this here and not on the above recipe page because I am hoping for a quicker response.

    Re: David Powers cs5 with php...Zend
    Ok I'm gonna try and help ya until David gets here. Since I use Zend and have read parts of his book.
    First, are you trying to install zend at godaddy?
    Your include file is odd. "include_path='.:/usr/local/php5/lib/php:C:\Users\Becky\Desktop\colts \ZF\ZendFramework-1.11.4-minimal\library') in/home/content/79/7340479/html/library.php" - means PHP and Zend are located on 2 different machines
    I appreciate it. the "C:\Users\Becky\Desktop\colts \ZF\ZendFramework-1.11.4-minimal\library' is where the file path.I use Godaddy but I have it zend on my computer and am just trying to get it to run. I tried running it from desktop, C:(where it's at), andneven put it in the file manager on godaddy and tried that path...
    the code I'm using is:
    <?php
    $library = 'C:\Users\Becky\Desktop\colts\ZF\ZendFramework-1.11.4-minimal\library';
    set_include_path(get_include_path() . PATH_SEPARATOR . $library);
    require_once('Zend/Loader/Autoloader.php');
    $loader = Zend_Loader_Autoloader::getInstance();
    if ($loader) {
    echo 'OK';
    } else {
    echo 'We have a problem';
    I'm followed the book step by step but...
    when i click autoloader.php in the tab bar it has a get option. but when i click it it says "operation failed because it is not on the remote site.

  • How use PHP to read image files from a folder and display them in Flex 3 tilelist.

    Hello. I need help on displaying images from a folder dynamically using PHP and display it on FLEX 3 TileList. Im currently able to read the image files from the folder but i don't know how to display them in the TileList. This is my current code
    PHP :
    PHP Code:
    <?php
    //Open images directory
    $imglist = '';
    $dir = dir("C:\Documents and Settings\april09mpsip\My Documents\Flex Builder 3\PHPTEST\src\Assets\images");
    //List files in images directory
    while (($file = $dir->read()) !== false)
    if (eregi("gif", $file) || eregi("jpg", $file) || eregi("png", $file))
    echo "filename: " . $file . "\n";
    $dir->close();
    ?>
    FLEX 3 :
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="pic.send();">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    import mx.rpc.events.FaultEvent;
    import mx.events.ItemClickEvent;
    import mx.rpc.events.ResultEvent;
    public var image:Object;
    private function resultHandler(event:ResultEvent):void
    image = (event.result);
    ta1.text = String(event.result);
    private function faultHandler(event:FaultEvent):void
    ta1.text = "Fault Response from HTTPService call:\n ";
    ]]>
    </mx:Script>
    <mx:TileList x="31" y="22" initialize="init();" dataProvider = "{image}" width="630" height="149"/>
    <mx:String id="phpPicture">http://localhost/php/Picture.php</mx:String>
    <mx:HTTPService id="pic" url="{phpPicture}" method="POST"
    result="{resultHandler(event)}" fault="{faultHandler(event)}"/>
    <mx:TextArea x="136" y="325" width="182" height="221" id="ta1" editable="false"/>
    <mx:Label x="136" y="297" text="List of files in the folder" width="182" height="20" fontWeight="bold" fontSize="13"/>
    </mx:Application>
    Thanks. Need help as soon as possbile. URGENT.

    i have made some changes, in the php part too, and following is the resulting code( i tried it, and found that it works.):
    PHP Code:
    <?php
    echo '<?xml version="1.0" encoding="utf-8"?>';
    ?>
    <root>
    <images>
    <?php
    //Open images directory
    $dir = dir("images");
    //List files in images directory
    while (($file = $dir->read()) !== false)
    if (eregi("gif", $file) || eregi("jpg", $file) || eregi("png", $file))
    echo "<image>" . $file . "</image>"; // i expect you to use the relative path in $dir, not C:\..........
    //$dir->close();
    ?>
    </images>
    </root>
    Flex Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute"
    creationComplete="callPHP();">
    <mx:Script>
    <![CDATA[
    import mx.rpc.http.HTTPService;
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    import mx.rpc.events.FaultEvent;
    import mx.events.ItemClickEvent;
    import mx.collections.ArrayCollection;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    private var arr:ArrayCollection = new ArrayCollection();
    private function callPHP():void
    var hs:HTTPService = new HTTPService();
    hs.url = 'Picture.php';
    hs.addEventListener( ResultEvent.RESULT, resultHandler );
    hs.addEventListener( FaultEvent.FAULT, faultHandler )
    hs.send();
    private function resultHandler( event:ResultEvent ):void
    arr = event.result.root.images.image as ArrayCollection;
    private function faultHandler( event:FaultEvent ):void
    Alert.show( "Fault Response from HTTPService call:\n " );
    ]]>
    </mx:Script>
    <mx:TileList id="tilelist"
    dataProvider="{arr}">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Image source="images/{data}" />
    </mx:Component>
    </mx:itemRenderer>
    </mx:TileList>
    </mx:Application>

  • How do i create a styled spry mysql driven menu using dreamweaver cs4?

    How do i create a styled spry mysql driven menu using dreamweaver cs4?
    I have cs4. I gave up on using MS sql as a datasource. I finally got a php successfull connection in my PHP web page.
    I would like a nice video tutorial for creating a dynamic menu.
    I guess i can style it by attaching a css file to the page. Are their any already designed css files out there in some online area?
    i am not a good designer. so i would like to simply have a collection of menu_style.css files and choose what looks good.
    But first i need to build the spry menu from the mysql database.
    Any help is apprechiated.
    My first choice was to maintain the data in an MS sql server file. If i could directly attach to an ms sql datasource then that would be the best option.
    I dont think i want to have to re-generate an XML datasource each time i add or modify the menu. I would like to maintain the MS Sql or mySql file instead.
    If i could generate an XML datasource from the MS Sql database then I may even prefere that, but i have spent a lot of time trying to figure out how to do that and not had any success. So i prefere working in MS sql but would settle for mySql if i had to.
    Thanks
    Jerry

    To create a dynamic menu take a look here http://labs.adobe.com/technologies/spry/samples/menubar/MenuFromNestedData.html#
    The XML file for the above menu looks like this
    <?xml version="1.0" encoding="utf-8"?>
    <items>
         <item id="0001" type="donut">
              <name>Cake</name>
              <ppu>0.55</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
                   <batter id="1002">Chocolate</batter>
                   <batter id="1003">Blueberry</batter>
                   <batter id="1003">Devil's Food</batter>
              </batters>
              <topping id="5001">None</topping>
              <topping id="5002">Glazed</topping>
              <topping id="5005">Sugar</topping>
              <topping id="5007">Powdered Sugar</topping>
              <topping id="5006">Chocolate with Sprinkles</topping>
              <topping id="5003">Chocolate</topping>
              <topping id="5004">Maple</topping>
         </item>
         <item id="0002" type="donut">
              <name>Raised</name>
              <ppu>0.55</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
              </batters>
              <topping id="5001">None</topping>
              <topping id="5002">Glazed</topping>
              <topping id="5005">Sugar</topping>
              <topping id="5003">Chocolate</topping>
              <topping id="5004">Maple</topping>
         </item>
         <item id="0003" type="donut">
              <name>Buttermilk</name>
              <ppu>0.55</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
                   <batter id="1002">Chocolate</batter>
              </batters>
         </item>
         <item id="0004" type="bar">
              <name>Bar</name>
              <ppu>0.75</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
              </batters>
              <topping id="5003">Chocolate</topping>
              <topping id="5004">Maple</topping>
              <fillings>
                   <filling id="7001">
                        <name>None</name>
                        <addcost>0</addcost>
                   </filling>
                   <filling id="7002">
                        <name>Custard</name>
                        <addcost>0.25</addcost>
                   </filling>
                   <filling id="7003">
                        <name>Whipped Cream</name>
                        <addcost>0.25</addcost>
                   </filling>
              </fillings>
         </item>
         <item id="0005" type="twist">
              <name>Twist</name>
              <ppu>0.65</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
              </batters>
              <topping id="5002">Glazed</topping>
              <topping id="5005">Sugar</topping>
         </item>
         <item id="0006" type="filled">
              <name>Filled</name>
              <ppu>0.75</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
              </batters>
              <topping id="5002">Glazed</topping>
              <topping id="5007">Powdered Sugar</topping>
              <topping id="5003">Chocolate</topping>
              <topping id="5004">Maple</topping>
              <fillings>
                   <filling id="7002">
                        <name>Custard</name>
                        <addcost>0</addcost>
                   </filling>
                   <filling id="7003">
                        <name>Whipped Cream</name>
                        <addcost>0</addcost>
                   </filling>
                   <filling id="7004">
                        <name>Strawberry Jelly</name>
                        <addcost>0</addcost>
                   </filling>
                   <filling id="7005">
                        <name>Rasberry Jelly</name>
                        <addcost>0</addcost>
                   </filling>
              </fillings>
         </item>
    </items>
    Then remains the manner in which you create the XML file which can be found here http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html
    One you have your menu up and running, you will be able to apply styles and effects

  • How do I query a SharePoint List using a url and filtering on date?

    I am reading a SharePoint list using jquery.  Everything is working fine
    except for the filter.  Each list item has an expiration date.  I want to retrieve JUST the items that have not expired (Expires > Today) but I can't figure out the url syntax and I've been searching all day for an example and
    can't find one.  Could someone please help?!?  See bold code below.
    Thanks,
    Glen
    $(document).ready(function ()
    <strong>var qryWCFUrl = "/sites/MMTP1/_vti_bin/listdata.svc/MMAlerts?$filter=(Expires gt '08/10/2011')&$orderby=Title";
    </strong> $.getJSON(qryWCFUrl, function (results)
    $.each(results.d.results, function (i, mmAlert)
    itemID = mmAlert.Id;
    mmTitle = mmAlert.Title;
    mmClass = mmAlert.ClassValue;
    //alert("Item="+itemID+" Title="+mmTitle+" Class="+mmClass);
    AddMMStatus(mmAlert.Id,mmAlert.Title,mmAlert.ClassValue);

    Fadi,
    Thanks for your response.  I actually have another version of the code that uses the SP client objects that works.  The problem is site boundries.  Let me give a more complete project explanation.
    I am creating a master page for a new intranet.  As part of this master page, I want to read from an SP list of alerts and post each alert (if not expired) in the SP status bar.  I've gotten this to work with SP client objects and jquery (except
    for the date filter part).  Both of these solutions work fine on the top site level.  BUT when trying it out at the sub-site level, the SP client objects version of my code fails. The jQuery version works except the date filtering.
    I looked at the example from your link and it looks like a bit of a hybrid to my approaches:  JQuery with CAML.  My question is; does this example permit me to access a list in the top-level site from the subsites?  Please excuse my ignorance,
    but I am an EXTREME newbie in this having spent the past 8 years as a VB.Net developer and a little bit of ASP.Net.
    Below are the two different versions of my code in different versions of my master page definition:
    SP Client Object Version
    <script type="text/javascript">
    // <![CDATA[
    ExecuteOrDelayUntilScriptLoaded(LoadAlerts, "sp.js");
    var ctx;
    var currAlerts;
    function LoadAlerts() {
    ctx = new SP.ClientContext.get_current();
    list = ctx.get_web().get_lists('/sites/MMTP1/Lists/').getByTitle('MMAlerts');
    var cmlQry = new SP.CamlQuery();
    var camlExp = '<query><Query><Where><Gt><FieldRef Name="Expires" /><Value IncludeTimeValue="FALSE" Type="DateTime"><Today /></Value></Gt></Where></Query></query>';
    cmlQry.set_viewXml(camlExp);
    currAlerts = list.getItems(cmlQry);
    ctx.load(currAlerts,'Include(ID,Title,Class)');
    ctx.executeQueryAsync(GetAlertsSuccess,GetAlertsFailed);
    function GetAlertsSuccess() {
    var lstEnum = currAlerts.getEnumerator();
    while(lstEnum.moveNext()) {
    var mmAlert = lstEnum.get_current();
    AddMMStatus(mmAlert.get_item('ID'),mmAlert.get_item('Title'),mmAlert.get_item('Class'));
    function GetAlertsFailed(sender,args) {
    alert('Alerts load failed: ' + args.tostring);
    function AddMMStatus(msgID, strTitle, strClass) {
    var statID;
    var statClass;
    var statTitle;
    statClass = "<a href=\"#\" onclick=\"javascript:DisplayAlert("+msgID+");\">" + strClass + ": </a>";
    statTitle = "<a href=\"#\" onclick=\"javascript:DisplayAlert("+msgID+");\">" + strTitle + "</a>";
    statID = SP.UI.Status.addStatus(statClass, statTitle, true);
    SP.UI.Status.setStatusPriColor(statID,"red");
    function DisplayAlert(msgID) {
    var options = {
    title: "Miller & Martin Alert!",
    url: "/sites/MMTP1/SitePages/ShowAlert02.aspx?ID="+msgID,
    allowMaximize: false,
    showClose: true
    SP.UI.ModalDialog.showModalDialog(options);
    // ]]>
    </script>
    JQuery Version (works except for filtering by date)
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript" >
    // <![CDATA[
    var itemID;
    var mmTitle;
    var mmClass;
    $(document).ready(function ()
    var qryWCFUrl = "/sites/MMTP1/_vti_bin/listdata.svc/MMAlerts?$filter=(Expires gt '08/10/2011')&$orderby=Title";
    $.getJSON(qryWCFUrl, function (results)
    $.each(results.d.results, function (i, mmAlert)
    itemID = mmAlert.Id;
    mmTitle = mmAlert.Title;
    mmClass = mmAlert.ClassValue;
    AddMMStatus(mmAlert.Id,mmAlert.Title,mmAlert.ClassValue);
    function AddMMStatus(msgID, strTitle, strClass, strSeverity) {
    var statID;
    var statClass;
    var statTitle;
    statClass = "<div id=\"mmAlertTitle\" style=\"display:inline-block;\"><a href=\"#\" onclick=\"javascript:DisplayAlert("+msgID+");\">" + strClass + ": </a></div>";
    statTitle = "<div id=\"mmAlertDetail\" style=\"display:inline-block;\"><a href=\"#\" onclick=\"javascript:DisplayAlert("+msgID+");\">" + strTitle + "</a></div>";
    statID = SP.UI.Status.addStatus(statClass, statTitle, true);
    SP.UI.Status.setStatusPriColor(statID,"green");
    function DisplayAlert(msgID) {
    var options = {
    title: "Miller & Martin Alert!",
    url: "/sites/MMTP1/SitePages/ShowAlert02.aspx?ID="+msgID,
    allowMaximize: false,
    showClose: true
    SP.UI.ModalDialog.showModalDialog(options);
    // ]]>
    </script>

  • Hide view links in list view in sharepoint 2013

    Hi
    How I can hide view links in list view in sharepoint 2013. Like below pic?
    Thanks.

    for that you can use id of its parent span element something like below.
    #WPQ2_ListTitleViewSelectorMenu_Container {
    display: none !important;
    Thanks.

  • Whats the best practice to simply manage data using php sql?

    Hi
    I'm trying to follow some tutorials but there is too much old material and I'm getting confused.
    This is basic. I have a db and I want to movement data from flex.
    So, this is how I'm trying to do so. As a newbie, I will try to be clear.
    I have created a simple table called "teste" using myphpadmin with only 2 fields for testing.  (id, name).
    I have created the services automaticly using flex to generate a php code.
    This code is a simple exercise with buttons to add, update, and delete a Item.
    Although there is a lot of auto-generated code, I had a lot of work (due to my ignorance) to make it work.
    It fairly works, but I know veteran users would make it better, smarter, shorter, and ALL I WANT is a better (and simple) example to follow
    Please.
    Thanks in advance
    ps. I have set my table field "name" to the 'utf8_unicode_ci' while creating it and I it seems the adobe's generated php can't handle latin chars.
    THE CODE 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"
                      xmlns:valueObjects="valueObjects.*"
                      xmlns:testeservice="services.testeservice.*"
                      creationComplete="application1_creationCompleteHandler()" >
    <fx:Script>
              <![CDATA[
                   import mx.collections.ArrayCollection;
                   import mx.controls.Alert;
                   import mx.events.FlexEvent;
                   import mx.events.ListEvent;               
                   import spark.events.IndexChangeEvent;
                   import spark.events.TextOperationEvent;               
                   //selected item
                   public var selId:int;
                   //------GET ITEM (init)------------------------------------------------------
                   protected function application1_creationCompleteHandler():void
                        tx_edit.addEventListener(KeyboardEvent.KEY_UP,parallelEdit)
                        getAllTesteResult.token = testeService.getAllTeste();                    
                   //------SELECTED ITEM ID------------------------------------------------------          
                   protected function list_changeHandler(event:IndexChangeEvent):void
                        selId = event.currentTarget.selectedItem.id;
                        lb_selectedId.text = "sel id: "+ selId;
                        if(tb_edit.selected) tx_edit.text = event.currentTarget.selectedItem.name;
                   //------ADD ITEM-----------------------------------------------------
                   protected function button_clickHandler(event:MouseEvent):void
                        var teste2:Teste     =     new Teste();
                        teste2.name                = nameTextInput.text;
                        createTesteResult.token = testeService.createTeste(teste2);
                        application1_creationCompleteHandler();
                   //------UPDATE ITEM (in parallel)-----------------------------------------------------
                   private function parallelEdit(e:KeyboardEvent):void
                        if(!isNaN(selId) && selId > 0){
                             if(tb_edit.selected){
                                  //uptadating
                                  teste2.id                     = selId;
                                  teste2.name                = tx_edit.text;
                                  updateTesteResult.token = testeService.updateTeste(teste2);
                   //------UPDATE ITEM (button click)-----------------------------------------------------
                   protected function button3_clickHandler(event:MouseEvent):void
                        teste2.id                     = parseInt(idTextInput2.text);
                        teste2.name                = nameTextInput2.text;
                        updateTesteResult.token = testeService.updateTeste(teste2);
                   //------DELETE ITEM------------------------------------------------------     
                   protected function button2_clickHandler(event:MouseEvent):void
                        if(!isNaN(selId) && selId > 0)     deleteTesteResult.token = testeService.deleteTeste(selId);
              ]]>
         </fx:Script>
         <fx:Declarations>
              <!-- this part was mostly auto generated -->
              <valueObjects:Teste id="teste"/>
              <testeservice:TesteService id="testeService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
              <s:CallResponder id="createTesteResult"/>          
              <s:CallResponder id="getAllTesteResult"/>
              <s:CallResponder id="deleteTesteResult"/>
              <s:CallResponder id="updateTesteResult"/>
              <valueObjects:Teste id="teste2"/> 
         </fx:Declarations>
              <!-- this are just visual objects. Renamed only necessary for this example
                    most lines were auto-generated-->
         <!--Create form -->
         <mx:Form defaultButton="{button}">
              <mx:FormItem label="Name">
                   <s:TextInput id="nameTextInput" text="{teste.name}"/>
              </mx:FormItem>
              <s:Button label="CreateTeste" id="button" click="button_clickHandler(event)"/>
         </mx:Form>     
         <!--Create Result -->
         <mx:Form x="10" y="117">
              <mx:FormItem label="CreateTeste">
                   <s:TextInput id="createTesteTextInput" text="{createTesteResult.lastResult as int}" />
              </mx:FormItem>
         </mx:Form>
         <!--List -->
         <s:List x="10" y="179" id="list" labelField="name" change="list_changeHandler(event)">
              <s:AsyncListView  id="anta" list="{getAllTesteResult.lastResult}" />
         </s:List>
         <!--Update in parallel -->
         <s:Label x="147" y="179" id="lb_selectedId"/>
         <s:Button x="147" y="222" label="Remove" id="button2" click="button2_clickHandler(event)"/>
         <s:TextInput x="225" y="257" id="tx_edit"/>
         <s:ToggleButton x="147" y="257" label="Edit" id="tb_edit"  />
         <!--Update with button click -->
         <mx:Form defaultButton="{button3}" x="220" y="0">
              <mx:FormItem label="Id">
                   <s:TextInput id="idTextInput2" text="{teste2.id}"/>
              </mx:FormItem>
              <mx:FormItem label="Name">
                   <s:TextInput id="nameTextInput2" text="{teste2.name}"/>
              </mx:FormItem>
              <s:Button label="UpdateTeste" id="button3" click="button3_clickHandler(event)"/>
         </mx:Form>
    </s:Application>

    Sorry - I had to read up on what a base table block was.
    I think I am. In this particular form I have one block - a customer block which has its items pulled in from the customer table, no problems there, it works fine.
    My problem is I need to make it as user friendly as possible, if the user inputs the wrong customer ID (or does not know their name) I want them to be able to scroll through the customer list using an up or down button.
    When do you have the commit_form statement run, (the OK button) after every change or after a block of changes ? Commit writes the changes to the database giving other users access to that data right ?! How often should it be used ?

  • How to use Php a function in an insert transaction ?

    Hi,
    I want to insert a computed data (string) based on a date (dd-mm-aaaa hh:mm:ss).
    The result must be AAAAMM Year+month without spaces.
    So i tried this :
    $ins_agenda->addColumn("aaaa_mm", "string", "POST", "date({date_debut_effective},'Ym')");
    But it failed.
    Is it possible to use Php fonction with an appropriated syntax ?
    Thanks for your help. JM.

    I get this :
    tNG_fields.getColumnValue:
    Column date_debut_effective is not part of the current transaction
    In fact, date_debut_effective is the form field name, deb_eve is the database field name (transaction name).
    aaaa_mm is another database field in the same table, same transaction.
    aaaa_mm should only be computed with deb_eve data.
    When I use deb_eve as transaction field name in the trigger, the targeted database field (aaaa_mm) remain empty after the insert.
    The logic should like this :
    Form field (format datetime)
    -> database X field deb_eve (same format datetime)
    -> computed database X field aaaa_mm (format aaaamm or Ym)
    I use this : $ins_agenda_previsionnel->addColumn("aaaa_mm", "STRING_TYPE", "CURRVAL", ""); to fill aaaa_mm field.
    My code :
    before trigger
    // date de début effective vers date aaaamm
    function Trigger_Custom_aaaamm(&$tNG) {
    $date_field = $tNG->getColumnValue(deb_eve);
    $tNG->setColumnValue("aaaa_mm", date($date_field,'Ym') );
    insert transaction
    // Make an insert transaction instance
    $ins_agenda_previsionnel = new tNG_insert($conn_cnxWarh);
    $tNGs->addTransaction($ins_agenda_previsionnel);
    // Register triggers
    $ins_agenda_previsionnel->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "");
    $ins_agenda_previsionnel->registerTrigger("BEFORE", "Trigger_Custom_aaaamm", 98);
    $ins_agenda_previsionnel->registerTrigger("AFTER", "Trigger_LinkTransactions3", 98);
    $ins_agenda_previsionnel->registerTrigger("ERROR", "Trigger_LinkTransactions3", 98); //liste IRP
    // Add columns
    $ins_agenda_previsionnel->setTable("agenda_previsionnel");
    $ins_agenda_previsionnel->addColumn("id_agent", "NUMERIC_TYPE", "VALUE", "{rsfiche_agent.id_agent}");
    $ins_agenda_previsionnel->addColumn("aaaa_mm", "STRING_TYPE", "CURRVAL", "");
    $ins_agenda_previsionnel->addColumn("titre", "STRING_TYPE", "VALUE", "ENTREE AGENT");
    $ins_agenda_previsionnel->addColumn("evenement", "STRING_TYPE", "VALUE", "Entrée Agent {Vue_Visu.prenom} {Vue_Visu.nom_complet} ");
    $ins_agenda_previsionnel->addColumn("deb_eve", "DATE_TYPE", "POST", "date_debut_effective");
    $ins_agenda_previsionnel->addColumn("fin_eve", "DATE_TYPE", "VALUE", "{Vue_Visu.date_fin_contrat}");
    $ins_agenda_previsionnel->addColumn("frequence", "STRING_TYPE", "VALUE", "1");
    $ins_agenda_previsionnel->setPrimaryKey("id_agenda", "NUMERIC_TYPE");

Maybe you are looking for

  • Minidisplay to duallink dvi not working

    i'm having trouble getting my new mac mini to provide full resolution to my existing dell u2711 monitor. i purchased the minidisplay to dual link dvi connector (for $100!!) and it still isn't working. i've tried all the trouble-shooting suggestions a

  • Changing My Short Name

    Can anyone tell me in layman's terms how to change my account short name? Thanks.

  • Can anyone explain the difference ...

    We are encouraged to buy movies through iTunes to put on our iPods. But doing so results in: one copy on our computer under iTunes, one copy on the iPod/touch, and if we're fastidious, one copy on whatever device we use to perform routine backups. So

  • How can I insert transitions between clips?

    I finished editing my seperate clips and now want to insert transitions between the clips, but that menu option is grayed out, so is the Movie Properties menu. What do I do?

  • Report failed schedule instances

    Hi, Is there a way to generate a report to show the failed schedules in a given time scale (e.g. in last day or week)? My reason for wanting on is that I do not wish to log in to the BOXI CMC every week or day, goto the instances page, enter the crit