mehdiss5

Popupinfo problem

Discussion created by mehdiss5 on Jun 3, 2012
Latest reply on Sep 6, 2013 by ysw.wijaya
Is it possible to use popupcontainer and popupview to show information on an graphicslayer ?

i got a problem on popupinfo it said that popupinfo is not initialized ?

popupInfo = new PopupInfo();
   popupInfo.setDescription("South African Post Offices");
   popupInfo.setTitle("Post Offices");
   popupInfo.setMaxScale(500000);
   popupInfo.setMinScale(0);
   popupInfo.setMediaInfos(new PopupMediaInfo[0]);
   popupInfo.setShowAttachments(false);

   PopupFieldInfo pfi = new PopupFieldInfo();
   pfi.setFieldName("adresse");
   pfi.setLabel("adresse");
   pfi.setEditable(false);
   pfi.setVisible(true);
  
   PopupFieldInfo t_pf[] = new PopupFieldInfo[1];
   t_pf[0] = pfi;

   popupInfo.setFieldInfos(t_pf);

is that working for initializing the popupinfo ?

Outcomes