Code Monkey home page Code Monkey logo

Comments (5)

alexharrison-ot avatar alexharrison-ot commented on August 31, 2024

+1 I'm also trying and failing to get the category from the itemclass but can't work out how to get the category name rather than just the category value

from enscript-samples.

sdckey avatar sdckey commented on August 31, 2024

Is there a way to get the content related to a processed evidence? For example, I processed an evidence with a particular options selected (for example index, system info parser and etc) and I would like to check which evidences were processed using this custom label and the status of the processing (completed / failed) - these information are in the "Status" and "Option" fields in the Processor Manager tab.

You can use EvidenceClass::ProcessingStatus() to to get the processing status of each evidence item in your case. There isn't, as far as I know, any way of obtaining additional processing information, at least not from the item itself.

The other questions is related to the ITEMCLASS class. I'm trying to export the Categories from an evidence to a text file, but if I only use the method entryclass.category() it will return the category number and not the value (as it has a Category type). I tried to declare a "support" variable ITEMCLASS:Category in order to help me to get the Category name, but I am probably missing something easy here.

Every enumeration inherits EnumClass::SourceText() and EnumClass::DisplayText(). So EntryClass::Categories::SourceText(12) will return "DOCUMENT_SPREADSHEET"; EntryClass::Categories::DisplayText(12) will return "Document - Spreadsheet".

from enscript-samples.

thiagotankian avatar thiagotankian commented on August 31, 2024

Thank you Simon!! I was able to get the category name.

As my case already have the evidence, I didn’t find a method using EvidenceClass in order the get this information, and not add a new evidence (as the examples that we have in the Enscript help). I’ll keep trying to do that, but I’ll appreciate if you have any other idea.

Best

from enscript-samples.

sdckey avatar sdckey commented on August 31, 2024

Each case has a property called EvidenceRoot(), which is the root object in a list of EvidenceClass objects you can iterate.

For example, if your case is c, you can do the following:

foreach (EvidenceClass e in c.EvidenceRoot()) {Console.WriteLine(e.ProcessingStatus());}

from enscript-samples.

thiagotankian avatar thiagotankian commented on August 31, 2024

Hi Simon, that makes sense! I tried and it worked very well! Thanks again for your support!!!

from enscript-samples.

Related Issues (15)

Recommend Projects

  • React photo React

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

  • Vue.js photo Vue.js

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

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

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

Recommend Topics

  • javascript

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

  • web

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

  • server

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

  • Machine learning

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

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

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.