JQuery JSON set items

Hi all,
I used to use the less functional ajax call using:
var ajaxRequest = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=APP_MY_OD', 1);
//add all my variables I wish to access in my OD
ajaxRequest.add('P1_X', $v('P1_X'));
data = ajaxRequest.get();
//my OD then sets a string formatted JSON for return using apex_util.json_from_items('P1_X') and adds to session
//with the return string in JSON format set the items value using json_SetItems
json_SetItems(data);
So I understand that the function json_SetItems parse the string when in JSON format.
My question, is there a similar json_SetItems function that will set items when a jQuery object JSON is returned? The one that's returned from the following:
$.ajax({
  type: 'POST',
  data:
// etc...
success: function (data) {
    //data is now a jQuery object, are there any built in functions for this?
I understand I could always make the dataType 'text' which would return a string and call the json_SetItems but was hoping to use dataType 'JSON'
Thanks
Spam

"data" is not a jQuery object. It is the returned data in a type specified by the dataType parameter. jQuery docs:
dataType (default: Intelligent Guess (xml, json, script, or html))
Type: String
The type of data that you're expecting back from the server. If none is specified, jQuery will try to infer it based on the MIME type of the response (an XML MIME type will yield XML, in 1.4 JSON will yield a JavaScript object, in 1.4 script will execute the script, and anything else will be returned as a string).
The success parameter is defined as this:
success
Type: Function( PlainObject data, String textStatus, jqXHR jqXHR )
A function to be called if the request succeeds. The function gets passed three arguments: The data returned from the server, formatted according to the dataType parameter; a string describing the status; and the jqXHR (in jQuery 1.4.x, XMLHttpRequest) object.
So I'm not sure what exactly it is you're after. If you want plain text back then request it as such. If you'd rather have JSON then go with that.

Similar Messages

  • Set  item categaries of sales order  is  not  relevant for picking

    dear friends:
       when i created the outbound delivery and must maintain the picking quantity of materails.i change the configration of system so that not nessesary maintain the picking quantity. set  item categaries of sales order  is  not  relevant for picking via t_code:vlop,what it effect .help me analyze it .
    best regards.

    Hello,
    In TA :OVLP   set/reset the indicator according to your requirement.
    In the case of outbound deliveries, only the delivery items that are relevant for picking are transferred to the Warehouse Management (WM) component. Certain items such as text items or service items (consulting activities) are not relevant for picking.(in those cases uncheck the box)
    In the case of inbound deliveries, this indicator controls whether the item is relevant for putaway.
    This indicator must be set in order for the item to be included in a Warehouse Management transfer order and then put away.
    Regards,
    Nisha
    @award pts if helpful.

  • Setting Item level access rights on sharepoint list item in ItemAdding event handler

    Hi ,
    I am using sharepoint 2013. I am trying to set item level access rights when a list item is added using the following code snippet,
    public override void ItemAdding(SPItemEventProperties properties)
    base.ItemAdding(properties);
    ConfigureItemSecurity(properties);
    private void ConfigureItemSecurity(SPItemEventProperties properties)
    var item=properties.ListItem;
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(properties.SiteId))
    using (SPWeb oWeb = site.OpenWeb())
    item.ParentList.BreakRoleInheritance(true);
    oWeb.AllowUnsafeUpdates = true;
    var guestRole = oWeb.RoleDefinitions.GetByType(SPRoleType.Reader);
    var editRole = oWeb.RoleDefinitions.GetByType(SPRoleType.Editor);
    SPGroup HRGroup = oWeb.SiteGroups.Cast<SPGroup>().AsQueryable().FirstOrDefault(g => g.LoginName=="HR Team");
    SPRoleAssignment groupRoleAssignment = new SPRoleAssignment(HRGroup);
    groupRoleAssignment.RoleDefinitionBindings.Add(guestRole);
    SPUserCollection users = oWeb.Users;
    SPFieldUserValueCollection hm = (SPFieldUserValueCollection)item["HiringManager"];
    SPFieldUserValueCollection pm = (SPFieldUserValueCollection)item["ProjectManager"];
    SPFieldUserValueCollection pmChiefs = (SPFieldUserValueCollection)item["ProjectManagerChief"];
    item.BreakRoleInheritance(true);
    item.RoleAssignments.Add(groupRoleAssignment);
    foreach (SPFieldUserValue staffMember in hm)
    SetRightsOnItem(item, staffMember, editRole);
    foreach (SPFieldUserValue staffMember in pm)
    SetRightsOnItem(item, staffMember, guestRole);
    foreach (SPFieldUserValue staffMember in pmChiefs)
    SetRightsOnItem(item, staffMember, guestRole);
    item.Update();
    private void SetRightsOnItem(SPListItem item, SPFieldUserValue staffMember, SPRoleDefinition role)
    SPUser employeeUser = staffMember.User;
    var userRoleAssignment = new SPRoleAssignment(employeeUser);
    userRoleAssignment.RoleDefinitionBindings.Add(role);
    item.RoleAssignments.Add(userRoleAssignment);
    Nothing is happening though... Is the event handler the right place to do this?
    thank you

    Hi ,
    You can refer to the code working in my environment:
    using System;
    using System.Security.Permissions;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Utilities;
    using Microsoft.SharePoint.Workflow;
    namespace ItemLevelSecurity.ItemSecurity
    /// <summary>
    /// List Item Events
    /// </summary>
    public class ItemSecurity : SPItemEventReceiver
    /// <summary>
    /// An item was added.
    /// </summary>
    public override void ItemAdded(SPItemEventProperties properties)
    SPSecurity.RunWithElevatedPrivileges(delegate()
    try
    using (SPSite oSPSite = new SPSite(properties.SiteId))
    using (SPWeb oSPWeb = oSPSite.OpenWeb(properties.RelativeWebUrl))
    //get the list item that was created
    SPListItem item = oSPWeb.Lists[properties.ListId].GetItemById(properties.ListItem.ID);
    //get the author user who created the item
    SPFieldUserValue valAuthor = new SPFieldUserValue(properties.Web, item["Created By"].ToString());
    SPUser oAuthor = valAuthor.User;
    //assign read permission to item author
    AssignPermissionsToItem(item,oAuthor,SPRoleType.Reader);
    //update the item
    item.Update();
    base.ItemAdded(properties);
    catch (Exception ex)
    properties.ErrorMessage = ex.Message; properties.Status = SPEventReceiverStatus.CancelWithError;
    properties.Cancel = true;
    public static void AssignPermissionsToItem(SPListItem item, SPPrincipal obj, SPRoleType roleType)
    if (!item.HasUniqueRoleAssignments)
    item.BreakRoleInheritance(false, true);
    SPRoleAssignment roleAssignment = new SPRoleAssignment(obj);
    SPRoleDefinition roleDefinition = item.Web.RoleDefinitions.GetByType(roleType);
    roleAssignment.RoleDefinitionBindings.Add(roleDefinition);
    item.RoleAssignments.Add(roleAssignment);
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected].
    Eric Tao
    TechNet Community Support

  • Set item property to false and true

    when i set item to false and then set item property to true. The item is displayed but its gray out and not enabled. Am i missing something
    Set_Item_Property('PUSH_BUTTON_SAVE',VISIBLE,PROPERTY_FALSE);
    and then
              Set_Item_Property('PUSH_BUTTON_SAVE',VISIBLE,PROPERTY_TRUE);

    Check the Forms online help on Set_Item_Property, near the bottom in the usage notes. Lots of things happen when you set visible to False:
    Setting DISPLAYED to False:
      sets the Enabled and Navigable item properties to False
      sets the Updateable item property to False
      sets the Update_Null item property to False
      sets the Required item property to False
      sets the Queryable item property to False
    So you may need to set more of them back to true in your code when you want to make it re-display.

  • Setting item value for child tab

    My application has pages with 2-level tabs.
    I can set item values using the "Set these items" and "With these values" fields in "Tab Target" section in the application builder page of the parent tab.
    However, I cannot find the corresponding fields for the child tab application builder page. ie. certain page items are being set when the child tab is pressed.
    Creating page process to set the items doesn't work for me, because I only want the items to be set if the requested page to the current page is not the same one.

    Ken,
    Use an on-submit before-computations process that fires conditionally based on the request, e.g., only if the request is one of a specified list of tab names.
    Scott

  • Invoke-Command Set-Item wsman : Access Denied

    Hi,
    I'm trying to write a script that run another script via an Invoke-Command cmdlet. This script is :
    $usrname = "[email protected]"
    $pwd = "MonPassword"
    $pwd = ConvertTo-SecureString -AsPlainText $pwd -Force
    $cred1 = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $usrname, $pwd
    Invoke-Command -ComputerName "SRVFWL" -FilePath "c:\Scripts\VPNScript.ps1" -Credential $cred1
    So this first script run the next script with the user [email protected] :
    $ID = "UserID"
    $RCMPUSR = "UsrOnVpnCmp"
    $RCMPPWD = "MyPass"
    $RCMPPWD = ConvertTo-SecureString -AsPlainText $RCMPPWD -Force
    $cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $RCMPUSR, $RCMPPWD
    #Connection to RRAS TMG 2010
    $root = New-Object -ComObject "FPC.Root"
    $isaarray = $root.GetContainingArray()
    $sessionmonitor = $isaarray.SessionsMonitors.SessionsMonitorFirewall
    $filter = New-object -ComObject FPC.FPCFilterExpressions
    #Retreive VPN session
    $sessionmonitor.ExecuteQuery($filter,10000)
    #Check session
    foreach($session in $sessionmonitor)
    if($session.ClientIP.StartsWith("10.10."))
    if($session.ClientUserName -eq "MYDOM\\"+$ID)
    Set-Item wsman:\localhost\client\trustedhosts $session.ClientIP -Force
    If((Test-WSMan $session.ClientIP).IsEmpty -eq $false)
    $CMPName = Invoke-Command -ComputerName $session.ClientIP -ScriptBlock {$(Get-WmiObject Win32_Computersystem).name} -credential $cred
    $Version = Invoke-Command -ComputerName $session.ClientIP -ScriptBlock {[Environment]::OSVersion.Version} -credential $cred
    If($Version.Major -eq 6)
    $sessionmonitor.DisconnectSession("MyTMGServer",$session.SessionID)
    $usr = $ID + "@mydom.pri"
    netsh ras set client $usr disconnect
    return $true
    $sessionmonitor.EndQuery()
    This second script run greatly when I run it manually on the local server connected with the svc_scripts user. But I've a Access Denied on the Set-Item cmdlet of the second script when i try to run it with the Invoke-Command.
    I don't understand why this same user are allowed to run the script locally but not allowed on remote computer.
    Can you help me ?
    Thank you.

    Hi Judicael44,
    First You will encounter the second-hop issue when run "invoke-commmand" as the scriptblock in another remote cmdlet, for more detailed information, please refer to this article:
    Enabling Multihop Remoting
    For the error you posted, Let me restate this issue, we have two servers:
    Local server: server1
    remote server: SRVFWL
    So the second script is located on server1, and the user "[email protected]" has admin right on server
    SRVFWL, you got the error "access denied" when ran the script on remote server SRVFWL.
    In this case, please make sure you have ran the cmdlet "Enable-PSRemoting -Force" on server SRVFWL, which will give you the rights to access and modify TrustedHosts setting in WinRm.
    I tested with single cmdlet, and this could work:
    If there is anything else regarding this issue, please feel free to post back.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support

  • Set-item failing to work - but without an error

    A co-worker is working with a vendor. He and the vendor have been setting up the Powershell environment, remote signing, etc. The vendor recommended that the following command be executed:
    Set-Item WSMan:\localhost\Plugin\Microsoft.PowerShell\Quotas\MaxMemoryPerShellMB 1024
    The user executed this, and the command returned without any output. When he checked, however, the value of MaxMemoryPerShellMB using winrm get winrm/config , MaxMemoryPerShellMB had the original value of 300, rather than 1024.
    Is there a setting that might have turned off error reporting? Or is there something else going on here?

    Hi Lwvirden,
    Agree with tommymaynard, To set MaxMemoryPerShellMB to 1024 MB, please follow the script below:
    Set-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB 1024
    Set-Item WSMan:\localhost\Plugin\Microsoft.PowerShell\Quotas\MaxMemoryPerShellMB 1024
    get-Item WSMan:\localhost\Plugin\Microsoft.PowerShell\Quotas\MaxMemoryPerShellMB
    Restart-Service winrm
    winrm get winrm/config
    For more detailed information, please go through this article:
    Learn How to Configure PowerShell Memory
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang

  • Setting Item Dashboard as default

    Hi,
    I have a requirement to set Item Dashboard navigation as landing page once the user logs into RPM portal. How to do this from SPRO settings?
    Thanks in Advance.

    Hi Arbind,
    I am already stuck in Define Navigation screen
    Could you pls guide me how to proceed from here? Anything to do with Link ID ?
    Thanks again.

  • Query to set item default value

    I'm trying to set a default value of an item by using a query. The first thing I tried is setting the source value to be:
    select 'TRDM-R-'||LPAD((MAX(SUBSTR(EXPAND_REQ_ID,8,3))+1),3,'0') EXPAND_REQ_ID FROM BANKSRG.TRDM_REQUIREMENTS;
    with item display type as Text, source type SQL Query. This displayed the value in the form, but did not save to the DB. (I tried all the other display types for text too)
    The next thing I tried (a suggestion for someone else in the forum) was set item display type is Display as Text (based on PL/SQL, does not save state), and the source type is PL/SQL Anonymous Block, with this query:
    for c1 in
    (select LPAD((MAX(SUBSTR(EXPAND_REQ_ID,8,3))+1),3,'0') EXPAND_REQ_ID
    FROM BANKSRG.TRDM_REQUIREMENTS)
    LOOP
    htp.p('TRDM-R-'||C1.EXPAND_REQ_ID);
    EXIT;
    END LOOP;
    but I get this error: Error ERR-9132 Error in PLSQL expression for item default code, item=P2_EXPAND_REQ_ID
    Then I tried the above query in the Default Value section, with the same error.
    I've also tried adding computations, but if i get the value to display, it still won't save to the DB.
    I would greatly appreciate any suggestions!
    Robin

    In case anyone else is new to HTMLDB and needs the answer to this question, I finally figured it out.
    In the Item the Display is Text Field, Source Used is Always..., Source Type Database Column, Source Value EXPAND_REQ_ID, Default Value &P2_EXPAND_REQ_ID., Default Value Type is Static Text...
    Then I created a Before Region computation, type sql Query, entered my query in the computation,
    select Condition Type Value of Item in Expression 1 is NULL, Expression 1 is P2_EXPAND_REQ_ID.
    Not so difficult, it just took a lot of time to try all the options.

  • How to Set Item limit for Picture library Slideshow webpart in SharePoint 2013

    Picture library Slideshow webpart is using the default view "All Pictures" and if I set a filter condition in the view, the images are displaying based on it but if I set an Item limit as "5" or any number in the "All Pictures"
    view it is not reflecting in the slideshow webpart.
    Any suggestion would be a great help as the users want to see only the latest 5 images in the slideshow webpart.
    Thanks & regards,
    Asha

    I don't think so there is any way to set a item count limit on Picture Library Slideshow web wart.
    Web Part setting only allows to provide library and View, In List view also you can only set Item Limit to be shown on the 'List View'. Slideshow web part take all the items in the list and show, view is only used to provide which field needs to be shown.
    There could be 2 options:
    - Write a JavaScript to limit the count, and in the view add Sorting by 'Created' date. You can get some example on how to modify "Library Slideshow web part" javascript here: http://blog.vgrem.com/2013/04/27/beyond-the-slideshow-web-part-capabilities-in-sharepoint-2010/
     This link does not have solution of what you want, but it gives a very well idea on what you can look and modify. It will not be that straight forward for sure.
     - Create a custom webpart, it could be a easier approach. As there are many slideshow Javascript library present, and through code you will just need do a query and pull data from library with required number of items to be shown.
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • How to set item #2 in a JCombobox as selected default ?

    JCombobox always set item #1 as default.
    How to set item #2 or #3 or another # (except #1) as selected default ?

    hey,
    there is a method called setSelectedIndex(int index)
    pass the index which u want to get selected by default.
    Call this method after loading the data to the comboBox
    for ex cbo.setSelectedIndex(1);
    Hope this helps
    Nagaraj

  • Sharepoint 2007 Setting Item level permission

    How do i set item level permission using SharePoint 2007 workflow. As I've been working on employee leave management, time sheet entry and attendance, quite similar to Orange HRM features...And also being a beginner who never had any hands on SharePoint.
    It would be really grateful if anybody comes up with all the help for me.
    Employees should not be able to see each other's personal information like contact details, email addresses, etc other than the Admin. How do i do that step by step automatically using a workflow using SharePoint 2007....?
    Thank You.

    you can use the http://spdactivities.codeplex.com/ Grant Permission on Item workflow activity from codeplex and build the workflow.
    Below are the few examples
    http://sharepointgeorge.com/2010/item-level-permissions-infopath-forms-sharepoint-designer-workflows/
    http://www.codeproject.com/Articles/18415/Custom-Activity-Workflow-for-implementing-Item-Lev
    hope this helps.
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Associating set items to ProfileFormHandler.value

    Is it possible to associate multiple set items to profile during registration by mapping values from multiple checkbox in JSP to ProfileFormHandler.value?
    When I tried to do something like
    <dsp:input id="profilepref_${profilePrefId}" type="checkbox" value="${profilePrefId}"
                    bean="ProfileFormHandler.value.profilePrefs.repositoryIds"  checked="${isSelected}"/>
    Where profilePrefs is a set of another repository item type with (id,name, value)
    But this doesn't seem to work. profilePrefs is ignored on the profile.

    Hi Chao-Yi,
    Support for FormDataEvents has been included since B1DE 1.3 version. But these are applicable only to SAP Business One 2005 SP01.
    Refer to the B1DE download page for details: https://www.sdn.sap.com/irj/sdn/downloads?rid=/webcontent/uuid/a175fb62-0c01-0010-a8b5-fa58a13b1cf7 [original link is broken]
    Could you please confirm that SP01 is installed on your 2005 version of Business One? If you do not have SP01, FormDataEvents are not visible in B1DE.
    Regards
    Aravind

  • Jquery + json generate html buttons with condition

    Hi all,
    My need is to generate buttons with conditions described in json. Help me please, I’m newbie.
    Here is my json code (it is valid, but does not work with html code below) :
        "Caption": "Module caption",
        "IconsDirectory": "C://Images/",
        "Buttons": [
                "Conditions": [
                        "ConditionText": "1 == 1",
                        "ButtonText": "Text1",
                        "Visible": true,
                        "Colors": {
                            "FontColor": "#FFFFFF",
                            "BGColor": "#00FF00"
                        "Size": {
                            "Width": 200,
                            "Height": 50
                        "Icon": {
                            "FileName": "Smile.png",
                            "Width": 16,
                            "Height": 16
                        "Url": {
                            "UrlAddress": "http://www.google.com",
                            "OpenNewWindow": true
                        "JavaScriptAction": {
                            "Text": "alert('ok');"
                        "ConditionText": "2 == 2",
                        "ButtonText": "Text2",
                        "Visible": true,
                        "Colors": {
                            "FontColor": "#FFFFFF",
                            "BGColor": "#00FF00"
                        "Size": {
                            "Width": 200,
                            "Height": 50
                        "Icon": {
                            "FileName": "Smile.png",
                            "Width": 16,
                            "Height": 16
                        "Url": {
                            "UrlAddress": "http://www.google.com",
                            "OpenNewWindow": true
                        "JavaScriptAction": {
                            "Text": "alert('ok');"
    html code:
    <html>
    <head>
    <title>SMButtons</title>
    [removed][removed]
    [removed]        
    //When document loaded.
    $(document).ready(function(){  
    // Get data from file as JSON
                $.getJSON('weekendtask.json', function(data) {
            var buttons = data.Buttons;
               $.each(buttons, function(key, val)
                        $('<li><input type="button" value="'+ val.ButtonText +'"/></li>').appendTo('#ulObj');
       [removed]
    </head>
    <body>
    <br>
    <br>
    <div>
    <ul id='ulObj'>
    <li>1</li>
    <li>2</li>
    <li>3</li>
    </ul>
    </div>
    </body>
    </html>
    Also I would like to show here my working code (generating html buttons from json without condition).
    json code (it works) :
        "Caption": "Module caption",
        "IconsDirectory": "C://Images/",
        "Buttons": [
                "TText": "google",
                "JavaScriptAction": "alert('google')"
                "TText": "microsoft",
                "JavaScriptAction": "alert('microsoft')"
                "TText": "yahoo",
                "JavaScriptAction": "alert('yahoo')"
    html code (it works) :
    <html>
    <head>
    <title>SMButtons</title>
    <script src="jquery/jquery-1.4.2.js"></script>
    <script type="text/javascript">                 
    //When document loaded.
    $(document).ready(function(){  
    // Get data from file as JSON
                $.getJSON('Module.json', function(data) {
                // Set json data from file to variable 'persons'
        var buttons = data.Buttons;
        var icondir = data.IconsDirectory;
        // For each item of variable person append to ul list
               $.each(buttons, function(key, val)
                        //$("<li><input type='button' onClick='"+ val.Url +"' value='"+ val.Text +"'/></li>").appendTo('#aaa');
    //$("<li><input type='button' style='"+ val.Style +"' onClick='"+ val.Url +"' value='"+ val.Text +"'/></li>").appendTo('#aaa');
    //$("<li><input type='button' value='"+ val.TText +"'/></li>").appendTo('#bbb');
                        //style="height: 25px; width: 100px"
                        //$('<li><input type="button" onClick="'+ val.action +'" value="'+ val.Text +'"/></li>').appendTo('#aaa');
                        $('<li><input type="button" onClick="'+ val.JavaScriptAction +'" value="'+ val.TText +'"/></li>').appendTo('#ulObj');
        //var knop = data.Knop;
        // For each item of variable person append to ul list
               //$.each(buttons, function(key, val)
                        //$("<li><input type='button' onClick='"+ val.Url +"' value='"+ val.Text +"'/></li>").appendTo('#aaa');
    //$("<li><input type='button' style='"+ val.Style +"' onClick='"+ val.Url +"' value='"+ val.Text +"'/></li>").appendTo('#bbb');
                        //style="height: 25px; width: 100px"
                        //$('<li><input type="button" onClick="'+ val.action +'" value="'+ val.Text +'"/></li>').appendTo('#aaa');
                        //$('<li><input type="button" onClick="'+ val.action +'" value="'+ val.Text +'"/></li>').appendTo('#aaa');
       </script>
    </head>
    <body>
    <br>
    <br>
    <div>
    <ul id='ulObj'>
    <li>1</li>
    </ul>
    </div>
    <br>
    <div>
    <ul id='aaa'>
    <!--<li>1</li>-->
    </ul>
    </div>
    <!--<button type="submit" style="height: 95px; width: 550px"> </button>-->
    <!--background: url('img/submit_button.jpg'); background-position: center; background-repeat: no-repeat;  background-color:Transparent;-->
    <div>
    <ul id='bbb'>
    <!--<li><img src="img/submit_button.jpg"/></li>-->
    <!--<li>Button caption</li>-->
    </ul>
    </div>
    </body>
    </html>

    What you are saying makes great sense. It's just the mechanics behind what you've said that I'm unclear about.
    <p>
    Are you saying to create another button within the same region with the same attributes/position, so they overlay each other? Then set the conditions on both buttons?
    <p>
    If I understand the above correctly, then how do I set the conditions? I guess I'm asking where do I place the SQL statement and how does the results relate to the button conditions?
    <p>
    Thanks for the help,
    David

  • Jquery - Detect Page / Item Change

    Hi Guys,
    I am aware of the skillbuilders save before exit plugin but I was wondering if there is a stripped down version, maybe some Jquery to identify if a Page has had any changes made.
    For example if an item on a page is accessed / changed in anyway then an hidden item is set with a flag?
    Thanks All

    No need to reinvent really. If you know about the Skillbuilders plugin, you probably have tried it out already. Their plugins come with good documentation and the source files.
    In the documentation the "changeDetected" procedure is explained:
    The changeDetected method can be used to check elements (not set to ignore) to see if they have changed since the page loaded. It can be called as follows (returns Boolean):
    $(document).apex_save_before_exit('changeDetected');
    Knowing this, you can take a look at the source javascript (apex_save_before_exit.js). The changeDetected function does exactly what you want and would need very minimal adjusting.
    Start with removing
    .not(uiw.options.ignoreChangeSelector)The code also doesn't do anything wild: everything used is standard, such as the defaultValue attribute on text input items.
    Only shuttles are a small exception as they have no standard defaults that can be checked against, and that is why in the "_create" of the plugin these values are stored in a data attribute on the shuttle:
          $('form#wwvFlowForm fieldset.shuttle')
             .not(uiw.options.ignoreChangeSelector)
             .each(function() {
                var loadVal = $v(this.id);
                $(this).data('apex-sbe-load-val', loadVal);
             });You can leave it like that, or rename the data attribute (and change it in the changeDetected attribute).
    If you want to check single items, the function shows you everything you need to check any type of item.

Maybe you are looking for