Displaying the checkbox created at runtime
hai all,
i have created the checkboxes at runtime but they are getting displayed in the same line.
i need to display them one after the other in next lines.please help me its urgent.
Thanks n Regards
Sharanya.R
Hi,
To solve the problem, I have created one Java class
public class UIHandler {
Call this method to create node in Component controller as the data should be shared among
multiple views
@param rootInfo is NodeInfo for wdContext in Component Controller
@param name of Value node to be created
@param Collection represents the list of attributes to be created for check boxes
public static IWDNodeInfo createChildNode(
IWDNodeInfo rootInfo,
String name,
Collection collection) {
IWDNodeInfo node =
rootInfo.addChild(
name,
null,
true,
true,
false,
true,
false,
true,
null,
null,
null);
for (Iterator iter = collection.iterator(); iter.hasNext();) {
String str = (String) iter.next();
node.addAttribute(str, "com.sap.dictionary.boolean");
return node;
Call this method to create node in view to create list of check boxes
public static IWDNodeInfo createMappedChildNode(
IWDNodeInfo nodeInfoOrigin,
IWDNodeInfo rootInfo,
String name) {
IWDNodeInfo nodeInfoView =
rootInfo.addMappedChild(
name,
null,
nodeInfoOrigin.isSingleton(),
nodeInfoOrigin.isMandatorySelection(),
nodeInfoOrigin.isMultiple(),
nodeInfoOrigin.getPathDescription(),
false,
true);
for (Iterator iter = nodeInfoOrigin.iterateAttributes();
iter.hasNext();
IWDAttributeInfo attrInfo = (IWDAttributeInfo) iter.next();
nodeInfoView.addMappedAttribute(
attrInfo.getName(),
attrInfo.getName());
return nodeInfoView;
Create list of check boxes
public static void createCheckBoxes(
IWDView view,
String rootContainerName,
IWDNodeInfo nodeInfo) {
IWDTransparentContainer rootCont =
(IWDTransparentContainer) view.getElement(rootContainerName);
IWDTransparentContainer cont =
(IWDTransparentContainer) view.createElement(
IWDTransparentContainer.class,
"Container");
IWDGridLayout layout =
(IWDGridLayout) cont.createLayout(IWDGridLayout.class);
layout.setColCount(2);
rootCont.addChild(cont);
for (Iterator iter = nodeInfo.iterateAttributes(); iter.hasNext();) {
IWDAttributeInfo attrInfo = (IWDAttributeInfo) iter.next();
IWDLabel label =
(IWDLabel) view.createElement(
IWDLabel.class,
attrInfo.getName());
label.setText(attrInfo.getName());
IWDCheckBox cbx =
(IWDCheckBox) view.createElement(
IWDCheckBox.class,
attrInfo.getName() + "cbx");
cbx.bindChecked(attrInfo);
label.setLabelFor(cbx.getId());
cont.addChild(label);
cont.addChild(cbx);
Now, to create context node in component controller, use following code,
List list = new ArrayList();
list.add("Label of check box");
IWDNodeInfo nodeInfo = UIHandler.createChildNode(wdThis.wdGetTestController().wdGetContext().getNodeInfo(), "Data", list);
UIHandler.createMappedChildNode(nodeInfo, wdContext.getNodeInfo(), "Data");
To create check box, use following code in wdModifyView,
if(firstTime) {
IWDNode node = wdContext.getChildNode("Data", 0);
IWDNodeInfo nodeInfo = node.getNodeInfo();
UIHandler.createCheckBoxes(view, "RootUIElementContainer", nodeInfo);
And to access the values of the check boxes in different view, put the following code in wdInit()
IWDNodeInfo nodeInfo = wdThis.wdGetTestController().wdGetContext().getChildNode("Data", 0).getNodeInfo();
UIHandler.createMappedChildNode(nodeInfo, wdContext.getNodeInfo(), "Data");
And in wdModifyView
if(firstTime) {
IWDNode node = wdContext.getChildNode("Data", 0);
IWDNodeInfo nodeInfo = node.getNodeInfo();
UIHandler.createCheckBoxes(view, "RootUIElementContainer", nodeInfo);
Thanks,
Puspendu
Similar Messages
-
Displaying an image created at runtime.
I am creating an image at run time (a bar code). How do I display this?
To test a static image I placed the bar code image in the src/mimes/components/packages directory, then compiled that application and it worked perfectly.
I then created the bar code image at run time and wrote it to the same src/mimes/components/packages directory as above. The file was succesfully placed there, but the application does not display the image. If the application is then recompiled with a a hard coded value of the previous bar code in the getImageImageSource method it works.
I'm guessing that the run time repository for images is different to the design time one; is this is the case where should I be writing the image file and what should I return from the getImageImageSource method?
NigelHallo Nigel,
you can apply the Web Dynpro Binary Cache. Just store URL of the cached resource within a context attribute and bind the image url to this attribute.
Implement the following coding:
//@@begin javadoc:wdDoInit()
/** Hook method called to initialize controller. */
//@@end
public void wdDoInit()
//@@begin wdDoInit()
wdContext.currentContextElement().setImgVisibility(WDVisibility.NONE);
// Modify datatype, propare datatype for modifications done by the runtime
wdContext.getNodeInfo().getAttribute("File").getModifiableSimpleType();
//@@end
//@@begin javadoc:onActionUpload(ServerEvent)
/** Declared validating event handler. */
//@@end
public void onActionUpload(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionUpload(ServerEvent)
IWDCachedWebResource cachedResource = null;
String imgUrl = null;
WDWebResourceType type =
((IWDModifiableBinaryType) wdContext.getNodeInfo().getAttribute("File").getModifiableSimpleType())
.getMimeType();
byte[] file = wdContext.currentContextElement().getFile();
if (file != null) {
cachedResource = WDWebResource.getWebResource(file, type);
try {
imgUrl = cachedResource.getURL();
wdContext.currentContextElement().setUrl(imgUrl);
wdContext.currentContextElement().setImgVisibility(WDVisibility.VISIBLE);
} catch (WDURLException e) {
wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(), true);
//@@end
Regards, Bertram -
How to display the checkboxes in the output
Hi,
I need to display checkboxes in the output. Once i select the check box it should
display additional info of that field in anothe list.
another senario:
I want to check all the checkboxes at a time.
i want to uncheck all the ch-boxes at time.
Can i have some explanation on this with some sample code.
Thanks,
SrikREPORT ZTESTPROG5 .
TABLES: MARA.
Types:begin of type_mara,
matnr type mara-matnr,
mtart type mara-mtart,
meins type mara-meins,
end of type_mara.
Types: begin of type_mard,
matnr type mard-matnr,
werks type mard-werks,
lgort type mard-lgort,
labst type mard-labst,
insme type mard-insme,
end of type_mard.
data: it_mara type table of type_mara,
wa_mara type type_mara,
it_mard type table of type_mard,
wa_mard type type_mard.
data: check value space,
ucomm type sy-ucomm,
lines type i.
select-options: s_matnr for mara-matnr.
initialization.
MOVE: 'BT' TO s_matnr-OPTION,
'100-100' TO s_matnr-LOW,
'100-500' TO s_matnr-HIGH.
APPEND s_matnr.
start-of-selection.
set pf-status 'ZSTATUS'.
select matnr mtart meins from mara
into table it_mara
where matnr in s_matnr.
end-of-selection.
loop at it_mara into wa_mara.
write:/ check as checkbox, wa_mara-matnr, wa_mara-mtart,
wa_mara-meins.
hide wa_mara-matnr.
endloop.
lines = sy-linno - 1.
at user-command.
ucomm = sy-ucomm.
case ucomm.
when 'REPORT'.
set pf-status 'ZSTATUS' excluding 'REPORT'.
do lines times.
read line sy-index field value check.
if check = 'X'.
select matnr werks lgort labst insme from mard
into wa_mard
where matnr = wa_mara-matnr.
write:/ wa_mard-matnr, wa_mard-werks, wa_mard-lgort,
wa_mard-labst, wa_mard-insme.
endselect.
endif.
enddo.
when 'SELECTALL'.
lines = lines + 1.
do lines times.
READ LINE sy-index FIELD VALUE check.
IF check = space.
check = 'X'.
MODIFY LINE sy-index
FIELD VALUE check.
ENDIF.
enddo.
when 'DESELECT'.
lines = lines + 1.
do lines times.
READ LINE sy-index FIELD VALUE check.
IF check = 'X'.
check = space.
MODIFY LINE sy-index
FIELD VALUE check.
ENDIF.
enddo.
endcase. -
Displaying the successfully created records as messaage after bdc execution
Hi all,
I want to display the number of successfully created records as message(information) after execution of batch session created in sm35.
could anyone suggest me any solution regarding this?
Thanks and Regards,
Ashikfor error log code check this
[click here for error log code|http://wiki.sdn.sap.com/wiki/display/ABAP/BDC-Howtohandleerrorlogfiletouploadthedataincalltransaction+method]
for BDC Session - Automatic Execution from Report
[click here|http://wiki.sdn.sap.com/wiki/display/ABAP/BDCSession-AutomaticExecutionfromReport] -
Prob in displaying the dynamically created ui elements on click of a button
hi all
i created 1 inputfield, 2 buttons & i wrote the following code in wddomodifyview() of view.
IWDInputField inf1=(IWDInputField)view.createElement(IWDInputField.class,"inf1");
inf1.bindValue("Student.name");
IWDButton but1=(IWDButton)view.createElement(IWDButton.class,"button1");
but1.setText("Button1");
IWDButton but2=(IWDButton)view.createElement(IWDButton.class,"button2");
but2.setText("Button2");
IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("TransparentContainer");
tc.addChild(inf1);
tc.addChild(but1);
tc.addChild(but2);
IWDButton button1= (IWDButton) view.getElement("button1");
IWDAction theAction=wdThis.wdCreateAction(IPrivateDynCompView.WDActionEventHandler.DISPLAY,"");
but1.setOnAction(theAction);
IWDParameterMapping bm1 = button1.mappingOfOnAction();
bm1.addParameter("id", "b1");
IWDButton button2= (IWDButton) view.getElement("button2");
IWDParameterMapping bm2 = button1.mappingOfOnAction();
bm1.addParameter("id", "b2");
and i wrote the following code in onactiondisplay()
if (id.equals("b1"))
wdContext.currentStudentElement().setName("First Button Clicked");
else
wdContext.currentStudentElement().setName("Second Button Clicked");
when i run the application, the following error is displaying.....
The initial exception that caused the request to fail, was:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: View: Cannot add element with duplicate ID "inf1" of type com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField
at com.sap.tc.webdynpro.progmodel.view.View.addElement(View.java:481)
at com.sap.tc.webdynpro.progmodel.view.ViewElement.<init>(ViewElement.java:43)
at com.sap.tc.webdynpro.progmodel.view.UIElement.<init>(UIElement.java:188)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.AbstractInputField.<init>(AbstractInputField.java:143)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField.<init>(InputField.java:71)
... 35 more
com.sap.tc.webdynpro.services.exceptions.WDCreationFailedException: Cannot create view element implementation com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField
at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElement(ViewElementFactory.java:75)
at com.sap.tc.webdynpro.progmodel.view.View.createElement(View.java:89)
at com.sap.dynactions.DynCompView.wdDoModifyView(DynCompView.java:140)
at com.sap.dynactions.wdp.InternalDynCompView.wdDoModifyView(InternalDynCompView.java:240)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:190)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:398)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.modifyView(ClientApplication.java:679)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:381)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElement(ViewElementFactory.java:65)
... 30 more
Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: View: Cannot add element with duplicate ID "inf1" of type com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField
at com.sap.tc.webdynpro.progmodel.view.View.addElement(View.java:481)
at com.sap.tc.webdynpro.progmodel.view.ViewElement.<init>(ViewElement.java:43)
at com.sap.tc.webdynpro.progmodel.view.UIElement.<init>(UIElement.java:188)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.AbstractInputField.<init>(AbstractInputField.java:143)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField.<init>(InputField.java:71)
... 35 more
pls tell me how to run this application without errors.....
thanks & regards,
vila.Hi Vila,
Issue here is you are trying to create Input field with already used id "inf1" in first line of code
IWDInputField inf1=(IWDInputField)view.createElement(IWDInputField.class,"inf1");
Please change it to
IWDInputField inf1=(IWDInputField)view.createElement(IWDInputField.class,"inf2");
and correspondingly line
tc.addChild(inf2);
Your code will work.
Please note that you should follow....following code style in wdDoModifyview
if(firstTime)
//dynamic view elements creation -
How to Edit the CheckBox in Classic ALV GRID Display
Hi,
I want to Edit the checkbox in Grid Display.
I have one checkbox field in my internal Table,
Code Of the Program,
Data :
Begin of itab occurs 0,
CHK type C,
MATNR like MARA-MATNR,
end of itab.
Iam building the fieldcatelog using Merge Funcion module.
After that I am chaning the properties of the field
catelog like below,
loop at I_FCAT assigning <FCAT>.
Case <FCAT>-Fieldname
When 'CHK'.
<FCAT>-Checkbox = 'X'.
<FCAT>-INPUT = 'X'.
I dont have edit option in fieldcatelog.
modify I_FCAT from <FCAT>.
endcase.
endloop.
In the Layout,
I_LAYOUT-box_fieldname = 'CHK'.
I_LAYOUT-box_tabname = 'ITAB'.
It is displaying the Checkbox field.but I couldnt edit the checkBox.
I can able to edit in REUSE_ALV_LIST_DISPLAY.
But I have to use REUSE_ALV_GRID_DISPLAY.How to edit the checkbox.
Thanks in Advance,
SumithraHi vasu,
The below procedure explains you to create a checkbox cloumn in the grid and allows you to edit i hope this will helps u.
The ALV Grid Control displays the cells of a column as checkboxes if the column is marked as a checkbox column in the field catalog.
Add another field to the output table in which you want to display checkboxes
OR
Define an existing field as a checkbox.
Procedure
1. Add a field to your output table:
Data: gt_fieldcat type lvc_t_fcat.
Types: begin of gs_outtab.
Types: checkbox type c. "field for checkbox
Include structure <ABAP Dictionary structure> .
Types: end of gs_outtab.
Data: gt_outtab type gs_outtab occurs 0 with header line.
2 * Add an entry for the checkbox to the field catalog
clear ls_fcat.
ls_fcat-fieldname = 'CHECKBOX'.
* Essential: declare field as checkbox and
* mark it as editable field:
ls_fcat-checkbox = 'X'.
ls_fcat-edit = 'X'.
* do not forget to provide texts for this extra field
ls_fcat-coltext = text-f01.
ls_fcat-tooltip = text-f02.
ls_fcat-seltext = text-f03.
append ls_fcat to gt_fieldcat.
regards,
venu. -
Need to delete the record based on the checkbox xselected
I am displaying the data from tables vbrk and vbrp.along with that data i am displaying the checkbox also.
here my requirement is when ever the user checks the checkboxes and click on delete button the checkbox selected items should deleted and need to display the remaining.
please any send me the example how to process it.
thanks and regards
vamsi
[email protected]Hi,
Herewith i am sending the sample coding for checkbox alv report. Kindly go through it. U can get some idea for your requirement.
REPORT YMS_CHECKBOXALV.
TYPE-POOLS: slis.
DATA: t_fieldcatalog TYPE slis_t_fieldcat_alv.
DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
DATA: s_layout TYPE slis_layout_alv.
DATA: BEGIN OF itab OCCURS 0,
icon TYPE icon-id,
vbeln TYPE vbeln,
kunnr TYPE kunnr,
erdat TYPE erdat,
box TYPE c,
END OF itab.
DATA: v_repid TYPE syrepid.
START-OF-SELECTION.
Get the data.
SELECT vbeln kunnr erdat UP TO 100 ROWS
FROM vbak
INTO CORRESPONDING FIELDS OF TABLE itab.
IF sy-subrc <> 0.
MESSAGE s208(00) WITH 'No data found'.
LEAVE LIST-PROCESSING.
ENDIF.
Modify the record with red light.
itab-icon = '@0A@'.
MODIFY itab TRANSPORTING icon WHERE NOT vbeln IS initial.
v_repid = sy-repid.
Get the field catalog.
CLEAR: s_fieldcatalog.
s_fieldcatalog-col_pos = '1'.
s_fieldcatalog-fieldname = 'ICON'.
s_fieldcatalog-tabname = 'ITAB'.
s_fieldcatalog-seltext_l = 'Status'.
s_fieldcatalog-icon = 'X'.
APPEND s_fieldcatalog TO t_fieldcatalog.
CLEAR: s_fieldcatalog.
s_fieldcatalog-col_pos = '2'.
s_fieldcatalog-fieldname = 'VBELN'.
s_fieldcatalog-tabname = 'ITAB'.
s_fieldcatalog-rollname = 'VBELN'.
APPEND s_fieldcatalog TO t_fieldcatalog.
CLEAR: s_fieldcatalog.
s_fieldcatalog-col_pos = '3'.
s_fieldcatalog-fieldname = 'KUNNR'.
s_fieldcatalog-tabname = 'ITAB'.
s_fieldcatalog-rollname = 'KUNNR'.
APPEND s_fieldcatalog TO t_fieldcatalog.
CLEAR: s_fieldcatalog.
s_fieldcatalog-col_pos = '4'.
s_fieldcatalog-fieldname = 'ERDAT'.
s_fieldcatalog-tabname = 'ITAB'.
s_fieldcatalog-rollname = 'ERDAT'.
APPEND s_fieldcatalog TO t_fieldcatalog.
Set the layout.
s_layout-box_fieldname = 'BOX'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = v_repid
is_layout = s_layout
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = t_fieldcatalog[]
TABLES
t_outtab = itab.
FORM SET_PF_STATUS *
--> EXTAB *
FORM set_pf_status USING extab TYPE slis_t_extab.
SET PF-STATUS 'TEST2'.
ENDFORM.
FORM user_command *
--> UCOMM *
--> SELFIELD *
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
Check the ucomm.
IF ucomm = 'DETAIL'.
LOOP AT itab WHERE box = 'X'.
itab-icon = '@08@'.
MODIFY itab TRANSPORTING icon.
ENDLOOP.
ENDIF.
selfield-refresh = 'X'.
ENDFORM.
Thanks,
Shankar -
Hi,
This is my first post on Adobe DPS forum.
On one page I want to print the UDID of my iPad. But this should be a variable as whenever I open my folio on another iPad it should show the UDID of that iPad. All in all, whenever I open my folio it should display the UDID of the iPad on which I'm opening the folio. Is it possible?
Thanks in adavance and best regards.
With regards,
Anil Yadavi don't think you have access to this 'sensitive kind of information'.
a Google search for "html UDID display" might get you the answer in seconds.
—johannes
(mobil gesendet)
Am 07.10.2011 06:11 schrieb "Anil Yadav" <[email protected]>:
Re: want to display the UDID created by Anil Yadav<http://forums.adobe.com/people/Anil+Yadav>in
Digital Publishing Suite - View the full discussion<http://forums.adobe.com/message/3959005#3959005> -
Add columns in DataGridView And display it in the report Viewer at RunTime
Hello Everyone , this is my first participation here, I am civil Engineer and I have a Question
I created dataGridViewer connected to a database , when I change the records and reopen the application the changed are saved However , I let the user to add/delete columns during the runtime (by using sql command) ,even though those columns are saved and
appear at datagridviewer
The reported Viewer (which i designed using wizard) is not showing these columns
what should i do , I have been trying to solve this for a week ! could it be a year ? !
I am using c# visual studio 2012Hi Azzam,
According to your description, you want to display changed columns in ReportViewer control. Right?
In Reporting Services, when we retrieve the data, the query or stored procedure will only execute one time. So during runtime, the data in a report will not change. So we can't display the changed columns in report during runtime. However, we can set the
Auto-refresh properties for report so that the report can refresh every X seconds. This is the most effective workaround. Please refer to links below:
SSRS report auto refresh
Automatically refreshing your SQL Reporting Services reports with the AutoRefresh element
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
Empty paragrpahs in a textflow cause runtime error when displaying the text
Hello there,
when I create a textflow which has empty ParagraphElements in
it (i.e. a ParagraphElement without any children) I get this
runtime error once I try to display the text in a container:
Error: Error #2175: One or more elements of the content of
the TextBlock has a null ElementFormat.
Is this a bug, or is there a legitimate reason for this
error? If so, I'd like to understand why. In my reasoning an empty
ParagraphElement should just result in the rendering of a newline.
But maybe I'm thinking too much in HTML terms here...
I appreciate any light you can shed on this,
thanks in advance,
Roland
P.S. I'm using the latest build 370Hey Richard,
thank you very much, and I was indeed already using your
mentioned workaround, I was just wondering whether it was a bug or
something I didn't fully understand :) But now I do, so thanks for
your time. -
When I drag and drop a website icon from the Forefox address bar to the desk top, the short cut is created but the icon that appears is the firefox Icon. I want to disply the icon from the website that the short cut refers to. I have checked all I can think of in my computer to no avail.
You have to assign the favicon yourself to the desktop shortcut (right-click the shortcut: Properties) after you have dragged the link to the desktop.
You can usually find the favicon in Tools >Page Info > Media and save the icon there.
Otherwise use the main domain of the website and add favicon.ico (e.g. mozilla.com/favicon.ico ) to display the favicon in a tab and save that image to a folder. -
How 2 creat report for displaying the details of a Delivery Document using
how to create report for displaying the details of a Delivery Document using the tables LIKP, LIPS
thank you
regards,
jagrut bharatkumar shukla
points will be rewardedHI
I AM GIVING YOU MY DELIVERY DOCUMENT CODE...MODIFY IT ACCORDING TO YOUR REQUIREMENT
*& Report ZDELIVERY *
report zdelivery message-id z9bhu .
types: begin of t_likp,
vbeln type likp-vbeln, "Delivery
erdat type likp-erdat, "Date for rec creation
* LFDAT TYPE LIKP-LFDAT, "Delevery Date
* WAERK TYPE LIKP-WAERK, "Currency
kunnr type likp-kunnr, "Ship-To Party
kunag type likp-kunag, "Sold-to party
traty type likp-traty, "Means-of-Transport
end of t_likp.
types: begin of t_lips,
vbeln type lips-vbeln, "Delivery
posnr type lips-posnr, "Delivery item
matnr type lips-matnr, "Material Number
arktx type lips-arktx, "Short Text for Sales Order Item
lfimg type lips-lfimg, "Actual quantity delivered
netpr type lips-netpr,
* MEINS TYPE LIPS-MEINS, "Base Unit of Measure
vgbel type lips-vgbel, "Doc no of the reference document
end of t_lips.
types: begin of t_vbpa,
vbeln type vbpa-vbeln, "SD DocumenT Number
posnr type vbpa-posnr, "Item number
parvw type vbpa-parvw, "Partner function
kunnrb type vbpa-kunnr, "Customer Number 1
end of t_vbpa.
types: begin of t_kna1,
kunnr type kna1-kunnr, "Customer Number 1
name1 type kna1-name1, "Name 1
ort01 type kna1-ort01, "City
adrnr type kna1-adrnr, "Address
end of t_kna1.
types: begin of t_li_vbpa,
vbeln type likp-vbeln, "Delivery
erdat type likp-erdat, "Date for rec creation
* LFDAT TYPE LIKP-LFDAT, "Delevery Date
* WAERK TYPE LIKP-WAERK, "Currency
kunnr type likp-kunnr, "Ship-To Party
kunag type likp-kunag, "Sold-to party
traty type likp-traty, "Means-of-Transport
vbeln1 type lips-vbeln, "Delivery
posnr type lips-posnr, "Delivery item
matnr type lips-matnr, "Material Number
arktx type lips-arktx, "Short Text for Sales Order Item
lfimg type lips-lfimg, "Actual quantity delivered
netpr type lips-netpr, "Net Price
* MEINS TYPE LIPS-MEINS, "Base Unit of Measure
vgbel type lips-vgbel, "Doc no of the reference document
vbeln3 type vbpa-vbeln, "SD DocumenT Number
parvw type vbpa-parvw, "Partner function
kunnrb type vbpa-kunnr, "Customer Number 1
end of t_li_vbpa.
types: begin of t_final,
vbeln type likp-vbeln, "Delivery
erdat type likp-erdat, "Date for rec creation
kunnr type likp-kunnr, "Ship-To Party
kunag type likp-kunag, "Sold-to party
traty type likp-traty, "Means-of-Transport
vbeln1 type lips-vbeln, "Delivery
posnr type lips-posnr, "Delivery item
matnr type lips-matnr, "Material Number
arktx type lips-arktx, "Short Text for Sales Order Item
lfimg type lips-lfimg, "Actual quantity delivered
netpr type lips-netpr, "Net Price
vgbel type lips-vgbel, "Doc no of the reference document
vbeln3 type vbpa-vbeln, "SD DocumenT Number
parvw type vbpa-parvw, "Partner function
kunnrb type vbpa-kunnr, "Customer Number 1
name1 type kna1-name1, "Name 1
ort01 type kna1-ort01, "City
adrnr1 type kna1-adrnr, "Address
name2 type kna1-name1, "Name 1
ort02 type kna1-ort01, "City
adrnr2 type kna1-adrnr, "Address
name3 type kna1-name1, "Name 1
ort03 type kna1-ort01, "City
adrnr3 type kna1-adrnr, "Address
end of t_final.
* D A T A D E C L A R A T I O N
*&*********Internal Table Declaration****************&*
data: it_likp type standard table of t_likp.
data: it_lips type standard table of t_lips.
data: it_vbpa type standard table of t_vbpa.
data: it_kna1 type standard table of t_kna1.
data: it_li_vbpa type standard table of t_li_vbpa.
data: it_li_vbpa_temp type standard table of t_li_vbpa.
data: it_final type standard table of t_final.
*&*********Work Area Declaration********************&*
data: wa_likp type t_likp.
data: wa_lips type t_lips.
data: wa_vbpa type t_vbpa.
data: wa_kna1 type t_kna1.
data: wa_li_vbpa type t_li_vbpa.
data: wa_li_vbpa_temp type t_li_vbpa.
data: wa_final type t_final.
*&*********Data Declaration************************&*
data: d_vbeln type likp-vbeln.
data: flag type i value 0.
* S E L E C T I O N S C R E E N D E C L A R A T I O N
selection-screen begin of block block2 with frame title text-001.
select-options: s_vbeln for d_vbeln obligatory. "Delivery no
selection-screen end of block block2.
* A T S E L E C T I O N - S C R E E N E V E N T S
*AT SELECTION-SCREEN.
*PERFORM VALIDATE_DATA.
* S T A R T O F S E L E C T I O N E V E N T S
start-of-selection.
perform fetch_data.
perform merge_data_kna1.
*INCLUDE Z9BT_SH_***4_FORMS.
call function 'OPEN_FORM'
exporting
* APPLICATION = 'TX'
* ARCHIVE_INDEX =
* ARCHIVE_PARAMS =
device = 'PRINTER'
* DIALOG = 'X'
* FORM = ' '
language = sy-langu
* OPTIONS =
* MAIL_SENDER =
* MAIL_RECIPIENT =
* MAIL_APPL_OBJECT =
* RAW_DATA_INTERFACE = '*'
* SPONUMIV =
* IMPORTING
* LANGUAGE =
* NEW_ARCHIVE_PARAMS =
* RESULT =
exceptions
canceled = 1
device = 2
form = 3
options = 4
unclosed = 5
mail_options = 6
archive_error = 7
invalid_fax_number = 8
more_params_needed_in_batch = 9
spool_error = 10
codepage = 11
others = 12
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
sort it_final by vbeln.
loop at it_final into wa_final.
call function 'START_FORM'
exporting
* ARCHIVE_INDEX =
form = 'Z9BT_DELIVERY'
language = sy-langu
* STARTPAGE = ' '
* PROGRAM = ' '
* MAIL_APPL_OBJECT =
* IMPORTING
* LANGUAGE =
exceptions
form = 1
format = 2
unended = 3
unopened = 4
unused = 5
spool_error = 6
codepage = 7
others = 8
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function 'WRITE_FORM'
exporting
element = 'ITEM_LIST'
function = 'SET'
type = 'BODY'
window = 'MAIN'
* IMPORTING
* PENDING_LINES =
* EXCEPTIONS
* ELEMENT = 1
* FUNCTION = 2
* TYPE = 3
* UNOPENED = 4
* UNSTARTED = 5
* WINDOW = 6
* BAD_PAGEFORMAT_FOR_PRINT = 7
* SPOOL_ERROR = 8
* CODEPAGE = 9
* OTHERS = 10
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function 'END_FORM'
* IMPORTING
* RESULT =
exceptions
unopened = 1
bad_pageformat_for_print = 2
spool_error = 3
codepage = 4
others = 5
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endloop.
call function 'CLOSE_FORM'
* IMPORTING
* RESULT =
* RDI_RESULT =
* TABLES
* OTFDATA =
exceptions
unopened = 1
bad_pageformat_for_print = 2
send_error = 3
spool_error = 4
codepage = 5
others = 6
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
*& Form VALIDATE_DATA
* text
* --> p1 text
* <-- p2 text
form validate_data .
select single vbeln into wa_likp-vbeln
from likp where vbeln in s_vbeln.
append wa_likp to it_likp.
if sy-subrc <> 0.
flag = 1.
endif.
endform. " VALIDATE_DATA
*& Form FETCH_DATA
* text
* --> p1 text
* <-- p2 text
form fetch_data .
select a~vbeln
a~erdat
a~kunnr
a~kunag
a~traty
b~vbeln
b~posnr
b~matnr
b~arktx
b~lfimg
b~netpr
b~vgbel
c~vbeln
c~parvw
c~kunnr
into table it_li_vbpa
from likp as a
left outer join lips as b on a~vbeln = b~vbeln
inner join vbpa as c on b~vgbel = c~vbeln
where a~vbeln in s_vbeln and
c~parvw = 'RE'.
endform. " FETCH_DATA
*& Form MERGE_DATA_KNA1
* text
* --> p1 text
* <-- p2 text
form merge_data_kna1 .
if it_li_vbpa[] is not initial.
it_li_vbpa_temp[] = it_li_vbpa[].
sort it_li_vbpa_temp by kunnr.
delete adjacent duplicates from it_li_vbpa_temp comparing kunnr.
loop at it_li_vbpa into wa_li_vbpa.
read table it_li_vbpa_temp into wa_li_vbpa_temp with key kunnr =
wa_li_vbpa-kunag.
if sy-subrc <> 0.
wa_li_vbpa_temp = wa_li_vbpa.
append wa_li_vbpa_temp to it_li_vbpa_temp.
endif.
read table it_li_vbpa_temp into wa_li_vbpa_temp with key kunnr =
wa_li_vbpa-kunnrb.
if sy-subrc <> 0.
wa_li_vbpa_temp = wa_li_vbpa.
append wa_li_vbpa_temp to it_li_vbpa_temp.
endif.
endloop.
endif.
if it_li_vbpa_temp[] is not initial.
select kunnr
name1
ort01
adrnr into table it_kna1 from kna1
for all entries in it_li_vbpa_temp
where kunnr = it_li_vbpa_temp-kunnr.
endif.
loop at it_li_vbpa into wa_li_vbpa .
wa_final-vbeln = wa_li_vbpa-vbeln.
wa_final-erdat = wa_li_vbpa-erdat.
*it_final-LFART = it_li_vbpa-LFART.
wa_final-kunnr = wa_li_vbpa-kunnr.
wa_final-kunag = wa_li_vbpa-kunag.
*it_final-VSTEL = it_li_vbpa-VSTEL.
wa_final-traty = wa_li_vbpa-traty.
wa_final-vbeln1 = wa_li_vbpa-vbeln.
wa_final-posnr = wa_li_vbpa-posnr.
wa_final-matnr = wa_li_vbpa-matnr.
wa_final-arktx = wa_li_vbpa-arktx.
wa_final-lfimg = wa_li_vbpa-lfimg.
wa_final-netpr = wa_li_vbpa-netpr.
*wa_final-GEWEI = it_li_vbpa-GEWEI.
*it_final-VOLUM = it_li_vbpa-VOLUM.
*it_final-VOLEH = it_li_vbpa-VOLEH.
wa_final-vgbel = wa_li_vbpa-vgbel.
wa_final-vbeln3 = wa_li_vbpa-vbeln.
*wa_final-PARVW = wa_li_vbpa-PARVW.
wa_final-kunnrb = wa_li_vbpa-kunnrb.
read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunnr.
if sy-subrc = 0.
wa_final-name1 = wa_kna1-name1.
wa_final-ort01 = wa_kna1-ort01.
wa_final-adrnr1 = wa_kna1-adrnr.
endif.
read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunag.
if sy-subrc = 0.
wa_final-name2 = wa_kna1-name1.
wa_final-ort02 = wa_kna1-ort01.
wa_final-adrnr2 = wa_kna1-adrnr.
endif.
read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunnrb.
if sy-subrc = 0.
wa_final-name3 = wa_kna1-name1.
wa_final-ort03 = wa_kna1-ort01.
wa_final-adrnr3 = wa_kna1-adrnr.
endif.
append wa_final to it_final.
clear wa_final.
endloop.
endform. -
How to create a custom layout set to display the KM folders...
Could someone please tell me how to create a custom layout set to display the KM folders?
Thanks,
Sudha.Hi Sudha,
Please check the following blogs whick will guide you step by step.
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4123
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3071
http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/c91b5610b65b4aa8204d09384d156b/frameset.htm
If helps reward points
cheers
dev -
Creating a Folder Within Form or Document Library & Display the name not in the name column.
I have created a form library that will used to create folders within that. The folder creation is done using an InfoPath Form that has been uploaded to the Form Library. When the new folder was created the name will be displayed at the Name column within
the Form Library. I want to change that to another column like documents or suchlike.
Can it be done using InfoPath 2010 VSTA C# or not? If their are other options available please could you try to inform me!
Thank You,
ChiranthakaHi,
If you want to show the name of folder in another column, a workaround is that you can create an extra column, then create a SharePoint Designer workflow to set the value of
this column with the name of folder.
Here is a link about Create Workflow using SharePoint Designer and set field value for your reference:
http://www.codeproject.com/Tips/419037/Create-Workflow-using-SharePoint-Designer
I have seen a similar post from you in the link below:
http://social.technet.microsoft.com/Forums/en-US/c3ff3f17-dbe2-40f9-86c5-ff7d4b663f09/creating-a-folder-within-form-or-document-library-display-the-name-not-in-the-name-column?forum=sharepointcustomizationprevious
It's recommended that you post a single question in a single thread which will make it easier to be discussed by others.
Best regards
Patrick Liang
TechNet Community Support -
Is there a way of displaying the various item in my Downloads folder as icons arranged in order of Date Created, such that the most recent items appear at the bottom, rather than the top? I know this can be done when they are displayed as a list, but I want icons!
Hi geezer,
when you open your 'Downloads' folder choose 'View' in the Menu bar and choose:
'as List'
'Show View Options'
In 'View options' window you tick:
'Always open in list view'
'Date Modified', or
'Date created'
Now inside the 'Downloads' folder click on 'Date Created' (or 'Date Modified')
column to get items alined from oldest to newest date (or reverse)…
Maybe you are looking for
-
How many devices can you register with a personal dev account
can anyone tell me how many udids can i register with a personal account as i have a team of testers i would like to add , would i need a company dev account for this thanks or will my personal one be ok for this
-
I created a PDF Form in Acrobat Pro 9, and encrypted it with a password. No other restrictions were placed on the document. When I open the document on an android device (tablet or phone) or an iPod, it does not allow me to fill in any of the fields
-
I connected a new 2nd iphone to my laptop. When asked to setup as new or to restore from backup, I chose restore because I thought it would load all of the apps and their relevant data faster. Now I'm wondering if I shouldn't have done that. My 1st p
-
When I try backing up to icloud it says that I have gone over the free 5gb. It shows that I have 4.6 gb of pictures in my camera roll when I barely have over 200 pictures! Any similiar problems or possible solutions?
-
How to take value from one table to another table?
Hi, My requirement is,I have two tables those are Document and Transaction both having one common column "Docseriescode" in Document table already having different records with "Docseriescode". when i am going to transaction table for adding records