Setting Security.sandboxType in Flex through code

Hi,
I need to call JavaScript for that I need to set
flash.system.Security.sandboxType as LOCAL_TRUSTED. Default value is LOCAL_WITH_NETWORK.
I can change this setting by Global setting of Flash player by right click on application and clicking global settings.
Question is how can I set it throguh coding so that my application work on every local system ?
Objective is my Flex application will run from local system and will be called like C:\MSAPerMonWebClient\MSAPerMonWebClient.html and I need to access javascript written in .html file through flex swf.

You can't set it from AS.
If you are installing a SWF, you can set up a trust file as part of the
install.

Similar Messages

  • Get the Portal User in Flex through webmodule project

    Hai All
    I have created the Flex project and then imported in NWDS through webmodule project . How do i get the portal log on user in Flex through webmodule project like what we will get in webdynpro java or webdynpro abap with the following code in init() method
    IWDClientUser wduser=WDClientUser.getCurrentUser();
    com.sap.security.api.IUser user=wduser.getSAPUser();
    What should i write in Flex init() method to get the portal log on user or is it possible to the portal log on user in flex?
    HOW  TO GET THE <User.LogonUid> from LOG ON PORTAL USER into FLEX
    Kindly help me.
    Regards
    Dhinakaran J
    Edited by: J Dheena on Sep 16, 2009 10:45 AM
    Edited by: J Dheena on Sep 16, 2009 2:41 PM
    Edited by: J Dheena on Sep 17, 2009 7:53 AM

    Hi,
    Have you been able to find this? Please let me know.
    Thanks,
    Manish

  • How do I Change the Security.sandboxType

    HI I’m new to AIR.
    How do I set the Security.sandboxType to  Security.LOCAL_TRUSTED for AIR application. I need the application to load swf from local and internet without any security restrictions. I guess if the AIR application run in Security.LOCAL_TRUSTED sandbox I will not get any security errors.
    Any idea
    Thanks in advance.

    Hello Shane32784,
    I'm not sure what security you are referring to changing.
    The Digital Copies usually have a code that you have to enter somewhere in order to access, some digital copies work within iTunes, some within Flixster, depends on the production company. You should check the documentation that came with the disc. It should tell you how to download the digital copy.
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • Changing the Updatable property of a View Object Attribute through code

    Hi,
    Is there a way to set the "Updatable" property of an attribute in a view object through code ?
    I checked the API docs for the AttributeDef class but there is no method to set this. there is a constant (UPDATEABLE_WHILE_NEW) which gives the current value.
    My requirements in short - I have a ADF editable Table. Based on a flag whether it is SET or NOT, i need to make a particular column such that the inputTextBox on this column must appear for only the new rows inserted into the table. For all the existing rows users should not be allowed to edit values on this column.
    I know this can be controlled with the UPDATABLE property on the attribute in the view object by setting the value as "WHILE  NEW".
    Now i need to control this through code at runtime.
    Please let me know on ow to do this.
    JDev version: 11.1.2.3
    Thanks.

    the method you are looking for is available in the AttributeDefImpl class which you can get from the EntityImpl like
    this.mDefinitionObject.getAttributeDefImpl("YOUR_ATTRIBUTE_NAME").setUpdateableFlag(AttributeDef.UPDATEABLE_WHILE_NEW);
    Timo

  • Setting the custom master page through powershell is NOT working

    Hi,
     I am writing the below code to set the  custom master page through powershell.
    But its not working .when i went to site settings-->master page --> in the drodown , the  maste page set is seattle.master ONLY, though my current master page is available in the dropdown.
     Can anyone pls help, whether i am missing in the below :
          Add-PSSnapin Microsoft.SharePoint.Powershell
           $SiteURL = "http://srvr1:22307/sites/SPW5"
        $weburl= $SiteURL
        $Site= Get-SPSite $SiteURL
        $web =  $Site.OpenWeb()
    $web.CustomMasterUrl = "/_catalogs/masterpage/myMasterpage.master"
    $web.MasterUrl = "/_catalogs/masterpage/myMasterpage.master"
    $web.Update()
    Das

    Hi,
    Is it a publishing page? If yes can you try the PowerShell scripts corresponding to the following code snippet?
    var publishingWeb = PublishingWeb.GetPublishingWeb(web);
    publishingWeb.CustomMasterUrl.SetInherit(inheritFromParent, false);
    publishingWeb.CustomMasterUrl.SetValue(masterPageUrl, false);
    publishingWeb.MasterUrl.SetInherit(inheritFromParent, false);
    publishingWeb.MasterUrl.SetValue(masterPageUrl, false);
    I've noticed sometime (not sure though) that Master page doesn't get updated if the inherit property is not updated first.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • How to set values to unniverse prompts through java

    Hi
    I am using JAVA -BOSDK to access reports from infoview. I have a problem when any universe level prompt is present in the report. I am able to retrieve it through java when i say documentInstance.getPrompts() and when i set values to this prompt by Prompt.enterValues(String[] parameters) and then either save the report or saveAs another report , my new values dont get applied to the prompt. Only previous values get applied to the prompt. I checked doing prompt.getPreviousValues and prompt.getCurrentValues but when i save the doc then new values are not set.
    here is a part of code iam using: the filterlist contains the ConditionFilterDataItems objects which contain the operands,operator and queryObjectName .I have added multiple prompt.getPrevious and current values for debug purpose.
    private static void applyValuesToUniversePrompt( final DocumentInstance doc, final List filterList )
            final DataProviders dps = doc.getDataProviders() ;
            final DataProvider dataProvider = dps.getItem( 0 ) ;
            final Query query = dataProvider.getQuery() ;
            Prompts newPrompts = doc.getPrompts();
            Prompt newprompt = newPrompts.getItem( 0 );
            newprompt.getPreviousValues();
            newprompt.getCurrentValues();
            final ConditionContainer conditioncont = (OMConditionContainer) query.getCondition() ;
            ConditionFilterDataItem conditionFilterDataItem = null ;
            final Map promptMap = generateInstanceMap( doc ) ;
            //Prompt [] promptArr ;
            for( int i = 0 ; i < filterList.size() ; i++ )
                conditionFilterDataItem = (ConditionFilterDataItem) filterList.get( i ) ;
                final String [] operands = conditionFilterDataItem.getFilterOperand() ;
                PromptsImpl univPrompts = (PromptsImpl)doc.getPrompts();
                Prompt [] promptArr = new Prompt[univPrompts.getCount()];
                for(int k= 0;k< univPrompts.getCount();k++)
                     promptArr[k] =(Prompt) univPrompts.getItem( k );
                if(univPrompts.getCount()==0)
                    promptArr=null;
              if(promptArr!=null)
                for( int j = 0 ; j < promptArr.length ; j++ )
                    final Prompt prompt = promptArr [j] ;
                    final String promptName = prompt.getName() ;
                    final Prompt currentPrompt = (Prompt) promptMap.get( promptName ) ;
                    if( operands [j] != null )
                        currentPrompt.getPreviousValues();
                        currentPrompt.getCurrentValues();
                        currentPrompt.removeValues( currentPrompt.getPreviousValues() );
                        currentPrompt.enterValues( convertStringToArray( operands [j] ) ) ;
                        currentPrompt.getPreviousValues();
                        currentPrompt.getCurrentValues();
                        doc.setPrompts();
                        newPrompts = doc.getPrompts();
                        newprompt = newPrompts.getItem( 0 );
                        newprompt.getPreviousValues();
                        newprompt.getCurrentValues();
            //doc.setPrompts() ;
            doc.refresh();
            doc.save();
            newPrompts = doc.getPrompts();
            newprompt = newPrompts.getItem( 0 );
            newprompt.getPreviousValues();
            newprompt.getCurrentValues();
           // dataProvider.runQuery() ;
            doc.refresh();
            doc.saveAs( "universePrompt2",7148,null,null ) ;
             doc.closeDocument() ;
    private static Map generateInstanceMap( final DocumentInstance document )
            final Map promptMap = new HashMap() ;
            final Prompts prompts = document.getPrompts() ;
            int count ;
            if( prompts != null )
                count = prompts.getCount() ;
                for( int i = 0 ; i < count ; i++ )
                    final Prompt prompt = prompts.getItem( i ) ;
                    promptMap.put( prompt.getName(), prompt ) ;
            return promptMap ;

    Hi Shruti,
    Can U kindly refer this [thread|BusinessObjects Enterprise Java Software Development Kit (SDK) ??; and reply back.
    Would appreciate your efforts !!!

  • Purchase order service type through code

    Hi Experts,
    Can we create a purchase order of type service through code ?
    Please give me some sample codes
    Thanks in advance
    Regards
    Arun

    Hello,
    I think this is an userfield? Or a field that i don't know?
    purchaseOrder.Lines.LocationCode = 2
    For testing you must keep your code simple, first only fill the mandatory fields:
    And catch you errormessage as well.
    Dim purchaseOrder As SAPbobsCOM.Documents = B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
                'Set values to the fields
                purchaseOrder.DocObjectCode = BoObjectTypes.oPurchaseOrders
                purchaseOrder.CardCode = "V0001"
                purchaseOrder.DocType = BoDocumentTypes.dDocument_Service
                purchaseOrder.DocDate = Today
                 purchaseOrder.DocDueDate = Today
                purchaseOrder.TaxDate = Today
                purchaseOrder.Lines.ItemDescription = "TESTPO"
                purchaseOrder.Lines.AccountCode = "500201"
                Dim lRetCode As Integer
                lRetCode = purchaseOrder.Add
                If lRetCode != 0 Then
                    B1Connections.theAppl.SetStatusBarMessage("Error occured.", SAPbouiCOM.BoMessageTime.bmt_Short, True)
                Else
                    B1Connections.theAppl.SetStatusBarMessage("Purchase order created.", SAPbouiCOM.BoMessageTime.bmt_Short, True)
                End If
    HTH Regards Teun
    Edited by: Teun Aben on Oct 22, 2010 3:54 PM

  • How to find references of a Property in the class through code? similar to 'Find All References' in Visual Studio Environment.

     Hello,
    I am trying to find a code to find all the references of the property defined in a class which is very similar to 'Find All References' function available in Visual Studio environment. But I want to have it in code during run time. How to do it?
    e.g 
    =>Property 1
    private int _Salary;
    public int Salary()
    get{return _Salary;}
    set{_Salary = value;}
    => Property 2
    private int _Bonus;
    public int Bonus()
    get{return Salary * 2;}
    Like in the above example I have two properties Salary & Bonus. Bonus is calculated from salary. As soon as I set a value to Salary, value of Bonus gets updated. 
    Similarly I want to get reference of all other properties or methods in the class or program which are affected when value of Salary is changed through code. 
    Conclusion - I want to have a method or function, so that whenever I set a value to some property in a class, I want to have a list of all the other properties(List<Property>) or methods which are affected and in which the changed property is referenced.
    Please help me to achieve this.
    Siddharth.Shinde

    This is not something possible, as requested, even with reflection.
    I can't find the reason for having that kind of implementation at runtime.. your compiled assembly is not going to change once it's compiled.
    The way references are listed from within visual studio is probably using metadata gathered from the background compiler. When you write code, the compiler run pre-compilation tests, this is the same feature that will display error in your code before you
    compile, or complete your intelisense for types that aren't even compiled in the assembly.
    So, the only way for you to analyze this kind of thing would be to use something like ILDASM to disasemble your compiled libraries and gather metadata from the resulting MSIL. That would not work if you are using code obfuscation by the way.

  • How to set security for output merged PDF?

    If you wan to to set password or other security for your output merged PDF, how to do? there is the tutorial:http://www.kvisoft.com/tutorials/how-to-set-security-merged-pdf.html

    If you have a credit card, add it to your account, then you'll just be asked to verify your CVV code instead. You can remove it after.

  • Setting security policy

    I am using RMI and have to set the security policy by specifying a policy file on the command line.
    My policy file is very simple and is below:
    grant {
    permission java.net.SocketPermission "*:1024-65535",
    "connect,accept";
    permission java.net.SocketPermission "*:80", "connect";
    I tried looking up how I could set the policy from within my code so I don't have to use a policy file but couldnt' find anything clear on this. I am using Java 1.4 so any help would be appreciated.

    Ok, that's not so simple but we'll try.
    First define your permissions like to folowing:
    SocketPermission sp1 = new SocketPermission("*:1024-65535", "connect, accept");
    SocketPermission sp2 = new SocketPermission("*:80", "connect");
    Then add them to a PermissionCollection object throu the add method. And this ProtectionCollection object is passed to a ProtectionDomain object together with your CodeSoure class.
    It should look like this, but I'm not sure how to define the sourcecode agument in the ProtectionDomain constructor...
    SocketPermission sp1 = new SocketPermission("*:1024-65535", "connect, accept");
    SocketPermission sp2 = new SocketPermission("*:80", "connect");
    PermissionCollection pm = new PermissionCollection();
    pm.add(sp1);
    pm.add(sp2);
    ProtectionDomain pd = new ProtectionDomain(codesource, pm);
    Anyway, hope it helped,
    Eric Diethelm

  • Formatter for Flex/AS Code ?

    Hi
    AM trying to set up the FlexFormatter to my Flex/AS code,
    i happen to download the jar files from sourceforge (http://sourceforge.net/projects/flexformatter/)
    and placed the jar fiiles  at C:\Program Files\Adobe\Flex Builder 3 Plug-in\eclipse\plugins .(also i tried to extract the jar files to the plugin folder, but still no use)
    But am unable to see the icons for the formatter on my toolbar. Am i missing anything.
    or is there a better way of formatting my flex code?
    thanks

    Hi
    i heppen to look at the error log of my workspace, Am getting a NullPointerException , here are the details.
    !ENTRY org.eclipse.ui.workbench 4 2 2009-12-01 12:08:41.321
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
    !STACK 0
    java.lang.NullPointerException
        at flexprettyprintcommand.Activator.logException(Activator.java:156)
        at flexprettyprintcommand.AddAutoFormatListener$PartListener.addEditorListener(AddAutoFormat Listener.java:277)
        at flexprettyprintcommand.AddAutoFormatListener$PartListener.partActivated(AddAutoFormatList ener.java:155)
        at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:72)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
        at org.eclipse.core.runtime.Platform.run(Platform.java:843)
        at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
        at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:70)
        at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:73)
        at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:171)
        at org.eclipse.ui.internal.WWinPartService.updateActivePart(WWinPartService.java:124)

  • Invoking Menu through Code

    Is there any way I can invoke the menu code when I press a button in the form. The menu is attached to form.
    Thanks in advance.

    Hi Rajesh,
    The form object has a mode property which you can set to change the current mode of the form. This should allow you to open a form and set its default mode through code to Find (fm_FIND_MODE).
    Kind Regards,
    Owen

  • Create Usertables through Code

    Hi friend
    Can i create usertable through code .
    Edited by: Muna on May 29, 2008 4:19 PM

    Hi,
    yes you can - with the UserTablesMD Object
    there's a sample in the DIAPI documentation
    Private Sub AddUserTable()
    '// The UserTablesMD represents a meta-data object that allows
    '// to add\remove tables, change a table name and so on.
        Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
    '// In any meta-data operation there should be no other object "alive"
    '// but the meta-data object, otherwise the operation will fail.
    '// This restriction is intended to prevent collisions
        '// The meta-data object must be initialized with a
        '// regular UserTables object
        Set oUserTablesMD = oCompany.GetBusinessObject(oUserTables)
        '// When adding user tables or fields to the SAP Business One database
        '// use a prefix identifying your partner name space.
        '// This will prevent collisions between the various
        '// partners' add-ons
        '// SAP's name space prefix is "BE_"
        '// Set the two mandatory fields
        oUserTablesMD.TableName = "BE_USER1"
        oUserTablesMD.TableDescription = "A simple user table"
        '// Add the table.
        '// An empty table is added with two default fields:
        '// 'Code' and 'Name' that serve as the key
        oUserTablesMD.Add
    End Sub
    lg David

  • User Management - Configuring through code

    Create a session variable in the datasyn project. In a filter we will set a sesssion variable, the value of the session variable will be an array of strings. Each element of the array will contain the groups associated to the user. In Portal admin tool we have to configure to do entitlements from this session variable.
    Does anyone have any idea how to configure the entitlements in portal admin console thorugh a session variable?
    Please let me know if this approach of configuring user management through code is feasible?
    Thanks,
    Sid
    Edited by: user10869789 on Jul 23, 2009 10:54 AM

    Just in case you missed it , if the condition is always based on the user's groups then you need not use session property set , you can directly use 'Add Groups to Role' when you are editing the visitor entitlement
    As a rule i would tend to avoid putting things in the session unless there was no other way. (in your case , everytime the user's group changes the session must be updated , it also means that changing the groups through any external means e.g. directly updating say the user ldap would not reflect in the users current session -- unless you wrote more code)
    The benefit of using the session would be that this need not be directly mapped to a group , it can be anything you want.
    regards
    deepak

  • How to avoid invalid data entering in LOV through code

    hi
    1)i have developed lov in table region, but user easily can enter invalid data and saved into the database tables.
    2)i created one formvalue and mapping into that return item , still its not working in table region LOV.
    3)how to avoid invalid data entering in LOV through code. i have tried this below code in EOimpl set value method. but some how its not wokring.
    if (value!=null)
    throw new OAAttrValException(OAAttrValException.TYP_ENTITY_OBJECT,
    getEntityDef().getFullName(),
    getPrimaryKey(),
    "ProcurementCategory",
    getProcurementCategory(),
    "FND",
    "FND_LOV_SELECT_VALUE");
    Thanks.
    krish.

    Thanks reetesh and gourav for your help.
    i followed below mapping details
    LOV Item Properties
    ID -PurcCommodity
    ViewInstance -VendorVO1
    ViewObject -PurcCommodity
    map1 properties
    LOV Region Item - segment1
    Return Item -PurcCommodity
    CriteriaItem -PurcCommodity
    Usefor Validation -Default
    map2 properties
    LOV Region Item - segment1
    Return Item -validation(formvalue)
    CriteriaItem -
    Usefor Validation -yes
    form value properties
    ID -validation
    ViewInstance -VendorVO1
    ViewObject -PurcCommodity
    Gourav- i double checked multiple rows it is not working, some times it is not working for single row too.
    Thanks
    krish.

Maybe you are looking for

  • Ipod classic 2nd generation not recognized on itunes

    So i still have an old ipod 2nd gen for windows. though i have a firewire and the mini port on my computer running windows 7, it does not recognize my ipod classic 2nd gen. i am trying to put stuff on it but nothing. any ideas if i need an old versio

  • Apple keyboard doesn't give correct symbols with iPad2

    My apple keyboard works perfectly with my iPhone5, (WiFi, but NOT 3G) but when I  use it with my iPad2 most of the keys give a different symbol that what's written on the keyboard.  How can I set it so it works correctly as with the iphone5? thanks f

  • Canon XF100 HD - Does it's Codec Work in FCPX

    I'm shooting a job with the Canon XF100 HD it's format is Canon XF Codec Does that codec work in Final Cut Pro X without any conversions? I've looked at the supported Codec list for Final Cut Pro X and the Canon XF Codecis not listed.  However neithe

  • Creating an object

    Hi I am trying to make an object of class Main (which populates a form) this object needs to be created from using methods from both the SQLLesson and SQLUser class. As you can see from the code below I have created the main object in the SQLUser cla

  • [Flash Pro] Best way to create multi FLA/SWF AIR project

    So I have my main FLA all setup as an AIR project. Great. Now I want to create another SWF which is called Panel. I've got a separate FLA which is coded to work with the main FLA/AIR project, I include this SWF in the "included files" of the main AIR