Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8005965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:21:35+00:00 2026-06-04T17:21:35+00:00

I have a Tab GUI Extension with a form and a text field. I

  • 0

I have a Tab GUI Extension with a form and a text field. I would like to save the values of the form field to ApplicatioData. I was thinking of an ‘Update’ button calling an Anguilla method.

Is there an Anguilla method to do this? I don’t see any method in Anguilla for this. Start of the code:

var c = $display.getItem();
var uri = c.getId();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T17:21:37+00:00Added an answer on June 4, 2026 at 5:21 pm

    Anguilla doesn’t expose any (webservice or JavaScript) methods to generically modify ApplicationData. You will have to provide your own server-side code to set the ApplicationData.

    So in my last need for this I wrote a simply WCF web service that sets the application data:

    [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    [ServiceContract(Namespace= "ExtensionsModel.Services")]
    public class ExtensionsService
    {
        [OperationContract]
        [WebInvoke(Method = "POST",
                    RequestFormat = WebMessageFormat.Json,
                    ResponseFormat = WebMessageFormat.Json)]
        public void SetEnabled(string[] itemIDs, bool enabled)
        {
            using (var client = TridionCoreService.GetSessionAwareClient())
            {
                var appdata = new ApplicationData();
                appdata.ApplicationId = "ext:IsEnabled";
                appdata.Data = new ASCIIEncoding().GetBytes(enabled ? bool.TrueString : bool.FalseString);
                foreach (var itemID in itemIDs)
                {
                    client.SaveApplicationData(itemID, new[] {appdata});
                }
            }
        }
    }
    

    Wired it up in the configuration file of my model:

    <?xml version="1.0" encoding="utf-8" ?>
    <Configuration> <!-- namespaces removed for readability -->
      <resources cache="true">
        <cfg:filters/>
        <cfg:groups>
          <cfg:group name="Extensions.Models">
            <cfg:domainmodel name="Extensions.Models">
              <cfg:services>
                <cfg:service type="wcf">Services/ExtensionsService.svc</cfg:service>
              </cfg:services>
            </cfg:domainmodel>
          </cfg:group>
        </cfg:groups>
      ...
    

    And then call this web method from my command._execute

    Extensions.Commands.DisableExtension.prototype._execute = function (selection) {
      ExtensionsModel.Services.ExtensionsService.SetEnabled(selection.getItems(), false);
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jQuery UI dialog box with a form. I would like to
I have a tab delimited file which looks like this: ABCA2 chr9 139021506 139043195
I have a tab control where each TabItem is a UserControl. I'd like to
I have a tabbed GUI with each tab containing a Frame. In one of
I have situation as follows: GUI with several tabs. Every tab shows content of
Hi i have Tab activity(Chapter,subject) and database. i need to show the chapter_table content
I have a tab delimited table that has multiple columns (1500) and a few
i have a tab bar controller in my storyboard. I have added a third
I have a tab called Buyer's Wish List in opportunity. I have leads created
I have a tab bar fully worked but how can i push an tab

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.