I have a custom distribution that is discrete. How can I retrieve a number from it and model it as my agents per arrival ?
Posting an answer since this question was partially answered in the comment section
In order to find the exact object that caused the error remember to click on the first Blue highlighted piece of text in the console where the error gets printed out.
You need to do this inside the AnyLogic IDE console and not the model console as there you will not be redirected to the location of the error inside the model.
Related
I have two or more location duplicate point data in my KML. In google earth I can only see one point data at first. When I click it and then its separated, and able to click other duplicate point.
My problem is that I don't know the logic which point is front in the first place. I need specific point data to be at front before it's separated because of visual perspective. I try to change placemarks order in KML but the result was same.
I think you're asking how to control which point's ICON shows up at a location with multiple points, before you click on it to expand/separate them all out? Unfortunately there is no way that I know of to control which point/icon shows up on top. It seems like when I create or edit points at the same location, the last one to be touched/edited comes out on top, but I don't know if that's consistent, nor whether it persists when saved to KML... probably not.
By the way, welcome to StackOverflow. Please read the instructions on how to ask good questions. Your question is not very clear, and would benefit from including info on what you have already tried, and what didn't work.
So I am working on a project that awards points to students for submitting assignments or participating in forums, these points are then exposed as an Http resource using Flask.
The points are calculated by looking at the events triggered for each student.
One of the requirements right now is to add a box next to the student's name that shows the total amount of points they have. I have two ways of accessing the points, either by an http request from moodle or by storing and retrieving the points from moodle's database.
My question is what is the best approach of creating this "box", I have tried using moodle blocks and hacking the code but nothing seems to be working. Is creating a plugin for this the only solution or is there a simpler way to do it (if it is even possible)?
To answer your question properly you should have provided at least the theme and the Moodle version you work with. Should this box be displayed everywhere? Is the score calculated for every course individually?
Two proposals that came into my mind:
You could create a custom plugin of type block. There you can display the score of the user of the session and the top ten for example (If the score is calculated for each course individually). A disadvantage is that every teacher of a course could remove that block easily, if he or she wants to.
If the score counts system-wide you could put that box at the start page of your Moodle website, where only people with higher rights will be able to remove it.
If you use boost you could display the score in the navbar right next to the users name. For that you will have to create a new child theme of boost and overwrite navbar.mustache of theme_boost which get's it's information from columns2.php because it's included into columns2.mustache. In this PHP file you can include your logic and display it with the HTML which you put into navbar.mustache.
Of course these are not really simple ways to do that. But at the moment I doubt that an easy solution exists for this problem.
Our ERP system uses Crystal Reports to generate Company Stationary, which is used with an automail process to send out via email
In this case a user has ask if they could, at run time, type in a message on a Customer Statement, for example "Hi here is your statement please see invoice 00022 this is the one with the query". Clearly this message may not always be required and would be different at each run.
The only method to do this I have found is to use a txt parameter, but the problem is the input box at run time does not explain with the text typed, so if you make a typo you can not see it.
Can this be done with a pop up box in code?
I have looked for examples but not found anything
This isn't something that Crystal itself supports. It's read-only: Once a report is loaded, it's done calculating. If you refresh it, it performs the same calculations.
Like you said, you could use a text parameter where the user could enter a single clump of notes. In theory you could even include a parameter where you enter the invoice numbers that you want the message to appear next to. But that opens the whole can of worms regarding "How do I error check this?" and "What if the invoice number is in the wrong place?"
In short this isn't something you'd want to attempt in Crystal. If this report is launched by an app you developed, I'd try to make it a feature in the app. But reports are effectively read-only, and short of writing your own SQL commands, you'll have a bad time trying to write with a read-only system.
In moodle is it is possible to count correct/incorrect answers in Immediate feedback Test and show them in the quiz navigation panel?
at the end of the test there is a summary which count the correct answers, but how to show this in the quiz navigation panel after every question is verified?
The "quiz navigation panel" is a special fake block that is displayed as part of the quiz attempt page, it is not an addon or a plugin, it's part of Moodle's core. so, any solution for your question has to involve core changes. if you are willing to do so, you can either use mod/quiz internal questions status display mechanism:
https://github.com/moodle/moodle/blob/master/mod/quiz/attemptlib.php#L1580-L1597
mod/quiz marks with green all the questions that the student has submitted correct answer to. so you can use that mechanism to display the count yourself.
Pick up parts of the following code snipets:
Loop through the questions (slots):
https://github.com/moodle/moodle/blob/master/mod/quiz/attemptlib.php#L2114
And count the correct answers:
https://github.com/moodle/moodle/blob/master/mod/quiz/attemptlib.php#L2125
Make a new function from the above snipets or just add the above snipets after the following line:
https://github.com/moodle/moodle/blob/master/mod/quiz/renderer.php#L336
Hope it helps.
I'm done building processes and intended to deploy into intalio server. it already success deployed,but the form that I've been develops using ajax form did not append to the workflow processes. anyone knows how to make that form appear on workflow processes?
both several task such as init process and create or complete already done. I've been assign role in workflow too. i create three types of form. submit form, validate form, and processing form. and the role was student, department, and academic.
the submit form already shows in monitoring workflow. and when I assign module to the specific user, in this case student, it already works. however, the rest of form (validate form and processing form) does not appear both in monitoring workflow and after assign to department and academic it doesnt not appear.
I think the process actually almost the same like the intalio tutorial. rite now, I make the user only two, student and department to make sure that the submit form and validate form run smoothly. but still, the validate form doesnt appear.
thanks
If you go into Administration>Monitoring>Processes. Can you see any of the processes in the Failed state? It sounds like the process is either failing or not getting to the point where that form would be triggered.
You can click on the number in that column and it takes you to a list of failed instances, or click on the number in the in progress column to get to instances still running. Click on the text in the Process column to get at the actual error. You can also see a diagram of the instance, this sometimes help to figure out where exactly it failed (clicking on the little gears in top left on the diagram colors the tasks that have been executed to green)
Hope this helps.
Cheers.