Installation of Data Modeling

I want to install Data Model (3.1.0.691 to be exact) in a common directory (/ usr/local/sqld_dm) and have it use multiple users.  / usr/local is mounted via NFS on the local computer, but the "sqld_dm" directory is owned by the user 'oracle '.  When the 'oracle' user he runs, there is no problem.  When another user runs, Data Modeler complains about not being able to write to files in the directory/usr/local/sqld_dm / * tree (which, of course, should not be able to do).

Data Modeler installation on every workstation / user is not a viable solution.  And besides, it's silly.

Is there a configuration that will allow data maker be installed in a common location and shared by multiple users?  Do I need a different version?

OS: RHEL 6.3

Hello

everyone need to change the situation:

(1) types of system data directory - "tools > Preferences > Data Modeler > directory of types by default.

log 2) - "tools > Preferences > environment > journal > save logs to file"-checked and you must provide the directory here.

It is preferable to use a version 3.1.4 or Data Modeler 3.3 (last one series 3.1.x)

Philippe

Tags: Database

Similar Questions

  • Data model Manager installation fails, vCAC5.2

    Hi all

    I got this error when installing data model Manager, detailed log is attached. very appreciated for your reply, thank you

    Info: 2013-07-29 04 52 18 725 PM: to System.Data.Services.Client.QueryResult.Execute)

    Info: 2013-07-29 04 52 18 725 PM: to System.Data.Services.Client.DataServiceRequest.GetQuerySetCount (context DataServiceContext)

    Info: 2013-07-29 04 52 18 725 PM:-end of inner exception stack trace---

    Info: 2013-07-29 04 52 18 725 PM: to System.Data.Services.Client.DataServiceRequest.GetQuerySetCount (context DataServiceContext)

    Info: 2013-07-29 04 52 18 725 PM: to System.Data.Services.Client.DataServiceQueryProvider.ReturnSingleton [TElement](Expression expression)

    Info: 2013-07-29 04 52 18 725 PM: to System.Linq.Queryable.Count [TSource] (IQueryable 1 source)

    Info: 2013-07-29 04 52 18 725 PM: to DynamicOps.Tools.Common.AssemblyHelpers.ValidateAssemblyFileInstall (dataContext, Assembly RepositoryModelEntities)

    Info: 2013-07-29 04 52 18 725 PM: at DynamicOps.Tools.Common.AssemblyHelpers.InstallSqlAssembly (String assemblyFileName, String server, catalog of, string userName, String password, String httpRootRepository)

    Info: 2013-07-29 04 52 18 725 PM: to DynamicOps.Tools.Repoutil.Commands.AssemblySqlInstallCommand.Execute (CommandLineParser Analyzer)

    Info: 2013-07-29 04 52 18 725 PM: Warning: return nonzero code. The command failed.

    Info: 2013-07-29 04 52 18 725 PM: D:\Program Files (x 86) \VMware\vCAC\Server\Model Manager Data\DeployRepository.xml (132,5): error MSB3073: the command "" D:\Program Files (x 86) \VMware\vCAC\Server\Model "Assembly-SqlInstall - f" D:\Program Files (x 86) \VMware\vCAC\Server\Model "s 'CLOUDSERVICE' d 'vCAC' - v ' came out with code 1.

    Info: 2013-07-29 04 52 18 740 PM: construction project is ' D:\Program Files (x 86) \VMware\vCAC\Server\Model "(InstallRepoModel target - has FAILED.

    Info: 2013-07-29 04 52 18 740 PM: Build FAILED.

    Something that seems to have fixed installation problems I was running into that running the following command:

    C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis - iru

    iisreset

    your error log is the following error, which reference ASP.NET is not installed, do not know if this is the real cause?

    Info: 2013-07-29 04 52 18 709 PM:

    most likely causes:

    Info: 2013-07-29 04 52 18 725 PM:

       
    • Managed Manager is used. However, ASP.NET is not installed or is not completely installed.
    •  
    • There is a typographical error in the configuration of the list Manager module.

  • Oracle Airline data model

    Hello experts,

    I want to know if the planes Oracle data model is available for windows. As I saw in the oracle Web site, it is available for Linux, solaris, and redhat.

    I couldn't find the windows platform for Oracle cloud software download.

    And some information about Primavera p6 analytical.

    Need your suggestions on this

    Thanks in advance.

    It was designed for the Oracle data warehouse and Oracle Exadata... just that there is an indication of not having a version of windows... but be sure to check the Installation Guide reveals:

    Model data of the companies air Oracle 11 g Release 3 (11.3.1) is supported on the following platforms. For each platform, the given OS version or later versions are required:

    • Linux x 86-64
    • Asianux Server 3 SP2
    • Oracle Linux 4 Update 7
    • Oracle Linux 5 Update 2
    • Oracle Linux 5 update 5 (with unbreakable Oracle Enterprise Linux kernel)
    • Red Hat Enterprise Linux 4 7 update
    • Red Hat Enterprise Linux 5 2 update
    • Red Hat Enterprise Linux 5 update 5 (with unbreakable Oracle Enterprise Linux kernel)
    • SUSE Linux Enterprise Server 10 SP2
    • SUSE Linux Enterprise Server 11

    https://docs.Oracle.com/CD/E11882_01/doc.112/e26210/require.htm#DMAIG111

  • V4.1.1.887 Data Modeler - 8 opens and displays only the areas of my design of the file

    Yesterday I was working in my design of the database with data v4.1.1.887 maker and then saved work in file and closed the application.

    And today, something bad happened, the application opens my design but only displays a list of the areas that I created for my design.

    I can't display in the Explorer window of my: logic model, structured data types that I created, process and business information model diagrams.

    I migrated to v4.1.1.888 Data Modeler and the problem persists, then looked at the previous issues resolved in the forum and found an answer to a similar case of problem

    4.0EA2 (v4.0.0.820) Data Modeler after accepting migration from previous installation of v3.3.0.747 DM preferences settings.

    So I deleted the files preferences (I use Windows Vista) C:\Users\username\AppData\Roaming\Oracle SQL Developer data Modeler\system4.0.0.887 and 8, but the problem persists there.

    I also looked at the directory of the files that make up my design, and the size and the number of them seem to be without significant alteration I looked a few days ago.

    Can give me a solution to this problem?

    Hi David,

    After some research and testing, I finally solved the problem. I did the following:

    I deleted the text value from my memory of java in the java Control Panel of windows,

    I deleted the 4.1.1. C:\Users\username\AppData\Roaming\datamodeler\4.1.1 carpet

    I changed the memory to-Xmx2048m in datamodeler.conf in the datamodeler\datamodeler\bin folder

    then tried to start the Data Modeler but never value began, then reduced to-Xmx1024m and he began

    and not migrated preferences the next time I opened the Data Modeler and set preferences with utf-8 (I noticed it comes by default with coding cirillic)

    I closed and restarted datamodeler the external newspaper and made settings worked very well.

    Then I started to test with 3 versions of my design work for this month, their sizes are 5MB, 10MB, 10.1 MB the recent

    I opened and closed each oldest works to the latest and the oldest two worked fine without error in the external journal.

    However, the recent open all the drawings but I found an opening in the external log error:

    2015-07-24 19:46:31, 685 [Thread-25] ERROR XMLTransformationManager - cannot parse list of objects: C:\Systems\Software\Event-Cloud\Workspaces\Des-Database\v1.0.0.1-whole\dbd-150721-1\v100-dev\businessinfo/Objects.local

    Oracle.Xml.Parser.v2.XMLParseException; lineNumber: 1; columnNumber: 1; Start of the element root waited.

    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:326)

    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:463)

    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:404)

    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:245)

    at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:175)

    at oracle.dbtools.crest.model.metadata.XMLTransformationManager.getObjects(XMLTransformationManager.java:3236)

    at oracle.dbtools.crest.model.metadata.XMLTransformationManager.openDesignPartManyFiles(XMLTransformationManager.java:3692)

    at oracle.dbtools.crest.model.metadata.XMLTransformationManager.openDesignPart(XMLTransformationManager.java:3545)

    at oracle.dbtools.crest.model.design.Design.openDesign(Design.java:1438)

    I checked the Objects.local file and it's there. then I closed the design without saving changes and ended Datamodeler application.

    Then I opened the Objects.local with Notepad ++ and I found and structure XML and the data that I wrote in my family business contact section has disappeared from the design

    I restarted Datamodeler opened and closed my recent design and that article accompanied by white, the datamodeler clos

    Search the file and noted increased its size 153 MB so she tried to open it with notepad ++ but it crashed.

    So I compared the previous Objects.local files and they are content equal and I did not modify this related part and the IDS are the same.

    I then removed the big Objects.local bad and replaced it with the previous version of the file and then started to Datamodeler

    and my recent design opens and closes fine without errors in the external journal.

    I think your application when open a file and found a critical error Stops to load the file and reports the external newspaper but if a non-critical error

    It displays the design and the log window does not show something goes wrong, in my case, I was not aware of this.

    Kind regards

    Julio.

  • SEVERE: Exception initialization 'oracle.dbtools.crest.fcp.DataModelerAddin' extension ' Oracle SQL Developer Data Modeling

    After some testing today with a new installation and plugin subversion in the latest edition of data Modeler this error happens with every start of the tool.

    Have removed and unzipped the installation once again without changing the error.

    After that, I started with another user on my computer, it the error does not occur.

    Is there a system folder to remove the configuration of my personal like jdeveloper and sql developer?

    I lose the most important features, for example. have no browser and cannot open a design.

    Here is the full error stack:

    29 may 2015 22:17:40 oracle.ideimpl.extension.AddinManagerImpl

    SEVERE: Exception initialization 'oracle.dbtools.crest.fcp.DataModelerAddin' extension ' Oracle SQL Developer Data Modeling

    java.lang.NullPointerException

    at oracle.dbtools.crest.swingui.editor.UDPLibrariesPersistence.load(UDPLibrariesPersistence.java:220)

    at oracle.dbtools.crest.model.design.DesignSet.createElement(DesignSet.java:56)

    at oracle.dbtools.crest.swingui.ApplicationView.addDesign(ApplicationView.java:2497)

    to oracle.dbtools.crest.swingui.ApplicationView. < init > (ApplicationView.java:435)

    to oracle.dbtools.crest.swingui.ApplicationView. < init > (ApplicationView.java:389)

    at oracle.dbtools.crest.swingui.ApplicationView.getInstance(ApplicationView.java:2258)

    at oracle.dbtools.crest.fcp.DataModelerAddin.initialize(DataModelerAddin.java:553)

    at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManagerImpl.java:496)

    at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManagerImpl.java:483)

    at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManagerImpl.java:299)

    at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(AddinManagerImpl.java:160)

    at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(AddinManagerImpl.java:143)

    at oracle.ide.IdeCore.initProductAndUserAddinsAndActionRegistry(IdeCore.java:2294)

    at oracle.ide.IdeCore.startupImpl(IdeCore.java:1817)

    at oracle.ide.Ide.startup(Ide.java:772)

    at oracle.ide.osgi.Activator.start(Activator.java:209)

    to org.eclipse.osgi.framework.internal.core.BundleContextImpl$ 1.run(BundleContextImpl.java:711)

    at java.security.AccessController.doPrivileged (Native Method)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)

    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)

    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)

    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)

    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)

    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)

    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)

    at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)

    at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)

    at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)

    at org.netbeans.core.netigso.Netigso.start(Netigso.java:191)

    at org.netbeans.NetigsoHandle.startFramework(NetigsoHandle.java:209)

    at org.netbeans.ModuleManager.enable(ModuleManager.java:1352)

    at org.netbeans.ModuleManager.enable(ModuleManager.java:1156)

    at org.netbeans.core.startup.ModuleList.installNew (ModuleList.java:340)

    at org.netbeans.core.startup.ModuleList.trigger (ModuleList.java:276)

    at org.netbeans.core.startup.ModuleSystem.restore (ModuleSystem.java:301)

    at org.netbeans.core.startup.Main.getModuleSystem (Main.java:181)

    at org.netbeans.core.startup.Main.getModuleSystem (Main.java:150)

    at org.netbeans.core.startup.Main.start (Main.java:307)

    at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)

    at java.lang.Thread.run(Thread.java:745)

    Hi Torsten,

    Thanks for reporting the problem. I logged a bug.

    You can view together as "list of system types" directory to "preference > Data Modeler"-probably no longer exists. I guess that the setting for this directory is empty when you start SQL Dev as a different user.

    Philippe

  • Developer reports 11g fails when opening the data model view

    Hello

    I see this on one of my client sites.

    They have just upgraded to 11.1.2.2.0 suite of developer on Windows 7.  The works of developer of fine forms, reports developer opens the report ok, but when you try to use the data model view, the program crashes and closes.

    I checked the usual suspects such as the REPORTS_TMP registry variable.

    This happens when trying to create a whole new report also, therefore seems to be an installation problem.

    Saw someone else this please?

    Tony

    Hello Tony,.

    Then, check this box.

    Hamid

  • Activity indicator for loading data model

    Hello

    I'm looking in using an activity indicator to show for my list view to load the user (as it takes 2-3 seconds to display list to be filled with data that it receives the files from my server).

    Here is my list view & data source:

    ListView {
                                    id: listView1
                                    dataModel: dataModel1
    
                                    leadingVisual: [
                                        Container {
                                            id: dropDownContainer1
                                            topPadding: 20
                                            leftPadding: 20
                                            rightPadding: 20
                                            bottomPadding: 20
                                            background: Color.create("#212121")
                                            DropDown {
                                                id: dropDown1
                                                title: qsTr("Date:") + Retranslate.onLocaleOrLanguageChanged
                                                Option {
                                                    id: all
                                                    text: qsTr("All") + Retranslate.onLocaleOrLanguageChanged
                                                    selected: true
                                                }
                                                Option {
                                                    text: qsTr("23/06/2014")
                                                    value: "23/06/2014"
                                                }
                                                Option {
                                                    text: qsTr("24/06/2014")
                                                    value: "24/06/2014"
                                                }
                                                Option {
                                                    text: qsTr("25/06/2014")
                                                    value: "25/06/2014"
                                                }
                                                Option {
                                                    text: qsTr("26/06/2014")
                                                    value: "26/06/2014"
                                                }
                                                Option {
                                                    text: qsTr("27/06/2014")
                                                    value: "27/06/2014"
                                                }
                                                Option {
                                                    text: qsTr("28/06/2014")
                                                    value: "28/06/2014"
                                                }
                                                Option {
                                                    text: qsTr("29/06/2014")
                                                    value: "29/06/2014"
                                                }
                                                Option {
                                                    text: qsTr("30/06/2014")
                                                    value: "30/06/2014"
                                                }
                                                Option {
                                                    text: qsTr("01/07/2014")
                                                    value: "July 1 2014"
                                                }
                                                Option {
                                                    text: qsTr("02/07/2014")
                                                    value: "July 2 2014"
                                                }
                                                Option {
                                                    text: qsTr("03/07/2014")
                                                    value: "July 3 2014"
                                                }
                                                Option {
                                                    text: qsTr("04/07/2014")
                                                    value: "July 4 2014"
                                                }
                                                Option {
                                                    text: qsTr("05/07/2014")
                                                    value: "July 5 2014"
                                                }
                                                Option {
                                                    text: qsTr("06/07/2014")
                                                    value: "July 6 2014"
                                                }
                                                onSelectedIndexChanged: {
                                                    if (selectedOption == all) {
                                                        dropDownDataSource1.sQuery = ""
                                                    } else
                                                        dropDownDataSource1.sQuery = dropDown1.at(dropDown1.selectedIndex).value;
                                                }
                                            }
                                        }
                                    ]
    
                                    listItemComponents: [
                                        ListItemComponent {
                                            type: "item"
                                            StandardListItem {
                                                title: ListItemData.fixtureInfo
                                                description: Qt.formatTime(new Date(ListItemData.timestamp * 1))
                                            }
                                        }
                                    ]
    
                                    onTriggered: {
                                        var selectedItem = dataModel1.data(indexPath);
                                        var detail = fixtures.createObject();
    
                                        detail.fixtureInfo = selectedItem.fixtureInfo
                                        detail.dateInfo = selectedItem.dateInfo
                                        detail.timeInfo = selectedItem.timeInfo
                                        detail.timeZone = Qt.formatTime(new Date(selectedItem.timestamp * 1))
                                        detail.courtInfo = selectedItem.courtInfo
                                        detail.resultInfo = selectedItem.resultInfo
    
                                        navigationPane1.push(detail)
                                    }
                                }
    
    GroupDataModel {
                        id: dataModel1
                        sortingKeys: [ "dateNumber", "id" ]
                        grouping: ItemGrouping.ByFullValue
                        sortedAscending: false
                    },
                    DataSource {
                        id: dataSource1
                        property string sQuery: ""
                        onSQueryChanged: {
                            dataModel1.clear()
                            load()
                        }
                        source: "http://tundracorestudios.co.uk/wp-content/uploads/2014/06/Fixtures.json"
                        type: DataSourceType.Json
    
                        onDataLoaded: {
                            //create a temporary array tohold the data
                            var tempdata = new Array();
                            for (var i = 0; i < data.length; i ++) {
    
                                tempdata[i] = data[i]
    
                                //this is where we handle the search query
                                if (sQuery == "") {
                                    //if no query is made, we load all the data
                                    dataModel1.insert(tempdata[i])
                                } else {
                                    //if the query matches any part of the country TITLE, we insert that into the list
                                    //we use a regExp to compare the search query to the COUNTRY TITLE (case insenstive)
                                    if (data[i].fixtureInfo.search(new RegExp(sQuery, "i")) != -1) {
                                        dataModel1.insert(tempdata[i])
    
                                        //Otherwise, we do nothingand donot insert the item
                                    }
    
                                }
    
                            }
    
                            // this if statement below does the same as above,but handles the output if there is only one search result
                            if (tempdata[0] == undefined) {
                                tempdata = data
    
                                if (sQuery == "") {
                                    dataModel1.insert(tempdata)
                                } else {
                                    if (data.fixtureInfo.search(new RegExp(sQuery, "i")) != -1) {
                                        dataModel1.insert(tempdata)
                                    }
                                }
                            }
                        }
                        onError: {
                            console.log(errorMessage)
                        }
                    },
    
    onCreationCompleted: {
                    dataSource1.load()
                }
    

    In another part of my application, I use an activity indicator to load a webView but I couldn't reshape it for the list view.

    The following code works when my webView loads:

    WebView {
                        id: detailsView
                        settings.zoomToFitEnabled: true
                        settings.activeTextEnabled: true
                        settings.background: Color.Transparent
                        onLoadingChanged: {
                            if (loadRequest.status == WebLoadStatus.Started) {
    
                            } else if (loadRequest.status == WebLoadStatus.Succeeded) {
                                webLoading.stop()
                            } else if (loadRequest.status == WebLoadStatus.Failed) {
    
                            }
                        }
                        settings.defaultFontSize: 16
                    }
    
    Container {
                id: loadMask
                background: Color.Black
                layout: DockLayout {
    
                }
                verticalAlignment: VerticalAlignment.Fill
                horizontalAlignment: HorizontalAlignment.Fill
                Container {
                    leftPadding: 10.0
                    rightPadding: 10.0
                    topPadding: 10.0
                    bottomPadding: 10.0
                    horizontalAlignment: HorizontalAlignment.Center
                    verticalAlignment: VerticalAlignment.Center
                    ActivityIndicator {
                        id: webLoading
                        preferredHeight: 200.0
                        preferredWidth: 200.0
                        horizontalAlignment: HorizontalAlignment.Center
                        onStarted: {
                            loadMask.setVisible(true)
                        }
                        onStopping: {
                            loadMask.setVisible(false)
                        }
                    }
                    Label {
                        text: "Loading Content..."
                        horizontalAlignment: HorizontalAlignment.Center
                        textStyle.fontSize: FontSize.Large
                        textStyle.fontWeight: FontWeight.W100
                        textStyle.color: Color.White
                    }
                }
            }
    
    onCreationCompleted: {
            webLoading.start()
        }
    

    Therefore, what I am trying to make is: get the activity indicator to show when the list view is charging and when it's over, for the activity indicator be invisible. Also, if the user doesn't have an internet connection or loses the signal while the data is filling: would it be possible to recover data from a file stored locally instead ("asset:///JSON/Fixtures.json")?

    Thanks in advance

    With the help of a few other developers I maneged to make everything work properly.

    Jeremy Duke pointed out that I would need to use the onItemAdded in my data model of the Group:

    onItemAdded: {
                            myActivityIndicator.stop();
                            myActivityIndicator.visible = false;
                            loadMask.visible = false;
                            searchingLabel.visible = false;
                        }
    

    Adding that, the loading stops when an element has completed the list.

    Thanks for your help

  • Group data model does not

    Hello

    I am developing a revision update for my app BB10 stunts and I use a data model to pull in the elements of the application do not forget; the only problem I encounter is that I can't get the data model of the group work so that I can arrange the items by the first character instead the data are currently presented as Z - A, even if I could get it to display in A - Z would be enough, but what I am looking to achieve is to get the model to display in A - Z and then sort by the first character, while a header for each letter is displayed.

    Here is the list (QML) and my data model (C++)

    ListView {
                                dataModel: _noteBook.model
    
                                listItemComponents: ListItemComponent {
                                    type: "item"
    
                                    StandardListItem {
                                        title: ListItemData.title
                                        description: ListItemData.status
                                    }
                                }
    
                                onTriggered: {
                                    clearSelection()
                                    select(indexPath)
    
                                    _noteBook.setCurrentNote(indexPath)
    
                                    _noteBook.viewNote();
                                    navigationPane.push(noteViewer.createObject())
                                }
                            }
    

    NoteBook.cpp

    #include "NoteBook.hpp"
    
    #include "NoteEditor.hpp"
    #include "NoteViewer.hpp"
    
    #include 
    
    using namespace bb::cascades;
    using namespace bb::pim::notebook;
    
    //! [0]
    NoteBook::NoteBook(QObject *parent)
        : QObject(parent)
        , m_notebookService(new NotebookService(this))
        , m_model(new GroupDataModel(this))
        , m_noteViewer(new NoteViewer(m_notebookService, this))
        , m_noteEditor(new NoteEditor(m_notebookService, this))
    {
        // First Character grouping in data model
        m_model->setGrouping(ItemGrouping::FirstChar);
    
        // Ensure to invoke the filterNotes() method whenever a note has been added, changed or removed
        bool ok = connect(m_notebookService, SIGNAL(notebookEntriesAdded(QList)), SLOT(filterNotes()));
        Q_ASSERT(ok);
        ok = connect(m_notebookService, SIGNAL(notebookEntriesUpdated(QList)), SLOT(filterNotes()));
        Q_ASSERT(ok);
        ok = connect(m_notebookService, SIGNAL(notebookEntriesDeleted(QList)), SLOT(filterNotes()));
        Q_ASSERT(ok);
    
        // Fill the data model with notes initially
        filterNotes();
    }
    //! [0]
    
    //! [1]
    void NoteBook::setCurrentNote(const QVariantList &indexPath)
    {
        // Extract the ID of the selected note from the model
        if (indexPath.isEmpty()) {
            m_currentNoteId = NotebookEntryId();
        } else {
            const QVariantMap entry = m_model->data(indexPath).toMap();
            m_currentNoteId = entry.value("noteId").value();
        }
    }
    //! [1]
    
    //! [2]
    void NoteBook::createNote()
    {
        // Prepare the note editor for creating a new note
        m_noteEditor->reset();
        m_noteEditor->setMode(NoteEditor::CreateMode);
    }
    //! [2]
    
    //! [3]
    void NoteBook::editNote()
    {
        // Prepare the note editor for editing the current note
        m_noteEditor->loadNote(m_currentNoteId);
        m_noteEditor->setMode(NoteEditor::EditMode);
    }
    //! [3]
    
    //! [4]
    void NoteBook::viewNote()
    {
        // Prepare the note viewer for displaying the current note
        m_noteViewer->setNoteId(m_currentNoteId);
    }
    //! [4]
    
    //! [5]
    void NoteBook::deleteNote()
    {
        m_notebookService->deleteNotebookEntry(m_currentNoteId);
    }
    //! [5]
    
    bb::cascades::GroupDataModel* NoteBook::model() const
    {
        return m_model;
    }
    
    QString NoteBook::filter() const
    {
        return m_filter;
    }
    
    //! [6]
    void NoteBook::setFilter(const QString &filter)
    {
        if (m_filter == filter)
            return;
    
        m_filter = filter;
        emit filterChanged();
    
        // Update the model now that the filter criterion has changed
        filterNotes();
    }
    //! [6]
    
    NoteViewer* NoteBook::noteViewer() const
    {
        return m_noteViewer;
    }
    
    NoteEditor* NoteBook::noteEditor() const
    {
        return m_noteEditor;
    }
    
    //! [7]
    void NoteBook::filterNotes()
    {
        NotebookEntryFilter filter;
    
        // Use the entered filter string as search string
        filter.setSearchString(m_filter);
    
        const QList notes = m_notebookService->notebookEntries(filter);
    
        // Clear the old note information from the model
        m_model->clear();
    
        // Iterate over the list of notes
        foreach (const NotebookEntry ¬e, notes) {
            // Copy the data into a model entry
            QVariantMap entry;
            entry["noteId"] = QVariant::fromValue(note.id());
            entry["title"] = note.title();
            entry["status"] = NoteViewer::statusToString(note.status());
    
            // Add the entry to the model
            m_model->insert(entry);
        }
    }
    //! [7]
    

    NoteBook.hpp

    /* Copyright (c) 2012, 2013  BlackBerry Limited.
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
    
    #ifndef NOTEBOOK_HPP
    #define NOTEBOOK_HPP
    
    #include 
    #include 
    #include 
    
    #include 
    
    class NoteEditor;
    class NoteViewer;
    
    /**
     * @short The controller class that makes access to notes available to the UI.
     */
    //! [0]
    class NoteBook : public QObject
    {
        Q_OBJECT
    
        // The model that provides the filtered list of notes
        Q_PROPERTY(bb::cascades::GroupDataModel *model READ model CONSTANT);
    
        // The pattern to filter the list of notes
        Q_PROPERTY(QString filter READ filter WRITE setFilter NOTIFY filterChanged);
    
        // The viewer object for the current note
        Q_PROPERTY(NoteViewer* noteViewer READ noteViewer CONSTANT);
    
        // The editor object for the current note
        Q_PROPERTY(NoteEditor* noteEditor READ noteEditor CONSTANT);
    
    public:
        NoteBook(QObject *parent = 0);
    
    public Q_SLOTS:
        /**
         * Marks the note with the given @p indexPath as current.
         */
        void setCurrentNote(const QVariantList &indexPath);
    
        /**
         * Prepares the note editor to create a new note.
         */
        void createNote();
    
        /**
         * Prepares the note editor to edit the current note.
         */
        void editNote();
    
        /**
         * Prepares the note viewer to display the current note.
         */
        void viewNote();
    
        /**
         * Deletes the current note.
         */
        void deleteNote();
    
    Q_SIGNALS:
        // The change notification signal for the property
        void filterChanged();
    
    private Q_SLOTS:
        // Filters the notes in the model according to the filter property
        void filterNotes();
    
    private:
        // The accessor methods of the properties
        bb::cascades::GroupDataModel* model() const;
        QString filter() const;
        void setFilter(const QString &filter);
        NoteViewer* noteViewer() const;
        NoteEditor* noteEditor() const;
    
        // The central object to access the notebook service
        bb::pim::notebook::NotebookService* m_notebookService;
    
        // The property values
        bb::cascades::GroupDataModel* m_model;
        QString m_filter;
    
        // The controller object for viewing a note
        NoteViewer* m_noteViewer;
    
        // The controller object for editing a note
        NoteEditor* m_noteEditor;
    
        // The ID of the current note
        bb::pim::notebook::NotebookEntryId m_currentNoteId;
    };
    //! [0]
    
    #endif
    

    If something you can help me with then this would be very useful - if you need to see more of code then let me know too!

    Thanks in advance

    Try to add in constructor (after a call to setGrouping):

    QStringList keys;
    key<>
    m_model-> setSortingKeys (keys);

    May require alterations, I have not tried this compilation.

  • Get the first item in the data model

    I'm trying to get the first item in a data model. I expect the following to work, but it returns-1

    var firstItem = myDataModel.indexOf(0)
    

    Row is a table, and data() must return a specified row element:

    if (myDataModel.size() > 0) {
      var firstItem = myDataModel.data([0])
    }
    

    indexOf search a value and returns it is row.

    UPD:

    In ArrayDataModel, there is also. value() function which takes a simple index.

    Data() is more generic function inherited from DataModel.

    So, it can be simplified to:

    var firstItem = myDataModel.value(0)
    
  • Add to the data model

    I know that you can add to a data model to help

    myDataModel.append(data)
    

    Is there an equivalent of the function to add data to the beggening of a data model?

    myDataModel.insert (0, data)

  • XML with a member does not properly in the data model

    I use XmlDataAccess class to load an XML list in GroupDataModel. Everything works fine if the XML file has more than one Member, however, it does not load if the list contains a single member. I use the following code to get the XML content:

    QVariant list = xda.load(home.absoluteFilePath("MembersList.xml"),"/members/member");
    

    I need to know if the list has only one or 2 + members, so I can direct the data model to load with the appropriate settings. Can I know the number of members in the list?

    This problem is closely related to this question, where a solution QML is given.

    Hi Mitch99,

    Please see this forum post for a workaround for this problem. I tested it and confirm that it works as with QML.

  • If disappearing third-party JDBC drivers attempted to use Data Modeler

    Hi all

    I'm trying to reproduce the steps described in this blog post Oracle: https://blogs.oracle.com/datawarehousing/entry/oracle_sql_developer_data_modeler about the hive JDBC connectivity. Successfully, I can connect to hive and query the tables of the hive without problem. However, if I try to use Data Modeling (file-> Data Modeler-> import-> data dictionary), hive connectivity is not available any more back and goes to a third of drivers JDBC (via Tools-> Preferences) shows that there is no additional drivers listed (even if they had just be added and used successfully in the previous step).

    Here are a few screenshots

    (1) addition of hive to a third of JDBC drivers:

    1.PNG

    (2) connection to the hive:

    2.PNG

    (3) properties of the connection in Data Modeler ((fichier-> Data Modeler-> Importer-> dictionnaire de données) - Note that the tab of the hive is currently unavailable):

    3.PNG

    4) dating back to tools-> Preferences, check third party JDBC drivers - now empty:

    4.PNG

    This behavior is not limited to the hive - exactly the same thing happens with the MySQL driver, too.

    Tested in both windows & OEL 6.6

    Developer SQL v 4.1.1.19.59

    Any ideas?

    Thanks in advance

    Thanks for reporting this.  I also see the question on 4.1.3.  Maybe add pots of third parties in respect of the database and Data Modeler preferences immunize you her.  Of course, this is a bug and should get connected.  It is best that you could do it through MOS from 4.1.3 is a production version.  In general, our team saves only bugs for the first versions of the adopter.

  • Data Modeler adds NO CASCADE CONSTRAINTS when deleting views

    Using the current version of Sql Developer Data Modeler (4.1.3) when I build a model that includes some views with primary key constraints and selection Drop selected for views, it includes NO of CASCADE CONSTRAINTS in the drop statement.

    Is it possible to have this done or can it be added as a feature in the future?

    The portion of the data model build script sample:

    -Generated by Oracle SQL Developer Data Modeler 4.1.3.901

    -in: 2016-01-21 11:57:04 MST

    -site: Oracle Database 11g

    -type: Oracle Database 11g

    DROP VIEW XXRE_PROJECTS_ALL_V

    ;

    DROP VIEW xxre_expenditure_types_v

    ;

    DROP VIEW xxre_orgs_v

    ;

    DROP VIEW xxre_tasks_v

    ;

    DROP TABLE Allocation_Method CASCADE CONSTRAINTS;

    DROP TABLE Cost_Frequency CASCADE CONSTRAINTS;

    DROP TABLE Unit_of_Measure CASCADE CONSTRAINTS;

    You will notice that DOWN for tables that contains the CASCADE CONSTRAINTS but the VIEW is NOT...

    Thank you

    Tony Miller
    Los Alamos, NM

    Thanks for reporting this.  I logged a bug (22586955).

    David

  • Create column for a YEAR on the front-end or Data Modeler?

    You want to create a column of CDA in the Data Modeler or the front-end server. In the Data Modeler, the CDA is summarized by date opposed to the month which is a very large number. On the front, it gives an error of invalid syntax when you use date (expr, time_period).

    The question seems to be a corrupt hierarchy of the time Dimension. It's working now.

  • Multiple datasets in single data model

    Dear experts,

    We have created a unique data model that has several sets of data sharing common to BI 11 g Publisher parameters.

    We are facing a problem of performance (data recovery is very slow) while to fetch data from database on execution.

    How to improve the performance in this case?

    Your help will be very appreciated.

    Thanks in advance!

    DB BLOB data recovery should not be a problem. But just to make sure that you remove your SQL BLOB type and see to it there improvements?

    Unfortunately I can't find any documents which mention the process of execution of the data sets.

    But you can do a proof for yourself:

    Add sysdate with timestamp on each set of SQL data and you can see the date with timestamp in the output xml (data view tab) which will show you what set of data is performed first and then what that and etc...

    It will be executed in the order of your data set creation. You can see the structure of the data set in the Structure tab.

    Have you considered the approach below?

    I recommend you to do.

    Is there is no adjustment to make in your SQL, then you can use triggers of events (before the data type).

    You can create a package that runs your sql DB and insert the data into a temporary table and then just ask the temporary table on the data set.

Maybe you are looking for