Create/edit functionality using popup

Hello

I do face-down question on one Page ADF:

I have read only the ADF. Under the table, there are 3 buttons (Edit current line, create new & Commit).
The two edit/create button opens a popup window showing the ADF form for the selected line in the case of edit and new blank line while creating new. From there I can make changes, and then use save or cancel button to return to the home page. The table of automatically refreshes with the new changes if I press the button Save on popup. If I press the Cancel button, there is no change in the table on the home page. The edit functionality works very well.

However, if is created, the table shows newly created line even if I click on Cancel button on the pop-up window. The table should show the new line only if I select Save button on the pop-up window.

I use 2 BTF for this. (Control data)
BTF 1:
MainPG (edit)-> EditBTF
MainPG (create)-> createInsert()-> EditBTF

2ND BTF:
EditPG (Economics)-> back
EditPG (cancel)-> back (restore save point = TRUE)

Sushant-

Why the question comes only in the case of create new ones?

Because when you cancel popup, the values are not subject, but when you create new rank (CreateInsert) this is automatically applied.

Also, the second part of your post, I noticed that you use BTF to add/change features in order to check these links:

GEBS | Oracle ADF creating an add/edit defined workflow (using a new transaction)

http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/007-cancelform-savepoint-169126.PDF

Dario

Tags: Java

Similar Questions

  • How can I create a function using variables TestStand and call from Meadow step Expression?

    In one sequence, I have dozens of prior Expressions, which are almost the same thing, like this...

    Locals.tagID = (Parameters.singlePhaseEnabled? ('L': "D") & Str (Locals.phase) & "006".

    .. and the only thing different is this three-digit string in the end ("006" may vary). How can I write a function that I can call from Meadow step Expression then it should look like this? ...

    Locals.tagID = MyNewFunction("006")

    You can not write custom expressions for commands.

    That being said, there are two options:

    • Create a sous-suite with a single step. Use a setting of the sequence as "function parameter.

    • Create a step type custom including a lower level module that implements the function. Add a step edit to allow the user to the steptype graciously change the setting.

    • Store the variable setting in a local global variable / file and change the value in each step. This will, at least, keep the same 'function' for each step.

    Norbert

  • can I use create valude function for MSSql scalar and table.

    Hello

    (1) can I use create scalar function for MSSql and function table?
    (2) is there how many type of function defined by the user in oracle 11 g express?
    (3) and I can reture 'type' any form user defined function?


    Attract sincerely

    944768 wrote:

    the answer lies in a few cases only,

    The response illustrates the basic concept of how customers need to use cursors created using PL/SQL as a layer of abstraction - SQL and this concepts adapts to ALL cases where the customer wants to Oracle via PL/SQL cursor.

    a case is,
    If my function returns only a single value, then I can use oracle 'create function' with the return type as types predefined as a whole, varchar2 etc?
    with regard to performance.

    With regard to this performance problem? And why now suddenly change the question to want to use a function to return data type number or string? How does this relate to PL/SQL to return a cursor now?

    A function can return scalar values, not scalar. A function may return atomic values (such as a unique number, or a non-scalar list of numbers). A function can return a complex data structure consisting of scalar values, not scalar.

    However, in PL/SQL function must NOT be used to read the lines of the database to cache lines in a memory of the server PL/SQL (PGA), then back to the client.

    He does not. It does not fit. It is too bloody dangerous to the overall health of the server as such code plays silly blighters with very expensive server memory.

    A PL/SQL function can also be used as guideline, returning data via expensive PGA, but via the SQL engine instead and using its slider interface (which allows output data to be "gradual" and not to return all data with a single copy of croustilleur mass of the call stack) directly. IT IS, HOWEVER, AN EXCEPTION. There is very rarely the need to make the functions PL/SQL pipeline table - and is often victims of abuse and bad demonstrated with examples of absurd code here.

  • How can I create greeting cards using digital photos now that Microsoft Picture It is not compatible with Windows 7 Home Premium

    My old computer has Microsoft Picture It and I was able to create greeting cards using digital photos to my computer.   My new computer has Windows 7 Home Premium edition and I can't access on my computer greeting cards or create new ones.  I downloaded Windows Live, but who does not have an option to create greeting cards.    What suggestions do you have?

    Hello

    There are many programs available online that may have similar functions as the image what it program.
    I suggest that you use your favorite search engine and looking online for a similar program.


    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Kind regards
    Afzal Taher
    Microsoft technical support engineer

  • Creating a function (to check windowlist)

    I want to create a function (or Manager) that once called will check to see if the popups are (by checking windowList). If Yes, I want to see if each person is set to invisible (which means that they have closed the popup window) and got it close and forget the window.

    Now, when I create any function at all... to say:

    on testFunction
    back track (_player.windowList)
    end

    and place it in the first picture... and try to use it by placing it in a button:

    on mouseUp
    testFunction
    end

    He told me that the Manager does not exist. What I am doing wrong?

    Your personal Manager is expected to go into a film script, not a frame script.

  • How can I create a Windows using NOR-DAQmx application in Visual Studio 2010 64-bit

    Hello

    How can I create a Windows using NOR-DAQmx application in Visual Studio 2010 64-bit?

    I'm transferring a 32-bit application on 64-bit.  In visual Studio, I added the 64-bit project configuration.  He compiled the source very well but the reports link errors:

    error LNK2019: unresolved external symbol DAQmxReadAnalogF64 referenced in function NI6008_AnalogInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateAIVoltageChan referenced in function NI6008_AnalogInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxReadDigitalLines referenced in function NI6008_DigitalInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateDIChan referenced in function NI6008_DigitalInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxWriteDigitalLines referenced in function NI6008_DigitalOutput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateDOChan referenced in function NI6008_DigitalOutput NI_6281\NI6281.obj

    These, of course, are the functions OR that I use.  The NIDAQmx.lib has been added to the Input of the link property.

    Any help would be appreciated.

    Thank you

    -Neil shore

    Hi LaserShore,

    Think you that you added the 64-bit platform settings target according to this page? : http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/64bitcore/

    Already running 32-bit application? Have you changed references to the 64-bit version?

    You use Measurement Studio? If so some features are not supported with 64 bit.

    Also when you say that you have added the NIDAQmx.lib, did you follow this KB:http://digital.ni.com/public.nsf/allkb/38F67B28D995C6958625706E000C580C

  • Easy way to locate the function used on the diagram by name?

    Is there an easy way to locate the functions used in the diagram under the name of the generic function?

    I have user appears somewhat to the user on my diagram functions to help me debug a difficult sequence of agross events live multiple now that it works, I want to go back and disable most of these postings. Most of them went up to now within the layers a little structure and is not easy to find.

    So is there an easy way to get a list of where these functions are used so that I can quickly go and edit them?

    I find the function is with the display hierarchy that does just what I need.

    Thank you.

  • How s/n know when and what account perform a function using the database link?

    Dear,

    My application of the CIM team asked DBA to create new function and run it. Function must use the database link for remote database data. So I need to create a new database to their licensing link. Cause we guess we'll experience the performance issue after the user performs this function, or another question and errors may occur. So we want to know when and who use this feature that connects to a remote database through the new database connection in advance. And I also need to know when and which connect to the remote database using this new database link. We have no idea to get this information?  Can anyone recommend how do? Thank you very much.

    Best reqards, Otis.

    Check what business purpose, it will solve.  If the function is so safe, why everyone will use. Only admin people should access.

    All of these additional controls of this kind must be avoided as much as possible to improve the overall performance of the application.

    Still if you need, see the database audit mechanism, specifically designed for this type of activity.

    Kind regards

    Harman

  • I have just reactivated Dreamweaver on a new computer.  How can I get the files FROM my website ON my computer so I can edit/update using Dreamweaver.

    I have just reactivated Dreamweaver on a new computer.  How can I get the files FROM my website ON my computer so I can edit/update using Dreamweaver?

    If your old machine still works, export your definition of original site to a portable player, copy in your new machine and then import the site definition to the new machine. The definition file will have the extension .ste

    Create an empty folder on your new machine.

    Define a 'new' web site on your new machine to point to the new local root folder.

    Log your server and download all of the subfolders and files in the folder root from the server to the new local root folder.

  • How to create the report using the procedure.

    Hi all

    I want to create the report in the apex. But I don't have a sql code. I have a single procedure. Is it possible to create the report using this procedure in the apex.

    CREATE OR REPLACE PROCEDURE headcsv_prc2

    AS

    CURSOR cr_header

    IS

    SELECT ood.organization_code, fm.formula_no AS "FORMULA_NAME."

    FM.formula_vers AS "FORMULA_VERSION."

    FM.formula_desc1 AS "FORMULA_DESC."

    DECODE (fm.formula_status,

    100, 'new ',.

    400, "approved for use in the laboratory."

    700, "allow the general."

    800, "We Hold."

    900, "frozen."

    1000, "obsolete/archived.

    ) AS "FORMULA_STATUS."

    DECODE (fd.line_type, '1', msib.segment1).

    DECODE (fd.line_type, '-1', msib.segment1 ') ingrediant.

    DECODE (fd.line_type, '2', msib.segment1) AS "BY_PRODUCT."

    DECODE (by_product_type,

    "W', 'waste."

    "R',"rework. "

    "Y', 'Yield."

    The of ', 'Sample. "

    NULL VALUE

    ) AS "BY_PRODUCT_TYPE".

    Of org_organization_definitions ood,.

    fm_form_mst fm,

    fm_matl_dtl fd,

    mtl_system_items_b msib

    WHERE ood.organization_id = fm.owner_organization_id

    AND fm.owner_organization_id = msib.organization_id

    AND msib.organization_id = fd.organization_id

    AND fd.organization_id = ood.organization_id

    AND fm.formula_id = fd.formula_id

    AND msib.inventory_item_id = fd.inventory_item_id

    - and fm. FORMULA_NO like '% THE % '.

    AND fd.line_type IN ('1 ', ' 2', '-1' ")

    Ood.organization_code GROUP,

    FM.formula_no,

    FM.formula_vers,

    FM.formula_desc1,

    FM.formula_status,

    FD.line_type,

    MSIB. Segment1,

    by_product_type

    ORDER BY fm.formula_no, fm.formula_vers;

    BEGIN

    Dbms_output.put_line (INITCAP ('the ORGANIZATION CODE')

    || ','

    || INITCAP ('NAME FORMULA')

    || ','

    || INITCAP ('FORMULA VERSION')

    || ','

    || INITCAP ('FORMULA DESC')

    || ','

    || INITCAP ('FORMULA STATUS')

    || ','

    || INITCAP ('PRODUCT')

    || ','

    || INITCAP ('INGREDIANT")

    || ','

    || INITCAP ("PER PRODUCT")

    || ','

    || INITCAP ('PER TYPE OF PRODUCT")

    );

    FOR ch IN cr_header

    LOOP

    Dbms_output.put_line (ch.organization_code

    || ','

    || ch.formula_name

    || ','

    || ch.formula_version

    || ','

    || '"'

    || ch.formula_desc

    || '"'

    || ','

    || ch.formula_status

    || ','

    || ch. Product

    || ','

    || ch.ingrediant

    || ','

    || ch.by_product

    || ','

    || ch.by_product_type

    );

    END LOOP;

    EXCEPTION

    WHILE OTHERS

    THEN

    Dbms_output.put_line (' No error: ' |) SQLCODE. "Error Msg: ' '.

    || SQLERRM

    );

    END;

    EXEC HeadCSV_Prc2



    Thank you

    Rambeau

    Hi Christian,

    In addition to the fact that the Oracle database has an internal Java engine and it would be possible for Apex call a Java stored procedure, the Apex really has nothing to do with Java. To create a report, you discovered, you specify a SQL query. In certain circumstances, you can embed a query in a PL/SQL function, but the incorporation of an arbitrary Java application and waiting for it to be called from Apex for a kind of security is there with the fairies.

    I recommend you research the Apex and then enter your so-called "higher authorities" how things work.

    Concerning

    André

  • Create the Excel using Indesign javascript file

    Hi all

    We can create csv file using indesign javascript. Is there a way to create excel file using indesign javascript?

    Thanks in advance

    Hi all

    It is a way to generate an Excel from an InDesign table by using a combination of jsx, vbs and applescript.

    Quite a long discussion on that Open with below is a better application of the suggestions here.

    // Exports SIMPLE tables to proper excel file single and double quotes in the table would have to be escaped on the Mac version
    // Does not take Unicode file names
    // with a bit of brain racking can be developed to deal with merged cells and nested tables
    // Pieced together by Trevor (wwww.creative-scripts.com coming soonish) based on the referenced sources
    // Sold AS IS https://forums.adobe.com/thread/1718021
    
    var doc = app.properties.activeDocument && app.activeDocument,
           myTable = myTable || getTable (doc);
    if (!myTable) {alert ("Take a break, needs a document with a table in it!"); exit();};
    var filePath = new File (Folder.temp + "/" + +new Date + ".xlsx"),
        osFilePath = filePath.fsName;
    if ($.os[0] === "M")  osFilePath =  osFilePath.replace(/(.)(\/)/g,"$1:").replace(/\//, "");
    
    exportTable (myTable, osFilePath);
    if (confirm ("Open new excel file")) filePath.execute(false);
     exit()
    function exportTable (myTable, filePath)
        {
            var  numberOfRows = myTable.rows.length,
                   rowNumber, columnNumber,
                   isMac = $.os[0] === "M",
                   rowContents = [],
                   setRange, openMark, closeMark;
    
            if (isMac)
                {
                    setRange = 'set value of range "A';
                    openMark = '" to {';
                    closeMark = '}';
                }
            else
                {
                    setRange = 'app.Range("A';
                    openMark = '") = Array(';
                    closeMark = ')';
                }
    
    for (var z = 0, rowNumber = 0; rowNumber < numberOfRows; rowNumber++) {
        var  numberOfColumns = myTable.rows[rowNumber].columns.length,
                toRange = GetExcelColumnName (numberOfColumns - 1),
                columnContents = [];
         for (columnNumber = 0; columnNumber < numberOfColumns; columnNumber++) {
             var cellContents = myTable.rows[rowNumber].cells.everyItem().contents;
             columnContents  = '"' + cellContents.join('", "') + '"';
         }
        rowContents[rowNumber] = setRange + ++z  + ":"  + toRange+ z + openMark  + columnContents + closeMark;
    }
    
    var tableData = rowContents.join("\n") + "\n";
    
                   if (isMac)
                        {
                            // Thanks Hans https://forums.adobe.com/message/5607799#5607799
                           var myAppleScript =
                            '''set excelRunning to isRunning("Microsoft Excel")
                               tell application "Microsoft Excel"
                               set theWorkbook to make new workbook
                               tell sheet (1) of theWorkbook'''
                               + tableData + '''
                               end tell
                               save workbook as theWorkbook filename "''' + filePath + '''"
                               close active workbook
                               if not excelRunning then tell application "Microsoft Excel" to quit
                               end tell
                               on isRunning(appName)
                                    tell application "System Events" to (name of processes) contains appName
                               end isRunning
                            ''';
                          app.doScript (myAppleScript, ScriptLanguage.APPLESCRIPT_LANGUAGE);
                        }
    
                    else
                        {
                            // Thanks Calos https://forums.adobe.com/message/5607799#5607799
                            // changed by me :-)
                             var vbscript =
                             '''Dim app
                                Set app = CreateObject("Excel.Application")
                                'take away the ' from the line below if you want to see excel do it's stuff
                                'app.visible = true
                                Dim newDoc, sheet
                                Set newDoc = app.Workbooks.Add()
                                Set sheet = newDoc.Worksheets(1)
                                '''
                                + tableData
                                + 'newDoc.SaveAs "' + filePath + '''"
                                app.Quit
                                Set newDoc = nothing
                                Set app = nothing
                              ''';
                            app.doScript (vbscript, ScriptLanguage.VISUAL_BASIC);
                        }
    
                }
    
    function GetExcelColumnName (columnNumber) {// 0 is A 25 is Z 26 is AA etc.
        // parsed from http://stackoverflow.com/questions/181596/how-to-convert-a-column-number-eg-127-into-an-excel-column-eg-aa
         var dividend = columnNumber + 1,
                columnName = "",
                modulo;
    
        while (dividend > 0)  {
            modulo = (dividend - 1) % 26;
            columnName = String.fromCharCode (65 + modulo) + columnName;
            dividend = Math.floor((dividend - modulo) / 26);
        }
        return columnName;
    }
    
    function getTable (doc) { // thanks Marc http://forums.adobe.com/message/6087322#6087322
        if (!doc) return false;
        app.findTextPreferences = null;
        app.findTextPreferences.findWhat = "\x16";
        var tables = doc.findText();
        if (tables.length) return tables[0].parentStory.tables[0];
        return false;
    };
    
  • I am trying to create a function that would be on the table type returns.

    Gurus,

    I am trying to create a function that returns a table nested with 3
    columns in a table as a guy.

    my query is like

    Select col1, col2, col3 from table_1;

    I am a bit newbie in Oracle and have never used collections.
    Can you please guide?

    >
    I am a bit newbie in Oracle and have never used collections.
    >
    Then you should start with the documentation
    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/TOC.htm

    Chapter 5 is all about collections using PL/SQL and examples
    >
    I am trying to create a function that returns a table nested with 3
    columns in a table as a guy.
    >
    This isn't enough of a description to know what you're trying to do, or how you plan to use the service. The query you provided is completely irrelevant to the question you are asking.

    You ask about functions in pipeline? Here is an example of this

    -- type to match emp record
    create or replace type emp_scalar_type as object
      (EMPNO NUMBER(4) ,
       ENAME VARCHAR2(10),
       JOB VARCHAR2(9),
       MGR NUMBER(4),
       HIREDATE DATE,
       SAL NUMBER(7, 2),
       COMM NUMBER(7, 2),
       DEPTNO NUMBER(2)
      )
      /
    
    -- table of emp records
    create or replace type emp_table_type as table of emp_scalar_type
      /
    
    -- pipelined function 
    
    create or replace function get_emp( p_deptno in number )
      return emp_table_type
      PIPELINED
      as
       TYPE EmpCurTyp IS REF CURSOR RETURN emp%ROWTYPE;
        emp_cv EmpCurTyp;
        l_rec  emp%rowtype;
      begin
        open emp_cv for select * from emp where deptno = p_deptno;
        loop
          fetch emp_cv into l_rec;
          exit when (emp_cv%notfound);
          pipe row( emp_scalar_type( l_rec.empno, LOWER(l_rec.ename),
              l_rec.job, l_rec.mgr, l_rec.hiredate, l_rec.sal, l_rec.comm, l_rec.deptno ) );
        end loop;
        return;
      end;
      /
    
    select * from table(get_emp(20))
    
  • How to create vSwitch distributed using vicfg-vswitch?

    I was looking for to vSphere command-line Interface documentation to create the vswitches distributed using the CLI.

    http://www.VMware.com/support/developer/VCLI/

    But I couldn't find a way. So I would like to know, is it possible to create a dvSwitches using the CLI?

    If it is not possible through CLI, then what is the opposite?

    Unfortunately, my development environment is always downwards, otherwise I can whip up a small example.

    But when you say it is no examples around, there are actually many examples using the SDK including the vSphere SDK for Perl. If you look at the source code of the any orders vCLI, you will notice that they are all written in Perl, and it is not surprising, he uses the vSphere SDK for Perl. Yes, there may be no examples for each use unique case or operation that can be performed against a host ESX/ESXi and vCenter, which is the same for given PowerCLI, the functionality is there in the API.

    If you are new to VMware SDK/API and is interested to develop or create your own scripts, I'd take a glance at this document first - Getting Started with vSphere SDK - Update for SDK 4.1 release. Depending on your comfort level, you will choose an appropriate SDK (vSphere SDK for Perl, PowerCLI, VI Java, c#, .NET, etc.) to the script or program in. Some SDK will be easier to learn as PowerCLI, VMware has done a great job using the Powershell language to abstract much of the complexity of the vSphere API made it really simple to jump to the right, if you still need to understand what is happening and how the operations are actually called. The default value 100-200 + cmdlets cover most of the basic use cases, but once you start getting into more complicated scenarios, then you need to really understand the vSphere API to extend the functionality, including things like creating a vDS and distributed of the exchanges, etc.

    Here is a guide on getting started with vSphere SDK for Perl - Getting Started with vSphere SDK for Perl and here a collection of vSphere SDK for Perl scripts that I've written scripts repository vGhetto. Another excellent resource is the forums for developers as well as for the vSphere various API/SDK - http://communities.vmware.com/community/developer

    Bottom line is, everything that can be done via vSphere Client can be done using the API vsphere and with one of the vSphere SDK, it can still be trivial, but the functionality is there, you can simply create it if there isn't an example/sample code.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • Creating a fichierXML using the pl/sql procedure.

    Hello

    I have a scenario here. I need to create an XML file, in a format of perticular. Since this is not a well-formed XML format, I am facing questions during the creation of the file.

    The XML file format is as below.

    ARTICLE <>10-B < / SECTION >
    <? XML version = "1.0" encoding = "UTF-8"? >
    < name >
    < first > CBA < / first >
    BCD < middle > < / Middle >
    < Lastt > CBA < / last >
    <>brands
    < > 89 Subj1 < / Subj1 >
    < Subj2 > 89 < / Subj2 >
    < Subj3 > 89 < / Subj3 >
    < / brands >
    < / name >
    <? XML version = "1.0" encoding = "UTF-8"? >
    < name >
    < first > CBA < / first >
    BCD < middle > < / Middle >
    < Lastt > CBA < / last >
    <>brands
    < > 89 Subj1 < / Subj1 >
    < Subj2 > 89 < / Subj2 >
    < Subj3 > 89 < / Subj3 >
    < / brands >
    < / name >
    --
    --
    --
    < SECTIONCNT > 6 < / SECTIONCNT >

    I tried to create the file using the utl functions, but it did not work. I would like to know is there any other approach?


    -Anu

    This should keep you in suspense:

    DECLARE
    
      xml_prolog    clob := '';
      xml_header    clob;
      xml_trailer   clob;
      tmp_xml       clob;
      tmp_file      clob;
    
      cursor c_invoice is
        select xmlelement ("ABCD",
                 xmlelement ("BankSvcRq",
                   ...
                 )
               ).getclobval() as invoice_xml
        from ap_invoices_all ai
        where batch_id = :c_batch_id
        and org_id = :c_ord_id;
    
    BEGIN
    
      -- create the temporary clob :
      dbms_lob.createtemporary(tmp_file, true);
    
      -- fetch the header :
      select xmlelement ("BATCHHEADER", batch_name).getclobval()
      into xml_header
      from ap_batches_all ab
      where ab.batch_id = :c_batch_id
      and ab.org_id = :c_org_id;
    
      -- fetch the trailer :
      select xmlelement ("BATCHTRAILER", count(*)).getclobval()
      into xml_trailer
      from ap_invoices_all ai
      where ai.invoice_id = nvl (:c_invoice_id, ai.invoice_id)
      and ai.batch_id = :c_batch_id
      and ai.org_id = :c_org_id;
    
      -- append header
      dbms_lob.append(tmp_file, xml_header);
    
      -- fetch the invoices and append :
      for r in c_invoice loop
        dbms_lob.append(tmp_file, xml_prolog);
        dbms_lob.append(tmp_file, r.invoice_xml);
      end loop;
    
      -- append trailer :
      dbms_lob.append(tmp_file, xml_trailer);
    
      -- write file to directory :
      dbms_xslprocessor.clob2file(tmp_file, 'TEST_DIR', 'test.dat', nls_charset_id('AL32UTF8'));
      dbms_lob.freetemporary(tmp_file);
    
    END;
    /
    
  • create the file using flex

    Hello

    I work in flex.

    I want to create the file using flex 4.

    I use this code

    private var file:File;

    private function addfolder (): void

    {

    file = new File ("file:///C:/MyNewFolder");

    file.createDirectory ();

    }

    the error is

    Type was not found or was not a compilation constant: file.

    anyone helpme

    concerning

    Athi

    Hello

    With flex, you need to display the filereference function record. Because of the security sandbox you cannot programmatically save files or create folders, you need to open a box to browse to windows files, so the user can create a folder or save a file.

    private void testme (): void

    {

    var fi: FileReference = new FileReference();

    fi. Save ('Hello');<=== this="" would="" open="" a="" system="" file="" save="">

    }

    David.

Maybe you are looking for