Giter VIP home page Giter VIP logo

Comments (3)

vody avatar vody commented on July 18, 2024 1

@StefanMaron, thank you for your feedback and that you are trying it out :). I will check and comment on the state.

from openfeature-al.

vody avatar vody commented on July 18, 2024

@StefanMaron, will it be possible to add a code?
Can you try to use this example https://github.com/vody/CustomerRewardsFFExample with your flag identifier?

from openfeature-al.

StefanMaron avatar StefanMaron commented on July 18, 2024

with this code, if I just do what I described above, am seeing the fields being cleared but not removed.
Eventually, after a few relogs, I can see the field being gone completely.

I also tried die Condition provider. And I did not see those issues (yet) with this one.

pageextension 50100 CustomerList extends "Customer Card"
{

    layout
    {
        addlast(General)
        {
            field(Testfield1; 'MYCOOLTESTFEATURE')
            {
                ApplicationArea = MYCOOLTESTFEATURE;
            }
            field(Testfield2; 'DEMOFEATURE')
            {
                ApplicationArea = DEMOFEATURE;
            }
        }
    }

    trigger OnOpenPage()
    var
        FeatureMgt: Codeunit FeatureMgt_FF_TSL;
    begin
        if FeatureMgt.IsEnabled('MYCOOLTESTFEATURE') then
            Message('Yayyyay!');
    end;
}
codeunit 50100 "TestInstall"
{
    Subtype = Install;

    trigger OnInstallAppPerCompany();
    begin
        AddCustomFeature();
    end;

    local procedure AddCustomFeature();
    var
        PostHogProvider: Codeunit "PostHogProvider_FF_TSL";
        SecretProvider: Codeunit MySecretProvider;
        ISecretProvider: Interface "Secret Provider";
        PersonalAPIKey, ProjectID : Text;
    begin
        // App PostHog provider. It will load all available features automatically.
        ISecretProvider := SecretProvider;
        ISecretProvider.GetSecret('PostHogPersonalAPIKey', PersonalAPIKey);
        ISecretProvider.GetSecret('PostHogProjectID', ProjectID);
        if not PostHogProvider.AddProvider('SMC_POSTHOG', PersonalAPIKey, ProjectID) then
            Error(GetLastErrorText());
    end;
}

from openfeature-al.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.