How to subtotal using auto-calc ?
Hi,
I am trying to subtotal based on Product. (The POV account is Revenue)
FR.pdf has an example using auto calculateion, but I am not able to get it to work.
I clicked on member Product (the column on furthest left) and select Auto Calc. I selected Calculation's Total, Headings Group Heading was set to <<MemberName["Grid1",current,"Product"]>>
POV=Revenue
Jan Feb
Product1 12 34
Product2 55 66
=== ===
sub total 67 100
I also tried set to <<MemberName["Grid1",current,"Revenue"]>>
See Chapter 3 of the Numbers User Guide, Managing Table Categories and Subcategories, To display values automatically computed ...
Page 76 of the English version of the Guide. Download the guide from the Help Menu.
Jerry
Similar Messages
-
How do I use auto-form recognition to create PDF forms in Acrobat XI?
I used to use Acrobat 9 to create PDF forms that would allow me to fill in text into the fields that were created. Acrobat XI seems to have changed the way this function is performed. Previously, I could run an auto form recognition wizard, do some minor tweaking, and be done. Now, when I attempt to follow the process in Acrobat XI, I get the following message that pops up: "No new form field annotations were detected.", and no fields get created. I could do this manually, but the process of doing so is very clunky and cumbersome. Once I create a new text field, I must then go back and resize it. This would not be a problem if I was only working with a few fields on a single page, but I have a six page document with multiple fields to create (text fields, check box fields, etc.). Perhaps I'm missing something, but there seems to be no simple way to do this anymore. It's making me want to just install Acrobat 9, so that I will have back the feature that I used to have. I'm using Acrobat XI on Mac, but I'm assuming the function should be the same in Windows. I can use Preview on the Mac to simply type in the text that I need, but I was hoping to pass along the PDF so that others can use it as well. This is not just a one time thing.
There are no APIs for C# and external applications for this conversion. There is however an API for Acrobat plugins to perform this operation. So, if necessary, you could write a custom plugin (that calls the API you need) and expose that via some form of IPC to your C# app.
-
How can I use Auto Import to name files after the folder they are dropped into?
I'm camera tethered on a new Macbook Pro Retina, Lightroom 5, all latest software and OS. Using EOS Utility to connect and drop into a DROP folder. When Lightroom Autoimports, I would like it to rename the file after the destination folder. Capture One has this feature and I could have sworn I saw a drop down menu on one of the naming tokens in LR5 about a month ago. ANY IDEAS?
The closest you can come is to create a File Naming Template that includes "Custom Text" as a part of the file name. Then, you will have to change the Auto Import Settings to use this Template when auto-importing and manually type that folder name in every time you change folders. There is no "Folder" token of which I am aware.
-
How do I use auto fill in safari
I can't get auto fill to work. What do I do?
Go to Settings -> Safari -> Autofill
There you can turn Autofill on and assign the correct details.
Regards. -
How do I use auto scroll?
Is there auto scroll built in? I WANT IT! :-)
Auto scroll does not exist for Firefox for Android.
-
I m a very new, (and older), iPad user, and have had trouble finding Autofill.
Can you direct me to it, with any further help you think an oldie may need.
Thank you darlings.Squaredog66 wrote:
Tonefox, surely, if 90% of posters find their answers in the manual, this site would hardly be much help, other than to say, "read the manual "
Correct.
Ah! Maybe that's why you have such a large collection of points.
My points are awarded by posters who have decided my answers have been useful. No points are awarded by users who bellyache about my responses. -
How can i use auto-complete of javascript in dreamweaver 8?
it supports asp,html,and so on,but javascript......
I believe that it supports JavaScript in a .js file, just not
in a
<script> block of an HTML page.
Try editing Configuration/CodeHints/CodeHints.xml and adding
"JavaScript" to the doctypes list wherever you see HTML.
HTH,
Randy
> it supports asp,html,and so on,but javascript...... -
How do you use auto select text for ipod touch??
When turned on when you start to type a word a box may show up with what the iPod thinks is the word you want. To accept the suggestion type a space. To reject the suggestion tap the x by the box. After a while it will learn not to make that suggestion.
-
How do you get auto fill to use the right E-mail address?
Hi Everyone
My address book card has multiple E-mail addresses on it. Yet when I want to use auto fill to fill out a form, 100% of the time it's just one address I want to use. The problem is safari always uses only one of the addresses and it's not the one I want to use. Is there a way to change which address (or any other field) from your address card is used in auto fill?
TIA
KSince you don't say how many email addresses you have on your own card or which of them it's picking, I'll assume it's choosing the first one in the list. If that's correct and it's not the one you want, you need to change the order of addresses to make the one you want be the first one in the list.
Other than that, you cannot set a default item for any field.
Mulder -
How to use AUTO in Mapping name for EDIFACT
Hi
I have a source which will be posting 2 diff kinds of EDIFACT to XI.
I want to use just a single channel where i want to configure my .sda module.
I've seen that we can use 'AUTO' in MappingName parameter, so that the mapping is chosen dynamically.
However,when i tried to do so, i get an error saying that the adapter cannot find the mapping in the classpath.
Can anyone guide me as to how to use the AUTO parameter?
If possible, provide a link for some blog where they are using it.Hi Alok,
Reason behing not getting the EDI payload was missing of splitter configuration, you need to configure the splitter as
you need to use AUTO mappingName instead of specific mapping name
once you configure split parameter of bic to true, it will generate an attacments like KEY|MAPPINGNAME|ACCEPTED|MessageNo
then based on this configuration splitter will look for the same key in Seeburger workbench configuration and then generates a XI message (SXMB_MONI entry) ...
If you dont want acknowledgement of EDI and sure about the version of the mapping then you can configure the mappingName
directly instead of AUTO...in BIC paramter
HTH
Rajesh -
HT1816 How do I turn auto-renew off for my multi-pass using my iphone
How do I turn auto-renew off for my multi-pass using my iphone
Anserwed in your other post on this Topic...
https://discussions.apple.com/message/22415340#22415340
See the first Link I posted...
iTunes Store: Purchasing and managing auto-renewing subscriptions -
Hi All,
I'm trying to create a new ECO using the PL/SQL API "ENG_ECO_PUB.PROCESS_ECO". I want the ECO name to be automatically assigned by the system but when leaving the ECO_NAME empty (in paramter P_ECO_REC) I get the error message:
"You must enter an ECO name and organization because they are the primary identifiers of a business object. Please ensure that these values exist in all your records and re-run the import process."
I have set the profile option "ENG: Change Order Autonumbering - System Administrator access" to yes.
I have set following fields in P_ECO_REC:
p_eco_rec.organization_code := 'V1';
p_eco_rec.change_type_code := 'ECO';
p_eco_rec.description := 'Test';
p_eco_rec.transaction_type := 'CREATE';
p_eco_rec.plm_or_erp_change := 'ERP'; -- also tried with 'PLM'
p_eco_rec.approval_status_name := 'Approved';
Do I need to set anything else?
Thanks,
CarolinHi Helios,
thanks for reply.
I checked note 1242524.1, but there's no advice what to configure for using auto numbering.
I tried it again with adapted sample code and leaving the ECO_NAME empty:
DECLARE
-- API Input variables
l_eco_name VARCHAR2(9) := '';
l_org_code VARCHAR2(3) := 'V1';
l_rev_item_number VARCHAR2(20):= 'CS_Test_Assem_10';
l_eff_date DATE := '8-SEP-2011';
l_new_revised_item_revision VARCHAR2(2) := 'A';
l_eco_rec Eng_Eco_Pub.Eco_Rec_Type := Eng_Eco_Pub.g_miss_eco_rec;
l_eco_revision_tbl Eng_Eco_Pub.Eco_Revision_Tbl_Type := Eng_Eco_Pub.g_miss_eco_revision_tbl;
l_revised_item_tbl Eng_Eco_Pub.Revised_Item_Tbl_Type := Eng_Eco_Pub.g_miss_revised_item_tbl;
l_rev_component_tbl Bom_Bo_Pub.Rev_Component_Tbl_Type := Eng_Eco_Pub.g_miss_rev_component_tbl;
l_sub_component_tbl Bom_Bo_Pub.Sub_Component_Tbl_Type := Eng_Eco_Pub.g_miss_sub_component_tbl;
l_ref_designator_tbl Bom_Bo_Pub.Ref_Designator_Tbl_Type := Eng_Eco_Pub.g_miss_ref_designator_tbl;
l_rev_operation_tbl Bom_Rtg_Pub.Rev_Operation_Tbl_Type := Eng_Eco_Pub.g_miss_rev_operation_tbl;
l_rev_op_resource_tbl Bom_Rtg_Pub.Rev_Op_Resource_Tbl_Type := Eng_Eco_Pub.g_miss_rev_op_resource_tbl;
l_rev_sub_resource_tbl Bom_Rtg_Pub.Rev_Sub_Resource_Tbl_Type := Eng_Eco_Pub.g_miss_rev_sub_resource_tbl;
-- API output variables
x_eco_rec Eng_Eco_Pub.Eco_Rec_Type := Eng_Eco_Pub.g_miss_eco_rec;
x_eco_revision_tbl Eng_Eco_Pub.Eco_Revision_Tbl_Type := Eng_Eco_Pub.g_miss_eco_revision_tbl;
x_revised_item_tbl Eng_Eco_Pub.Revised_Item_Tbl_Type := Eng_Eco_Pub.g_miss_revised_item_tbl;
x_rev_component_tbl Bom_Bo_Pub.Rev_Component_Tbl_Type := Eng_Eco_Pub.g_miss_rev_component_tbl;
x_sub_component_tbl Bom_Bo_Pub.Sub_Component_Tbl_Type := Eng_Eco_Pub.g_miss_sub_component_tbl;
x_ref_designator_tbl Bom_Bo_Pub.Ref_Designator_Tbl_Type := Eng_Eco_Pub.g_miss_ref_designator_tbl;
x_rev_operation_tbl Bom_Rtg_Pub.Rev_Operation_Tbl_Type := Eng_Eco_Pub.g_miss_rev_operation_tbl;
x_rev_op_resource_tbl Bom_Rtg_Pub.Rev_Op_Resource_Tbl_Type := Eng_Eco_Pub.g_miss_rev_op_resource_tbl;
x_rev_sub_resource_tbl Bom_Rtg_Pub.Rev_Sub_Resource_Tbl_Type := Eng_Eco_Pub.g_miss_rev_sub_resource_tbl;
-- Other API variables for return status / error handling / debugging
l_error_table Error_Handler.Error_Tbl_Type;
l_return_status VARCHAR2(1) := NULL;
l_msg_count NUMBER := 0;
l_output_dir VARCHAR2(500) := 'C:\temp';
l_debug_filename VARCHAR2(60) := 'su_debug_10_15.dbg';
-- WHO columns
l_user_id NUMBER := -1;
l_resp_id NUMBER := -1;
l_application_id NUMBER := -1;
l_row_cnt NUMBER := 1;
l_user_name VARCHAR2(30) := 'MFG';
l_resp_name VARCHAR2(30) := 'MFG_AND_DIST_SUPER_USER_APS';
BEGIN
-- Get the user_id
SELECT user_id
INTO l_user_id
FROM fnd_user
WHERE user_name = l_user_name;
-- Get the application_id and responsibility_id
SELECT application_id, responsibility_id
INTO l_application_id, l_resp_id
FROM fnd_responsibility
WHERE responsibility_key = l_resp_name;
FND_GLOBAL.APPS_INITIALIZE(l_user_id, l_resp_id, l_application_id); -- Mfg / Mfg & Dist Mgr / INV
dbms_output.put_line('Initialized applications context: '|| l_user_id || ' '|| l_resp_id ||' '|| l_application_id );
Error_Handler.Initialize;
l_return_status := NULL;
l_eco_rec.eco_name := l_eco_name;
l_eco_rec.organization_code := l_org_code;
l_eco_rec.change_type_code := 'ECO';
l_eco_rec.eco_department_name := NULL;
l_eco_rec.priority_code := NULL; --'Medium';
l_eco_rec.approval_list_name := NULL; --'SU_ONLY';
l_eco_rec.reason_code := NULL;
l_eco_rec.Approval_Status_Name:= 'Approved'; -- will default to Not submitted for Approval
l_eco_rec.Status_Name := 'Open';
l_eco_rec.description := 'ECO - '||l_eco_rec.eco_name||' API Test';
l_eco_rec.transaction_type := 'CREATE';
l_eco_rec.plm_or_erp_change := 'ERP'; -- or 'PLM'
l_eco_rec.return_status := NULL;
dbms_output.put_line('Initialized ECO Header');
l_revised_item_tbl(l_row_cnt).eco_name := l_eco_name;
l_revised_item_tbl(l_row_cnt).organization_code := l_org_code;
l_revised_item_tbl(l_row_cnt).revised_item_name := l_rev_item_number;
l_revised_item_tbl(l_row_cnt).new_revised_item_revision := l_new_revised_item_revision;
l_revised_item_tbl(l_row_cnt).start_effective_date := l_eff_date;
l_revised_item_tbl(l_row_cnt).alternate_bom_code := NULL;
l_revised_item_tbl(l_row_cnt).status_type := 1; -- 'Open'
l_revised_item_tbl(l_row_cnt).change_description := 'Test';
l_revised_item_tbl(l_row_cnt).transaction_type := 'CREATE'; -- transaction type : CREATE / UPDATE
dbms_output.put_line('Initialized ECO revised items');
-- Add RS_BOM_C3, acd_type = 1
l_rev_component_tbl(l_row_cnt).eco_name := l_eco_name;
l_rev_component_tbl(l_row_cnt).organization_code:= l_org_code;
l_rev_component_tbl(l_row_cnt).revised_item_name := l_rev_item_number;
l_rev_component_tbl(l_row_cnt).new_revised_item_revision := l_new_revised_item_revision;
l_rev_component_tbl(l_row_cnt).start_effective_date := l_eff_date;
l_rev_component_tbl(l_row_cnt).operation_sequence_number := 1;
l_rev_component_tbl(l_row_cnt).component_item_name := 'CS_Sub_Item_10_D'; -- Add RS_BOM_C3
l_rev_component_tbl(l_row_cnt).alternate_bom_code := NULL;
l_rev_component_tbl(l_row_cnt).acd_type := 1;
l_rev_component_tbl(l_row_cnt).item_sequence_number := 40; -- new item sequence number
l_rev_component_tbl(l_row_cnt).quantity_per_assembly := 5;
l_rev_component_tbl(l_row_cnt).transaction_type := 'CREATE'; -- transaction type : CREATE / UPDATE
-- Change RS_BOM_C1, acd_type = 2
l_row_cnt := l_row_cnt + 1;
l_rev_component_tbl(l_row_cnt).eco_name := l_eco_name;
l_rev_component_tbl(l_row_cnt).organization_code:= l_org_code;
l_rev_component_tbl(l_row_cnt).revised_item_name := l_rev_item_number;
l_rev_component_tbl(l_row_cnt).new_revised_item_revision := l_new_revised_item_revision;
l_rev_component_tbl(l_row_cnt).start_effective_date := l_eff_date; -- effective date
l_rev_component_tbl(l_row_cnt).operation_sequence_number := 1;
l_rev_component_tbl(l_row_cnt).component_item_name := 'CS_Sub_Item_10_B'; -- Change qty for RS_BOM_C1
l_rev_component_tbl(l_row_cnt).alternate_bom_code := NULL;
l_rev_component_tbl(l_row_cnt).acd_type := 2;
l_rev_component_tbl(l_row_cnt).old_effectivity_date := to_date('29-APR-2011 10:09:38', 'dd-MON-yyyy hh24:mi:ss'); -- old effectivity date from bill
l_rev_component_tbl(l_row_cnt).old_operation_sequence_number := 1; -- old operation sequence number from bill
l_rev_component_tbl(l_row_cnt).item_sequence_number := 20;
l_rev_component_tbl(l_row_cnt).quantity_per_assembly := 5; -- existing comp qty on Bill = 2
l_rev_component_tbl(l_row_cnt).transaction_type := 'CREATE'; -- transaction type : CREATE / UPDATE
-- Disable RS_BOM_C2, acd_type = 3
l_row_cnt := l_row_cnt + 1;
l_rev_component_tbl(l_row_cnt).eco_name := l_eco_name;
l_rev_component_tbl(l_row_cnt).organization_code:= l_org_code;
l_rev_component_tbl(l_row_cnt).revised_item_name := l_rev_item_number;
l_rev_component_tbl(l_row_cnt).new_revised_item_revision := l_new_revised_item_revision;
l_rev_component_tbl(l_row_cnt).start_effective_date := l_eff_date;
l_rev_component_tbl(l_row_cnt).disable_date := l_eff_date + 2; -- disable date is 2 day from effective_date
l_rev_component_tbl(l_row_cnt).operation_sequence_number := 1;
l_rev_component_tbl(l_row_cnt).component_item_name := 'CS_Sub_Item_10_C'; -- disable RS_BOM_C2
l_rev_component_tbl(l_row_cnt).alternate_bom_code := NULL;
l_rev_component_tbl(l_row_cnt).acd_type := 3;
l_rev_component_tbl(l_row_cnt).old_effectivity_date := to_date('29-APR-2011 10:09:38', 'dd-MON-yyyy hh24:mi:ss'); -- old effectivity date from bill
l_rev_component_tbl(l_row_cnt).old_operation_sequence_number := 1; -- old operation sequence number from bill
l_rev_component_tbl(l_row_cnt).transaction_type := 'CREATE'; -- transaction type : CREATE / UPDATE
dbms_output.put_line('Initialized ECO revised components');
-- call API to create eco
DBMS_OUTPUT.PUT_LINE('=======================================================');
DBMS_OUTPUT.PUT_LINE('Calling Eng_Eco_PUB.Process_Eco API');
Eng_Eco_PUB.Process_Eco( p_api_version_number => 1.0
, p_init_msg_list => TRUE
, x_return_status => l_return_status
, x_msg_count => l_msg_count
, p_bo_identifier => 'ECO'
, p_eco_rec => l_eco_rec
, p_eco_revision_tbl => l_eco_revision_tbl
, p_revised_item_tbl => l_revised_item_tbl
, p_rev_component_tbl => l_rev_component_tbl
, p_ref_designator_tbl => l_ref_designator_tbl
, p_sub_component_tbl => l_sub_component_tbl
, p_rev_operation_tbl => l_rev_operation_tbl
, p_rev_op_resource_tbl => l_rev_op_resource_tbl
, p_rev_sub_resource_tbl => l_rev_sub_resource_tbl
, x_eco_rec => x_eco_rec
, x_eco_revision_tbl => x_eco_revision_tbl
, x_revised_item_tbl => x_revised_item_tbl
, x_rev_component_tbl => x_rev_component_tbl
, x_ref_designator_tbl => x_ref_designator_tbl
, x_sub_component_tbl => x_sub_component_tbl
, x_rev_operation_tbl => x_rev_operation_tbl
, x_rev_op_resource_tbl => x_rev_op_resource_tbl
, x_rev_sub_resource_tbl => x_rev_sub_resource_tbl
, p_debug => 'Y'
, p_output_dir => l_output_dir
, p_debug_filename => l_debug_filename
dbms_output.put_line('x_eco_rec.eco_name:'|| x_eco_rec.eco_name );
dbms_output.put_line('x_eco_rec.org_code:'|| x_eco_rec.organization_code);
DBMS_OUTPUT.PUT_LINE('=======================================================');
DBMS_OUTPUT.PUT_LINE('Return Status: '||l_return_status);
IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
dbms_output.put_line('x_msg_count:' || l_msg_count);
Error_Handler.GET_MESSAGE_LIST(x_message_list => l_error_table);
DBMS_OUTPUT.PUT_LINE('Error Message Count :'||l_error_table.COUNT);
FOR i IN 1..l_error_table.COUNT LOOP
DBMS_OUTPUT.PUT_LINE(to_char(i)||':'||l_error_table(i).entity_index||':'||l_error_table(i).table_name);
DBMS_OUTPUT.PUT_LINE(to_char(i)||':'||l_error_table(i).message_text);
END LOOP;
END IF;
DBMS_OUTPUT.PUT_LINE('=======================================================');
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('Exception Occured :');
DBMS_OUTPUT.PUT_LINE(SQLCODE ||':'||SQLERRM);
DBMS_OUTPUT.PUT_LINE('=======================================================');
RAISE;
END;
But with this example I again get same error message...
Any idea?
Thanks,
Carolin -
How can I get auto correct on my iPhone 4 to recognize a name that is already in my address book? It doesn't recognize it and offers no suggestions.
The cleanest way to get things straight now and as you proceed into the future with Time Machine is to start over. If the new machine is setup the way you want and has all the data placed onto it I suggest you erase and re-format the TM backup device and start a Full initial TM backup.
I believe this will pay dividends now and over time and avoid future problems for you. Jst before going to bed crank up the Full TM backup and it will be all done by morning time. -
We are using iPads that are locked down with Guided Access and secured within hard plastic mounts screwed down onto a countertop. We can press the home button with a paperclip, but that's it. We don't want to use auto-lock because there might be several hours where the terminals aren't used, but we don't want them to go to sleep during business hours, otherwise we'll have to grab a paper clip and turn them back on. Also, if we set the auto-lock to several hours, then the iPads wouldn't be off for very long at night. I want to turn them off when we close at night, but it's challenging to open the cases and lift the iPads out, so that's not a reasonable option.
Any thoughts?Look for a new case.
There is varying opinions where it is best to power down electronics overnight or leave them on all the time to lengthen the life of a device.
I power down to save electricity at night.
Robert -
How Do You Use XML To Create Image Upload On A WebSite?
Hello,
Could some one please help me understand how to create web image gallery and web video gallery using XML? I have found few xml codes that could be used to do this but I am not so sure how to use them. I want my clients to be able upload images and videos with linking thumbnails to Image and or Videos. Do you think the codes I included in this question will help me achive this goal? And do I need to put all in one and in the same directory so it will work? Please help with your idea and tell me how you would use these codes and how you may step-by-step implement the idea your self to your own web site.
I have also included the instruction I found on the web with the codes.
Starting with You Tube, API on their video gallery, here are the codes I found,
Assume you are to use the YouTube, XML code; What will you change here so it will work on your own www.domain.com?
<% Dim xml, xhr, ns, YouTubeID, TrimmedID, GetJpeg, GetJpeg2, GetJpeg3, thumbnailUrl, xmlList, nodeList, TrimmedThumbnailUrl Set xml = Server.CreateObject("MSXML2.FreeThreadedDOMDocument")
xml.async = False
xml.setProperty "ServerHTTPRequest", True
xml.Load("http://gdata.youtube.com/feeds/api/users/Shuggy23/favorites?orderby=updated") If xml.parseError.errorCode <> 0 Then
Response.Write xml.parseError.reason End If Set xmlList = xml.getElementsByTagName("entry") Set nodeList = xml.SelectNodes("//media:thumbnail") For Each xmlItem In xmlList
YouTubeID = xmlItem.getElementsByTagName("id")(0).Text
TrimmedID = Replace(YouTubeID, "http://gdata.youtube.com/feeds/api/videos/", "")
For Each xmlItem2 In nodeList
thumbnailUrl = xmlItem2.getAttribute("url")
Response.Write thumbnailUrl & "<br />"
Next Next
%>
For the image gallery, the following are the codes I found with your experience do I need to use the entire codes or just some of them that I should use?
CODE #01Converting Database queries to XML
Using XML as data sources presumes the existence of XML. Often, it is easier to have the server create the XML from a database on the fly. Below are some scripts for common server models that do such a thing.
These are starting points. They will need to be customized for your particular scenario.
All these scripts will export the data from a database table with this structure:
ID: integer, primary key, autoincrement
AlbumName: text(255)
ImagePath: text(255)
ImageDescription: text(2000)
UploadDate: datetime
The output of the manual scripts will look like:
<?xml version="1.0" encoding="utf-8" ?>
<images>
<image>
<ID>1</ID>
<album><![CDATA[ Family ]]></album>
<path><![CDATA[ /family/us.jpg ]]></path>
<description><![CDATA[ here goes the description ]]></description>
<date><![CDATA[ 2006-11-20 10:20:00 ]]></date>
</image>
<image>
<ID>2</ID>
<album><![CDATA[ Work ]]></album>
<path><![CDATA[ /work/coleagues.jpg ]]></path>
<description><![CDATA[ here goes the description ]]></description>
<date><![CDATA[ 2006-11-21 12:34:00 ]]></date>
</image>
</images>
These are all wrapped in CDATA because it is will work with all data types. They can be removed if you know you don't want them.
Note: If using the column auto-generating versions, ensure that all the column types are text. Some databases have data type options like 'binary', that can't be converted to text. This will cause the script to fail.
CODE #02ASP Manual: This version loops over a query. Edit the Query and XML node names to match your needs.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
Dim MM_conn_STRING
MM_conn_STRING = "dsn=image_gallery;uid=xxxx;pwd=xxxx"
%>
<%
Dim rsImages
Dim rsImages_cmd
Dim rsImages_numRows
' Query the database and get all the records from the Images table
Set rsImages_cmd = Server.CreateObject ("ADODB.Command")
rsImages_cmd.ActiveConnection = MM_conn_STRING
rsImages_cmd.CommandText = "SELECT ID, AlbumName, ImagePath, ImageDescription, UploadDate FROM images"
rsImages_cmd.Prepared = true
Set rsImages = rsImages_cmd.Execute
' Send the headers
Response.ContentType = "text/xml"
Response.AddHeader "Pragma", "public"
Response.AddHeader "Cache-control", "private"
Response.AddHeader "Expires", "-1"
%><?xml version="1.0" encoding="utf-8"?>
<images>
<% While (NOT rsImages.EOF) %>
<image>
<ID><%=(rsImages.Fields.Item("ID").Value)%></ID>
<album><![CDATA[<%=(rsImages.Fields.Item("AlbumName").Value)%>]]></album>
<path><![CDATA[<%=(rsImages.Fields.Item("ImagePath").Value)%>]]></path>
<description><![CDATA[<%=(rsImages.Fields.Item("ImageDescription").Value)%>]]></description>
<date><![CDATA[<%=(rsImages.Fields.Item("UploadDate").Value)%>]]></date>
</image>
<%
rsImages.MoveNext()
Wend
%>
</images>
<%
rsImages.Close()
Set rsImages = Nothing
%>
CODE #03
Automatic: This version evaluates the query and automatically builds the nodes from the column names.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
Dim MM_conn_STRING
MM_conn_STRING = "dsn=image_gallery;uid=xxxx;pwd=xxxx"
%>
<%
Dim rsAll
Dim rsAll_cmd
Dim rsAll_numRows
' Query the database and get all the records from the Images table
Set rsAll_cmd = Server.CreateObject ("ADODB.Command")
rsAll_cmd.ActiveConnection = MM_conn_STRING
rsAll_cmd.CommandText = "SELECT * FROM Images"
rsAll_cmd.Prepared = true
Set rsAll = rsAll_cmd.Execute
' Send the headers
Response.ContentType = "text/xml"
Response.AddHeader "Pragma", "public"
Response.AddHeader "Cache-control", "private"
Response.AddHeader "Expires", "-1"
%><?xml version="1.0" encoding="utf-8"?>
<root>
<% While (NOT rsAll.EOF) %>
<row>
<%
For each field in rsAll.Fields
column = field.name
%>
<<%=column%>><![CDATA[<%=(rsAll.Fields.Item(column).Value)%>]]></<%=column%>>
<%
Next
%>
</row>
<%
rsAll.MoveNext()
Wend
%>
</root>
<%
rsAll.Close()
Set rsAll = Nothing
%>OK, I understand - thanks for that.
I thought the whole process was supposed to be a bit more seemless? Having to upload/download documents and manually keep them in sync will leave a lot of room for errors.
It's kinda painful the way iOS doesn't have folders. It makes things incompatible with the Mac and means you can't group files from multiple apps into a single project - who organises their digital life by the apps they use?
I think I'll recommend they use their iPad only.
Thanks for that.
Cheers
Ben
Maybe you are looking for
-
I can't synch my iPod classic. "A duplicate file name was specified." I tried on two different computers on which it had previously worked fine.
-
AIR 3.8: BASELINE_EXTENDED failing to initialize on a Nexus 7.
We're using BaseLine extended profile, which works fine on iPad, iPhone, Desktop and Android Nexus 10. However when trying to initialize Starling on a Nexus 7, I get the error: "Context3D is not available! Possible reasons: wrongRenderMode or missing
-
Zenworks auto login in xp without novell also logs into XP
We're in the process og removing novell login from our computers and going over to a windows only network. Since we're satisfied with using zenworks for remote control and application control, we want to continue using it. We now want Zenworks to log
-
"AdobePDFViewerNPAPI.plugin" uses too much CPU. How to replace it with Preview?
The AdobePDFViewerNPAPI.plugin uses over 250% CPU when I open a dozen of pdf files from the Internet in Safari 7.0.2. The Adobe Read is 10.1.9 as seen from Safari > Preferences > Security > Internet Plug-in > Manage Website Settings > Adobe Reader. C
-
Hi All, I have pondered over this for long but coudnt find a way myself..How do I declare and use an OUT param in an Oracle function,considering it can return only one value at a time. I would appreciate if you can give an example and explain. Thanks