EDI Question (Count EDI Segements)
Hi,
I want to map the field D_96 under the EDI Segment SE and I was wandering if how to do that?
The description of the field is: Total number of segments included in transaction set.
So is there a way that I can load the result mapping in a Java function so that I can count the number of segments?
I know that I could add a counter (using user-defined function) for each segment that I'm writing but I was just wandering if there would be an easier way of doing it.
Rgds,
Yves
Hi Yves,
i don't think, that it is possible in a Java function within a message mapping, but you can do it by creating a java mapping from the result of the message mapping to the same structure. Then you can count the nodes and add just the value to D_96.
In your Interface mapping you will just need to add the additional java mapping after your message mapping.
Best regards
Christine
Similar Messages
-
I'm reusing a template which inlcudes questions. When I
add/delete questions from the template, for example the question
count of five (5) is correct when editing the file, however, when I
export it, (SWF) the question count starts at seven (7) vice one
(1). Anyone encountered this?Hi r6urbv
Yes, this question could easily fall into a FAQ category.
Check your movie for Click Boxes. Each Click box typically
has coring enabled as a default. Edit the properties, click the
Reporting tab and turn off scoring.
Hopefully this helps... Rick -
Dumb Question: Count of Rows Returned?
I am using a dbcontrol to get rows from the database. I am using the netui-repeater to display the results. The repeater datasource is "request.results".
My question is how do I get the total number of records returned from the query?
I know this is should be a simple thing, but I have been unable to get the number.
Thanks...Suggested implementation:
typedef void (^MSCountQueryBlock)(NSInteger resultCount,
NSError *error);
/// Sends a request to the Windows Azure Mobile Service to return the row count/// from the table that meet the conditions of the given predicate.
-(void)countRowsWithPredicate:(NSPredicate *) predicate
completion:(MSCountQueryBlock)completion; -
Question: Counting certain pixels
Hi
I'm doing a research about copper associated hepatitis in dogs. Now we are trying to set up a new method of diagnosis. The principle is to measure the amount of area that contains copper on a picture of liver tissue as a percentage. The tissue is stained with a chemical which results in a good contrast between copper and no-copper areas.
My question:
Does anybody know some way to count the amount of pixels(or the percentage of area) that exceeds my certain threshold of RGB colors?
Thanks!
Tjebbe Waalwijkquick and easy method:
(1) set the color picker to point sample
(2) select the magic wand tool, chose a useful tolerance level for your purposes, deselect both anti-alia and contiguous
(2) zoom into the picture
(3) click on a "copper pixel"
(4) click on histogram panel
result: see screenshot. In my example the result would be 37646 pixels.
(don't forget to click on the exclamation mark, otherwise values are rough estimates only)
However I don't think the mere pixel count is very helpful scientifically as it may depend on how dark those pixels are vs. the size of the area, and lots of other factors right?
full size image: http://img140.imageshack.us/f/20110414040146screenhun.png/ -
Newby question: counting redelivering trials
I use jms with MDB. I send messages successful to a queue and the MDB gets them. I put the message back
to the queue if proccessing message did not succeed.
My problem is, that I have to know how many times the
message has been put to queue again, because this action should be done only ten times. The Message objects given to onMessage are readOnly - that I know.
My question: is there a way to count the retries without creating a new Message and putting this new one(with an increased counter) to queue instead of
original one? If mentioned idea is the only one please tell me too.Hi!
I'm not quite sure, if I understood you right. Do you mean that you have to send same message again and again in the case that reciver won't get the message?
You can use persistent messages that will stay in db if receiver is not present.
QueueSender sender = ... //create sender
sender.setDeliveryMode(DeliveryMode.PERSISTENT);Second quess: Your receiver is processing some task and if it fails, you want to send message again?
Possible solution: use request-reply functionality included in poin-to-point domain. Then your sender or requestor will block until receiver will send reply back. Your sender can read the reply and if reply contains an error message, send message again and stop sending after ten times.
Does this help you at all?
-Raine- -
Unanswered Questions Count is Wrong
Hello Sysops (hehehe). Unanswered Questions is wrong for me. Thought you might want to look into that.
CheersHello BioRich,
Could you explain what you mean by wrong?
Is your situation similar to This Poster's issue?
Or This One?
ali b -
Presentation shows too many questions in Question count - Progress Indicator
I just downloaded Captivate 7 and made a template for my presentation. I then imported some Powerpoint slides into the presentation after creating a project from the template. That all worked fine, but the template and the project list 11 questions while I actually only have 2 question slide and the results slide in the template and in the presentation. Just wondering why that is and if there is a way to fix that.
I do notice that I have 6 master slides also, 1 for content and 5 for question types (MCQ/T-F/etc., Matching, Hot Spot, Likert and Result.
Any pointers on that.
Can't wait to test out the HTML5 features and the LMS reporting features.
StephenHello,
Could you check Advanced Interaction (F9)? I think you have some scored objects besides the Questions. All interactive objects can be scored: click boxes, (shape) buttons, Text Entry Boxes. That view is linked with the Properties panel, if you select such a scored object, you can change its properties in the Properties panel, look for the Reporting accordion.
Forgot to answer about the master slides. No way to escape from those 6 slides, the minimum (Blank theme has that minimum). It is one of the reasons why I don't like those damned themes. You can add master slides, you can use the main master slide for objects/background that you want to have on different child master slides, but the Question slides/Score slide always will use their dedicated master slides.
In many cases Themes can replace templates because they also have the object styles and skin editor included (that part of themes I like a lot). Only if you want real placeholders, and perhaps variables, advanced actions you'll need a real template.
Lilybiri -
If i know email ( but i dont have acces to it ) and i dont have secret questions how can i recover my icloud account ?
I'n my company ( pawn shop ) i hope i transleted fine , i bought an iphone wich it seems to be ok at the first time.
That was on 26.11.2013 ( as can be seen in my pawn contract and billing ) . after 2 weeks i found a client to buy my second hand iphone and the i saw my mistake it is icloud blocked i need that password so i can reset the iphone to sell it. how can i manage this problem ? i can provide all my billings, contracts, society data everything.If you know the primary email linked to the account but do not have access to it or the answers to the security questions, then the next best thing to do is call Apple at 800-275-2273 and ask for Account Security. They will ask you for two pieces of information from the account in order to unlock it. The options are usually the security questions (each question counts as one piece), the credit card linked to the account, and either a device serial number or device verification code that they will send you.
After this verification is complete they can send the reset link for your password to any email you choose. Please be aware that if they verify you with something other than two security questions, there is a 24 hour wait before the email arrives.
Good luck! -
Incorrect number of questions being displayed
I have created a set of 12 question in Captivate 4 (Windows XP), and the "number of questions" indicated both on the final "summary" slide and also the slide counter (slide x of y) both say there are 13 questions yet there are only 12 questions.
There are only 12 questions...anyone have any ideas why this is and how to fix it?
Noel
Staffordshire
EnglandHi Noel
Does the link below help?
Click here to view the Frequently Encountered Issues page at Question Count
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
Quiz slides showing incorrect number of questions
Morning everyone...
I have courses that I have uploaded to our LMS. These have
2-3 questions at the end of each course. The problem is that when
taking the course and you get to the quiz questions; it will say
question 1 of 5 yet there are only two quiz questions. Why is this
happening? Is there a way to fix?
Thanks,Hi there RDCBLANK
Easy fix. You probably have Click Box objects on prior slides
that are being factored in. Try tapping your F9 key to open the
Advanced Interaction dialog. Then you can turn off the scoring for
the Click Boxes and make that Question count accurate.
Cheers... Rick -
How to write Question paper program in jsp....
Hi..,
This is sure from india. I would like to develop online examination project. Everything is ok. But i have a problem at deveop of question paper. I have 10 questions in my database. I would like display those questions one by one. How can i done this job. Please any one guide me. Because, i am new to this concept.
with regards
sure..)-First you need to extract all the question from database..
Then put all of those questions in any of collection object...
Then set this collection object in request as attribute..
Keep this object in request till all question are not shown(you can eliminate questions after the have been asked)..
Code might be like this.
HashMap result = new HashMap();
connection = .......;
Statement stmt=connection.createStatement();
rs = stmt.executeQuery("Your query");
int count=0;
while(rs.next())
count++;
String question = rs.getString("colName");
result.put(""+count,question); //( ""+count)>>>>>means converting int to String
request.setAttribute("questions",result);
====================================================
now in every JSP which is intended to display a question will have to get this result object..
Lets assume we are about to display first question()....
===========================================
//////// First get result map from request
HashMap questions = (HashMap)request.getAttribute("questions");
String count;
count = request.getAttribute("count");
if(count==null)
count="1";
String question = questions.get(count);
count = new String(""+(Integer.parseInt(count).intValue()+1));
///Now do what you have to do with this questionresult
questions.remove();
request.setAttribute("count",count);////setting question no in request
request.setAttribute("questions",questions);////setting rest of questions in request
===================================================
hope this might be helpful........
if there is any problem you can consult me anytime -
I'm new to Captivate and these boards. I saw new,
but I'm really self taught. I took an Element K course, and we've
also purchased the Iconlogic book.
But I still have a few questions that I can't find the
answers to, and here's one of them: I want to put a question at the
end of each "concept" of my training. But I don't want the Question
blank of blank to show up, and I don't want it to be part of the
score that goes to the LMS. I think I can figure out the score to
LMS part; I think the answer is I just name the quiz differently.
But I can't get the Question X out of X to go away. I"ll take any
help!Hi eetten and welcome to the forums!
Unfortunately, the only way to mix scored and non-scored
questions in a single file is to... split the project into two
files.
Captivate expects a quiz to consist only of scored
interactions, so you can't even include a "Continue" button without
throwing off the total question count. It's very problematic for
scoring summary purposes.
I'd suggest putting in a feature request to add an "exclude
from scoring" option to future versions of Captivate, which you can
do here:
Captivate
Feature Request Form
Regards,
John -
IDOC - add new field in in existing segment definition
Hi,
For segement type say Z1MARA1 if we need to add a new field in segement definition say Z2MARA1 SAP is not allowing to add new field if we tried to cancelled the realsed 30E it not allowing since the SAP realease which we are working is 640 so only we can create new segement defination with version Z2MARA1001 with new field added but issues is that the partner Profile for outbound parameters the Segment release in IDOc Type is 31I so if we change this segment release in IDOC type to new version ie., 640 then it will pick all the new segement associated with it due to which the the format in which we pass the segements to third party will change so is there any way to use the existing segment definition which is release 30E & add addition field to it. Only one way I found is that when i try to cancel the released message is trigger so in the debug if I make it success it allows to add new field in existing segment definition but which is wrong way of doing is there any way we can used same segment definition & add new field without adding new version & new released.
Thanks in advance.
RajeevVarma,
I know that we can add new segement with new version my question is existing segement definition can we add a new filed because in partner profile we specified release 31i so even we create new segement type then version will be 640 so it will not pick the latest version.
Thanks
Rajeev -
How to invisible perticular row of a table column?
Hi All,
I want to set invisible or blank in perticular row of table column.
I have a table, contains 2 row in that , one of the column contains button. If i clik on this button(ex: 1st row button ) it add new row with different data, it contains button also in that column, but i want to invisible that button . I tried like this
I create one attribute of type WDUI_VISIBILITY. and bind visible property of that column. and code in button action is..
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->Element_context.
DATA lv_visible TYPE wd_this->Element_context-visible.
get element via lead selection
lo_el_context = wd_context->get_element( ).
get single attribute
lo_el_context->set_attribute(
EXPORTING
name = `VISIBLE`
value = wdyn_ui_visibility_none ).
But, All buttons are invisible here. i.e., in first 2 rows buttons also invisible. But i want to invisible 3 row button only. How to do this? It is possible?
Thanks,
Kris.Hi Sarbjeet,
button1 - name1-marks.
button2-sname1-marks.
on click of button1 - output is ---name2-marks, if i click again on button getting name3-marks.
if i click on button2 --- sname4-marks, but required output is --- sname2-marks.
if i click on button1 again o/p is -- name5-marks, but req is name4-marks.
code :
DATA lv_count LIKE ls_context-count.
data count type char2.
get element via lead selection
lo_el_context = wd_context->get_element( ).
get single attribute
lo_el_context->get_attribute(
EXPORTING
name = `COUNT`
IMPORTING
value = count ).
count = count + 1.
lo_el_context->set_attribute(
EXPORTING
name = `COUNT`
value = count ).
data: lr_node type ref to if_wd_context_node,
ls_data type if_main_view=>element_node,
lt_data type if_main_view=>elements_node.
data indx type i.
DATA lo_el TYPE REF TO if_wd_context_element.
lr_node = wd_context->get_child_node( 'NODE' ).
lo_el = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
indx = lo_el->get_index( ).
if indx = 1.
data seg type string value 'Nomenclature'.
data count type char2.
CONCATENATE seg count into seg.
CONDENSE seg.
ls_data-name = seg.
ls_data-variant = 'NOBUTTON'.
APPEND LS_DATA TO LT_dATA.
LR_NODE->BIND_TABLE(
NEW_ITEMS = LT_DATA
SET_INITIAL_ELEMENTS = ABAP_false ).
clear count.
clear seg.
endif.
If indx = 2.
clear count.
data seg1 type string value 'Sub Nomenclature'.
CONCATENATE seg1 count1 into seg1.
CONDENSE seg1.
ls_data-name = seg1.
ls_data-variant = 'NOBUTTON'.
APPEND LS_DATA TO LT_dATA.
LR_NODE->BIND_TABLE(
NEW_ITEMS = LT_DATA
SET_INITIAL_ELEMENTS = ABAP_false ).
clear count1.
endif.
Thanks,
kris.
Edited by: kissnas on Feb 1, 2011 7:05 AM -
Need help with using graphics in swing components
Hi. I'm new to Java and trying to learn it while also developing an application for class this semester. I've been following online tutorials for about 2 months now, though, and so I'm not sure my question counts as a "new to Java" question any more as the code is quite long.
Here is the basic problem. I started coding the application as a basic awt Applet (starting at "Hello World") and about a month in realized that Swing components offer better buttons, panels, layouts, etc. So I converted the application, called BsfAp, to a new JApplet and started adding JPanels and JComponents with layout managers. My problem is, none of the buffered graphics run in any kind of JPanel, only the buttons do. I assume the buffered graphics are written straight to the JApplet top level container instead but I'm not entirely sure.
So as to not inundate the forum with code, the JApplet runs online at:
http://mason.gmu.edu/~dho2/files/sensor.html
The source code is also online at:
http://mason.gmu.edu/~dho2/files/BsfAp.java
What I would like to do is this - take everything in the GUI left of the tabbed button pane and put it into a JScrollPane so that I can use a larger grid size with map display I can scroll around. The grid size I would like to use is more like 700x1000 pixels, but I only want to display about 400x400 pixels of it at a time in the JScrollPane. Then I could also move this JScrollPane around with layout manager. I think this is possible, but I don't know how to do it.
I'm sure the code is not organized or optimized appropriately to those of you who use Java every day, but again I'm trying to learn it. ;-)
Thanks for any help or insight you could provide in this.
MattCouple of recs:
* Don't override paint and paint directly on the JApplet. Paint on a JPanel and override paintComponent.
* The simplest way to display a graphic is to put an image into an ImageIcon and show this in a JLabel. This can then easily go inside of the JScrollPane.
* You can also create a graphics JPanel that overrides the paintComponent, draw the image in that and show that inside of the JScrollPane.
* don't call paint() directly. Call repaint if you want the graphic to repaint.
Here's a trivial example quickly put together:
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.RenderingHints;
import java.awt.geom.Ellipse2D;
import java.lang.reflect.InvocationTargetException;
import javax.swing.JApplet;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.SwingUtilities;
public class BsfCrap extends JApplet
private JPanel mainPanel = new JPanel();
private JScrollPane scrollPane;
private JPanel graphicsPanel = new JPanel()
@Override
protected void paintComponent(Graphics g)
super.paintComponent(g);
Graphics2D g2d = (Graphics2D)g;
RenderingHints rh = new RenderingHints(
RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
g2d.setRenderingHints(rh);
Paint gPaint = new GradientPaint(0, 0, Color.blue,
40, 40, Color.magenta, true);
g2d.setPaint(gPaint);
g2d.fill(new Ellipse2D.Double(0, 0, 800, 800));
public BsfCrap()
mainPanel.setPreferredSize(new Dimension(400, 400));
mainPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
graphicsPanel.setPreferredSize(new Dimension(800, 800));
graphicsPanel.setBackground(Color.white);
scrollPane = new JScrollPane(graphicsPanel);
scrollPane.setPreferredSize(new Dimension(300, 300));
mainPanel.add(scrollPane);
public JPanel getMainPanel()
return mainPanel;
@Override
public void init()
try
SwingUtilities.invokeAndWait(new Runnable()
public void run()
setSize(new Dimension(400, 400));
getContentPane().add(new BsfCrap().getMainPanel());
catch (InterruptedException e)
e.printStackTrace();
catch (InvocationTargetException e)
e.printStackTrace();
}
Maybe you are looking for
-
HT1386 Syncing with iTunes when iTunes library is empty
My laptop melted down recently and I had to restore it to factory settings. I lost my music including the iTunes library. I still have many iTunes tracks on my iPhone, but can't sync the phone with iTunes any more because a message appears saying I w
-
Sales customer report shows this error
Hi , please how to resolve this error recently it showed this error ..i have send my log file error ..i am not figured out where the problem lies...its urgent ...greateful to all..please help me....this problem taken after creation of new legal entit
-
FCS is only deleting my FCP project file and not linked assets. please help.
When deleting a FCP project from FCS it does not give me the option to delete all linked media. It only deletes the FCP project file leaving me to delete all related media manually. In the user guide it says it should give me the option to delete the
-
IPhone screen size in Photoshop
I'm designing UI for iPhones starting at 2X image size retina display. What screen size should I set up in Photoshop?
-
Nav Block Filter Affected but not in Expand/Collapse
Hi, Does anybody know if is possible to setup a Nav.Block to affect two queries (Dataproviders) only with FILTER option. This mean: When we choose expand/collapse, affect only one of these Dataproviders. We have two Nav.Block and Two Tables. When we