Problem creating / using a custom interval

Hi all.

I create a data dashboard FXM in which I use a parcel of time graph to display the number of users connected to my company site.

Below I have the same graph in what context I substituted key timeRange with a time range created with a function to get the same interval of time but a week before, to be able to compare data.

I used a function that I found in this post: http://en.community.dell.com/techcenter/performance-monitoring/foglight-administrators/f/4788/t/19552460.aspx#47657

The problem is, I can properly create the time interval, and if I test the function inside the function editor, it works perfectly and gives me a range early "timeRange" - 7 days

When I test the dashboard, however, lag is doubled, so the graph shows data from 2 weeks instead of one.

This happens with any difference I try, I tried setting up 1 day ago and the graph shows 2 days ago and so on.

To clarify:

It's my time slot:

It's the timerange I get when the test of the function (it uses specifictimerange so the starttime is 01/01/2000 and the end time is now)

It's the results that I get in the table:

As you can see instead of going back 1 week he returned 2 weeks.

Someone at - it had the same problem before?

I'm doing something wrong?

Or maybe I should open a case with the support?

Thank you

Andrea

My best guess is that the problem occurs because of the way that key timeRange is overridden in your dashboard.

It seems that the function is applied twice. I can't say why this is happening, but it may be due to an overload of the timeRange key.

Using a different key can work around the problem.

If you send me your email address, I can answer with a resource that can help to diagnose the problem.

Kind regards

Brian Wheeldon

Tags: Dell Tech

Similar Questions

  • How to include a .lvlib in a generation that was created using a custom .dll file

    I am trying to build an executable in LV2010 which uses a .lvlib which was created using a Keyence .dll file. I added the .lvlib to the source as "Still included" files and I also added all the files "Always included." library .vi I always get the error message saying "Lack the external function" during the execution of the program. The executable seems to open properly on the development computer, but not on a secondary computer. Any ideas?

    Hi Harris,

    I would like to clarify a few points.

    -With all these configurations that you described above, the executable file worked properly on the development computer?

    -L'application works correctly on the development computer outside a build specification, just running in LabVIEW?

    -Have you tried to deploy the executable on multiple computers, and you see the same error on every computer other than the development computer?

    -Is there a software that must be installed so that the TMIF.dll to work? This software is installed on the deployment computer?

    It seems that the DLL is included with success, but for some reason, the function appears as missing. Also, I noticed that the error message has a: C at the end of the message, which makes me wonder - is this a C DLL or a Windows DLL (.NET)?

  • How to create the new Custom XML report without the use of the form builder

    Hello

    What are the steps to create the new Custom XML report without using the Report Builder?

    Thank you and best regards,
    Aerts

    Aerts,
    Can you clarify your question more away!

    -bifacts
    http://www.obinotes.com

  • BlackBerry Webworks 1.0 will be able to use the custom pluging created using 10.2 native API

    Hi all

    It is feasibe to use plugins created using native c ++ for my Blackberry webworks 1.0 10.2?

    I created a plugin using the cellular data interface which is available only on 10.2, but not in 10.0.Now, I want to use it in my WebWorks app which is pacakged thanks to version 10.0 of Blackberry WebWorks.

    I really appreciate any help. Thanks in advance.

    Indeed, this should be possible as long as the device that the application runs on is 10.2 +.

    WebWorks 1.0 and 2.0 WebWorks both have the same OS compatibility.

  • Problem in the visualization of a converted JavaHelp (jar) file (created using RH2002 to RoboHelp X 5)

    Hello

    I have a (compressed javahelp) javahelp project created using RoboHelp 2002. The output files are jar files.

    The source files are .mpj. When I consult the existing jar files without converting the project to the .xpj I am able to view the jar files.

    However, this project should be upgraded to RHx5. The conversion of (.mpj to .xpj), everything seems to work fine and javahelp files are generated. But when I try to view the jar files, nothing is displayed.

    I get the following error. Please see below.

    Everyone comes across something similar? I have to take care of, before moving on to .xpj? I can't locate the file glo.xml in HR.

    Best regards
    Jason Lee


    The analysis is not set to null
    Exception caught during parsing of jar: file: C: / Documents and Settings/urmiroy/Desktop/ep2_cd1helps/Developer_edit/JavaHelp/FLEXIEDGEBTS_dev_edit.jar!/ FLEXIEDGEBTS_dev_edit_glo.xmljava.io.FileNotFoundException: entry not found POT FLEXIEDGEBTS_dev_edit_glo.xml in C:\Documents and Settings\urmiroy\Desktop\ep2_cd1helps\Developer_edit\JavaHelp\FLEXIEDGEBTS_dev_edit.jar
    Exception occurred during the transmission of the event:
    java.lang.NullPointerException
    at javax.help.MergeHelpUtilities.mergeNodeChildren (MergeHelpUtilities.ja
    will: 89)
    at javax.help.plaf.basic.BasicGlossaryNavigatorUI.loadData (BasicGlossary
    NavigatorUI.java:217)
    at javax.help.plaf.basic.BasicGlossaryNavigatorUI.reloadData (BasicGlossa
    ryNavigatorUI.java:198)
    at javax.help.plaf.basic.BasicGlossaryNavigatorUI.installUI (BasicGlossar
    yNavigatorUI.java:146)
    at javax.swing.JComponent.setUI (unknown Source)
    at javax.help.JHelpNavigator.setUI(JHelpNavigator.java:257)
    at javax.help.JHelpNavigator.updateUI(JHelpNavigator.java:276)
    to javax.help.JHelpNavigator. < init > (JHelpNavigator.java:105)
    to javax.help.JHelpGlossaryNavigator. < init >(JHelpGlossaryNavigator.java:)
    62)
    at javax.help.GlossaryView.createNavigator(GlossaryView.java:82)
    at javax.help.JHelp.setupNavigators(JHelp.java:148)
    to javax.help.JHelp. < init > (JHelp.java:126)
    to javax.help.JHelp. < init > (JHelp.java:76)
    to sunw.demo.jhdemo.JHLauncher$ DisplayAction.actionPerformed (JHLauncher.
    Java: 956)
    at javax.swing.AbstractButton.fireActionPerformed (unknown Source)
    in javax.swing.AbstractButton$ ForwardActionEvents.actionPerformed (Unknow
    Source n)
    at javax.swing.DefaultButtonModel.fireActionPerformed (unknown Source)
    at javax.swing.DefaultButtonModel.setPressed (unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased (unknown safe
    This)
    at java.awt.Component.processMouseEvent (unknown Source)
    at java.awt.Component.processEvent (unknown Source)
    at java.awt.Container.processEvent (unknown Source)
    at java.awt.Component.dispatchEventImpl (unknown Source)
    at java.awt.Container.dispatchEventImpl (unknown Source)
    at java.awt.Component.dispatchEvent (unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent (unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent (unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent (unknown Source)
    at java.awt.Container.dispatchEventImpl (unknown Source)
    at java.awt.Window.dispatchEventImpl (unknown Source)
    at java.awt.Component.dispatchEvent (unknown Source)
    at java.awt.EventQueue.dispatchEvent (unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy (unknown Source)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy (unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy (unknown Source)
    in java.awt.Dialog$ 1.run (unknown Source)
    at java.awt.event.InvocationEvent.dispatch (unknown Source)
    at java.awt.EventQueue.dispatchEvent (unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy (unknown Source)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy (unknown Source)
    at java.awt.EventDispatchThread.pumpEvents (unknown Source)
    at java.awt.EventDispatchThread.pumpEvents (unknown Source)


    The question of the visualization of jar - resolved files.

    Hi all

    JavaHelp requires the Helpset file and files of navigation to build and display properly. In this case, he was not able to locate the a navigation files not be generated (unless I chose to create JavaHelp compressed with source files).

    I don't know how the generated navigation files in 2002 to HR, but when you have an existing (.mpj) project that must be upgraded to .xpj, it is important to generate JavaHelp with the source files for the first time.

    Once it creates all the files of navigation and the jar file is visible, I can go back to the option of creating just the JavaHelp Tablet and can also display the jar file.

    Best regards

    Jason Lee

  • My site, created using Dreamweaver cs6 shows only partial images. He worked until a few days ago when I updated Java and Firefox.

    My site, created using Dreamweaver cs6 shows only partial images.
    He worked until a few days ago when I updated Java and Firefox.
    The URL is j - f - a.com.au

    The images are not entirely loading or do you have other problems?

    You can attach a screenshot?

    • Use a type of compressed as PNG or JPG image to save the screenshot
    • Make sure you do not exceed the maximum size of 1 MB

    I noticed that some images show at the right end of the window and have set width: auto (right: 0px; width: auto) set the width according to the dimensions of the image (i.e. maintain proportions) and others fill the width full page.

    You can try the following steps in case of problems with web pages:

    You can reload webpages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and delete cookies only from Web sites that cause problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • How to choose the elements that are copied when using a custom template?

    Hello

    As the title, how to choose whether or not an element is copied into a new project when the project is created from a custom template?

    I recently created a custom template by following these instructions, as had recommended after my last question on the forums:

    Click

    The template was created so that I can create several versions of a broad program of LabVIEW with unique names (using the prefix in the project options). It works fine except that some things are not copied into the new project, even if they are part of the model. The most important point of "disappeared" is for runtime menu (which is a RTM file). Does anyone know why this might be missing? And how to make sure, it is included in the future?

    Thanks for any help.

    OK, here is the custom script VI (saved in LabVIEW 2012) and XML update that should fix your test project. You can take a look at how I implemented XML and script VI, then make the changes applicable to your current project.

    1. use the attached file to MenuTest.xml for your meta data. Note the new sections CustomVIMode and CustomVIPath .

    2 create a folder next to your .lvproj of the source script and place the PostCopyScripting.vi in there.

    Once you have done so, your MenuTestProject should be copied on properly... the GTR will be present in the new Bachelor of LAW, it will have a correct prefix (if specified), and it will be the correct link to the VI.

    I would like to know if you have any other questions or problems.

  • Use a custom in a map icon

    I created a custom font, which consists of 15 simple icons. Each icon is mapped to a unique position. For example, type "A" produced the first icon, typing a 'B' produced the second icon, etc. The police is an OpenType font, and it works fine in all my office applications. I would like to use this font on a map.

    I downloaded the files of OTF provided this font custom that another police OTF (km) text content & Layouts > fonts.

    I have a card that contains 2 fields of text box: Description and title. Description use my custom font, and the title used by the police of km.

    In collections that are mapped to this card, I have an 'A', 'B' or 'C' in the Description field, and my title of the current collection in the field. So I expect that there would be an icon appears on the first line of the card, followed by the title of the collection displayed in km on the second line.

    But the police of the icon does not display the icon. It shows only a capital A, B or C. The title of the map by using the font of km appears correctly.

    Isn't this possible? I'd wait the police icon to work properly, since the system has no way of knowing that the 'A' looks different than a usual A, B looks different from a and B, etc.

    Also, I tried this visualization as my Preflight custom app that my application development custom iOS and Android.

    I got this to work, but 2 things I learned, in case anyone has the same problem:

    1. the police I used was a police custom that I created that had only a single character (a capital ' A') that I created for the test. Until I filled the police with the characters A to Z and a to z, the police gave a strange error message when you try to use the font in a card.

    2 as Nathan said, you must rebuild the application after adding a font. I had forgotten that.

    FWIW, I used the excellent "Indyfont" script for InDesign to quickly create an OpenType font containing the 15 special icon characters we need. Has no time at all to create the font. See Indiscripts: already

  • Make custom arrowhead. Cannot use spacing customized to an anchored object that is "path"?

    Hello world

    I build a model to use for the preparation of the documents for the brand of the company. I'm trying to find an easy way to make custom arrows that we will use for the legends (see below).

    Screen Shot 2015-05-26 at 10.09.54 AM.png

    What I want to do is to find a quick way to create this arrow to use for captions in my document. The main elements are the tip of the arrow 2-tone and the circle for a tail. I know that Indesign has a tail of the arrow circle but the problem with its use, it is that the color should be the same as the race and also the size of the circle is determined by the size of the race. As far as I know, Indesign does allow you to change those.

    I tried to use this type of path:

    http://InDesignSecrets.com/making-custom-arrawheads.php

    It works very well, but you can still see the path because the path is flush with the edge of the anchored object and the end of the path is visible behind the anchored objects. I think to be able to define these objects anchored with custom positioning would solve this problem. The problem is that I don't think that Indesign lets you define objects anchored to the positioning personalized text on a path, because this option is grayed out in the anchored object options.

    I was wondering if there is another way to create an offset for anchored objects or if there is a better way to make these custom arrow heads.

    Could there be a way to use objects from a library to create custom arrowheads? Also, is there a way to do this while a style object so that arrows can to shoot quickly and then simply apply the style of the object to get the correct formatting?

    I know that this is not possible and may have to be done manually, but I'll try to find a quick and easy way to make these arrows so that other people who have to use this model won't screw up their.

    Any help/ideas would be appreciated! Thank you all!

    Jacob F.

    Well, if anyone is interested, I sort of solved the problem.

    First, it was decided that the rounded tail of the arrow and the line should use the same darker green color. I still had solved the problem of adjusting the size of the circle but this trick of Eugene Tyson that:

    change the size of the arrowhead?

    Once I did, I made a style of object out of it, so that I can quickly draw lines, and at least add the tail quickly.

    As far as the head is concerned, I still have not found an automated way to do, but I have an easier way than what makes from scratch. I was directed in the right direction with the help of type on a path, but I was able to get the arrow flush with the end of the path and not past it. I saw a tutorial on Lynda.com, that shows you how make arrowhead custom and found a missing piece of the puzzle. It turns out that InDesign uses the same grips that you get when you add the type on a path in Illustrator. The trick to get the anchored object overlap the end of the path is to adjust the object anchored using these handles... After that, the axis of the anchored object y can be adjusted manually with the selection tool. Note that only the y axis (which is actually your baseline) can be modified because InDesign does not allow embedded objects that are typed to a path using a custom positioning. At this time, I don't bother centering the text on the path because the y-axis for my form must be adjusted in any case.

    So that's the solution I came up with that. If someone wants to share a solution better or more automated, I would really like to hear it.

    Thank you!

  • using metadata custom in an export dialog box?

    Hi all

    I'm currently mired in my first attmpt to create a plugin to export from Lr and, as expected, have hit a wall. As I came through the example of code that does what I'm trying to do, I wonder if anyone here can have some tips.

    The goal is to use metadata custom photos selected to fill an export service provider dialog box. This will be used to export to form paths for proper output, generate a manifest of text file (containing the data that will be used by an external workflow), and then copy the raw files properly is renowned for the output path.

    The custom metadata and the creation of export dialog box worked fine. I am struck by the problem is that I can't get the metadata of such out of the LrTask that I should call the photo: getPropertyForPlugin() from the inside. Inside the call function, data are there; recorder: trace () print it to the console. But what is the appropriate way to return the data within this service in, say, a propertyTable so that it can be picked up and used elsewhere in the code?

    Below is a simplified version of what I'm trying. It would seem that the dialog box creates the static_text until the function running in an AsyncTask() filled the value for him. Is it possible to force the sequence of events and cause the dialogue to wait there a value for its use? What is the most obvious thing that I'm doing wrong here?

    Thanks much for any help!

    Erik

    local photo = catalogue: getTargetPhoto()

    getCustomMetadata (propertyTable) of the local service

    LrTasks.startAsyncTask (function()

    propertyTable.mymetadata = picture: getPropertyForPlugin ('com.myid.myplugin', "mymetadata")

    end)

    end

    function exportDialogSections.startDialog (propertyTable)

    getCustomMetadata (propertyTable)

    end

    function exportDialogSections.sectionsForTopOfDialog (f, propertyTable)

    return {}

    {

    title = "Test."

    {f: Row}

    {static_text: f}

    title = propertyTable.mymetadata,

    },

    },

    },

    }

    end

    Plugins to handle this is to run all their logic within a single asynchronous task.  But in your case, I don't see how this approach could be used, since you can't control when sectionsForTopOfDialog() is called.

    You could have sectionsForTopOfDialog() survey politely until the task finishes:

    function exportDialogSections.sectionsForTopOfDialog (f, propertyTable)
        local done = false
        LrTasks.startAsyncTask (function ()
            propertyTable.mymetadata =
                photo:getPropertyForPlugin ('com.myid.myplugin', 'mymetadata')
            done = true
            end)
        local delay = 0.01
        while not done do
            LrTasks.sleep (delay)
            delay = math.min (0.1, 2 * delay)
            end
    
       return {{title =  "Test",
            f:row {f:static_text {title =  propertyTable.mymetadata}}}}
        end
    
  • There are spaces in the XML created using Flex?

    Hi all

    I'm developing an extension for CS ID above using Flash Builder 4.6, Extension Builder 2.1.

    My extension requires some example output in the form of xml files. These xml files are then analyzed by software at the customer's end.

    The xml code is created using XML in Flex class.

    The problem is that there are a few spaces induced when a child is added to a node in the xml. For example,.

    <root>
            <Child>
              Os enis eium es
              <Child1 some_attributes>q</fo:inline>
              <Child1 some_attributes>u</fo:inline>
              <Child1 some_attributes>a</fo:inline>
              <Child1 some_attributes>s</fo:inline>
              evelit lab ipicto et volut
              <Child1 some_attributes>user/firstname</fo:inline>
               doluptus.
            </Child>
            <Child>As dis</Child>
    </root>
    

    When I look at the XML above, I see that there are spaces before "Os enis Mert are." I was taking them for indenting that xml uses to distinguish between parent and child. This xml file is not serious?

    The expected results of the customer happens all wrong, it contains spaces, and I suspect if the XML can be a problem.

    Please guide.

    The XML you have posted is not valid, it was wrong with opening and closing tags...

    Flash will add a spacing output XML format if XML.prettyPrinting = true. You could try that setting to false before you send the XML code.

  • One of your filters uses a custom header that contains an invalid character.

    When I send an email, you receive the following error message:

    «One of your filters uses a custom header that contains an invalid character, such as ':', a nonprintable character, a non-ascii character or an 8-bit ascii character.» Please change the msgFilterRules.dat file, which contains your filters to remove characters not valid in your custom headers".

    It is followed by a message saying that the email was sent and saved despite the error.

    The problem occurred after the transfer to 10 Windows (from Win 7)

    I deleted all files msgFilterRules.dat and all filters, but the message persists.

    Any suggestions on what else to try?

    Thank you
    Ben

    Problem solved.

    After you delete all files/imap mail entries, the problem disappeared.

  • Use of custom in Veristand files

    Hi all

    Have not been able to find a lot of documentation related to the use of "Personal files" in Veristand.  I would like to know some examples of the types of files users have set up.  Specifically, I would like to know if you can "call" some types of models or devices personalized (i.e. for databases or configuration settings).

    Thank you very much

    GSinMN

    Hi GSinMN,

    It has custom there some documentation in the help of VeriStand, which deals specifically with files.

    Adding custom files

    http://zone.NI.com/reference/en-XX/help/372846D-01/VeriStand/add_custom_files/

    Although aid is not quite fully reveal the capabilities of this feature. There are two distinct use cases that I could identify for the custom in VeriStand files option. I'm going to the list of people the more detail and show you an example.

    Make easily accessible to the driver files in the development environment.

    When a file is added in the custom files in the project section, it will have its own icon in the project and is included in the project dependencies. Having the file to display in the project is useful if there is a picture of troubleshooting or a specific document (calibration sheet, how to run a test, etc.) that you would like as your operator to have access to. For example, in the sample project, I realized, there is an added file called "TestA1_PreTestSetup.txt". Of the project (on the toolbar), the operator has the option "Open a file" (to view) or "export...". "to investigate his path on the computer of the operator.

    Please note that the file is now added to the dependencies of the project.

    If you start to investigate the project file and lets say you do a right click on it and notice that there is a Properties option. You may notice that the Description of this file is empty. In fact, it can be filled by modifying the XML source of the .nivsproj. It also leads in the second case of the use of custom files.

    Transferring files to the aim of RT which can be used by the VeriStand engine.

    If you were to investigate the .nivsproj XML, you could first find the section of the custom files, then the tags of the element that you configured.

    Here are the relevant tags and a jump down,

    -It points to the source of the custom file. In this case, I added the file in the directory "C:\Users\Public\Documents\National Instruments\NI VeriStand 2011\Test procédures". He is able to solve the first component 'In common Doc Dir' because it's the common directory for VeriStand, and he added then the folder of the test procedures and the name of the file that I created.

    -Fill this tag gives us the opportunity to complete the description information that occurs when we right click on the file in the project.

    -Fill this tag gives you the ability to also send the file to the target deployment. Your VeriStand engine can then access this file during the operation. With respect to the types of files that you want to use, the link in the post above should help guide only.

    Please Note: change the XML of the project offers more customization and functionality of your project, but these changes should not be made whole. An incorrect change tags in the XML file can lead to results and poor execution. Then move forward with caution and only make minor changes at the same time.

    I hope this helps. Have a nice day, GSinMN

  • Problems creating a play list on my rocket (another one of those topics) .m3u...

    I'll start by saying I did a search and have been through a few threads on the topic of playlists.

    I have a rocket 8 GB, I use it in MSC mode and I use WinAmp to create my playlists.  I know how to create the playlist with WinAmp (using the instructions found in another topic) and most of the time it works...

    My problem is that not all songs appear in my playlist.  For example, suppose I have 50 songs in the playlist I create using WinAmp, some of those who do not on my rocket.  When I load up the playlist, it will show (for example) 44 songs and not the full 50 songs.  I have no idea why it does so I hope someone here can help me.

    Why most of the songs appear in the playlist, but a few never do.

    I tried to use the Playlist Creator 3.5 and the same thing happens.  What could be the problem?

    (Note also that the songs that do not appear in the playlist appear normally on the "rocket").

    I found that the fuse does not recognize the non-English file name or folder name in the M3U playlist.  So if some of your songs have non-English file names, it will not appear in the list of reading but still appear in the "all songs".  Someone in this forum said that using M3U8 of WinAmp will correct this problem.  I've never tried but to the contrary, just rename all my files to use the English names.

  • Re-use of custom list Designer

    Hello

    I created a custom to change the itemType of my lists. I would like to do something similar to the example of decorator list (except with different queres) but I was wondering if I can reuse the custom itemType that I created. The example uses the database itself to check the "is_group" (activate the element type), but I really don't want to cluter upward from my database in this way (TOC)...

    QString GroupArtistDataModelDecorator::itemType(const QVariantList& indexPath) {
            QVariant data = bb::cascades::datamanager::DataModelDecorator::data(
                    indexPath);
            if (data.isValid()) {
                QVariantMap map = data.value<QVariantMap>();
                int isGroup = map["is_group"].toInt();
                // Verifies that this data item is of group and returns the new type.
                if (isGroup) {
                    return QString("group");
                }
            }
            return QString("");
        }
    

    Is there a way around it that I might be able to use the card [' ""] to filter the data, and using a switch statement, return an itemType on this basis?

    What would be the most effective way to do it?

    Is it also possible to add a parameter, for example

    QString GroupArtistDataModelDecorator::itemType(const QVariantList& indexPath, string itemTypeParameter)
    

    And then call it in QML:

    * I hope I'm not being too imaginative here.

    Or y at - it no other choice than to create individual datamodels customized for different model types?

    Thanks in advance!

    I see no reason why you can't use a switch in the method of itemType rather than add a new field to your DB. Here's a possible scenario for implementation.

    Define the subcategory structure in the GroupArtistDataModelDecorator.hpp header file:

        struct SugCategory
        {
            enum Type {
                  News = 0,
                  Technology = 1,
                  Sports = 2,
                  ...
            };
        };
    

    And in the itemType method, you can use a switch that activates cases based on the map ["category"] m:System.NET.SocketAddress.ToString () for example

    QString GroupArtistDataModelDecorator::itemType(const QVariantList& indexPath) {     QVariant data = bb::cascades::datamanager::DataModelDecorator::data(                indexPath);
         SubCategory::Type category_case;     if (data.isValid()) {         QVariantMap map = data.value();         QString category = map["category"].toString();
    
             if(category=="News") category_case = SubCategory::News;
             else if(category=="Technology") category_case = SubCategory::Technology;
             else if(category=="Sports") category_case = SubCategory::Sports;
             ....
    
             switch(category_case)
            {
             case SugCategory::News:
                 return QString("News");
                 break;
    
            case SugCategory::Technology:
                 return QString("Technology");
                 break;
    
             case SugCategory::Sports:
                 return QString("Sports");
                 break;
    
             .....
    
             default:
                 break;
    }
    

Maybe you are looking for

  • error code: 0 x 8007002

    And then, when I ran Diagnostics from Windows update it returned with the error code: 0 x 8007002 Is there an easy solution?  Or should I take the long way around with a clean install of windows?  I have already re-set my internet browser explore onc

  • Not be able to share files and folders over a network home

    I am more able to share files and folders across a network, consisting of a Windows 7 and Windows XP computers, and a Samsung TV. I have a number of files and folders that I can see on all devices. I followed the process of file sharing in Windows 7.

  • framework DOT NET 4.0 does not install

    For a while now, I tried to install .NET framework 4.0 without success. I tried with the beta and tried the final version. I get an error message saying that one of the files is on a resource that is not available and it still refers to the beta when

  • I have a photo I took have shade and Sun can I change this?

    I have a photo I took of a football player and it's in the afternoon and part of the grass is shaded and Sun. Is there a way to change this, or do you think it looks right?

  • Browser does not refresh page after validation!

    Hello all, I use JDeveloper 11.1.2.3.0I have a big problem here. I create a simple page and insert a form, a createInsert button and a button of validation , for example. I run this page and all is well. I create a new record, fill in the form, and t