Posts

c# - Reading XML dynamic data in SQL Server -

i have xml column in table contains collection of data. every record may hold different collection type customers data , invoices data etc. how can read cell & convert table in order bind data grid, collection times looks that <arrayofreceipttransfer_receipt xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema"> <receipttransfer_receipt> <receipttransfer_receipt_id>77491</receipttransfer_receipt_id> <receipttransferid>17839</receipttransferid> <receiptid>74080</receiptid> <amount>500.00</amount> </receipttransfer_receipt> </arrayofreceipttransfer_receipt> and looks like <arrayofinvoicebudgetitem xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema"> <invoicebudgetitem> <invoiceid>21978</invoiceid> <budgetitemid>1...

sql server - How to run sql query for each row value using set based approach -

i have following code placed inside cursor , have remove cursor due performance issue. trying use set based approach, have replace @originalvalue , @per_month variable sql query per set based approach @ same time need perform below calculation each row (with value of @originalvalue , @per_month ) if replacing @originalvalue , @per_month sql query select originalvalue , per_month tblreport reportdate = getdate() ", in case below mention code not yielding result in row manner. eg. cursor declared below records: originalvalue per_month ------------------------ 100 1 200 3 600 4 500 7 code: set @total = (@total * power(1 + (@value1 / 100.0), @originalvalue) + (@per_month / 100.0) * ( case when @originalvalue = 0 1 else case when (@value1 / 100.0)<> 0 (power(1 + (@value1 / 100.0), @originalvalue) - 1) / (@value1 / 100.0) * (1 + (@value1 / 100.0) * @method) else @origin...

c++ - Automatically Pass Parent Pointer to its Variables? -

this functionality have, wondering if there way able pass parent pointer it's variables without having = this ? struct location; struct parent { std::vector<location*> locations; }; struct location { location(parent* p) { p->locations.push_back(this); } }; struct specialparent : parent { location = this; location b = this; location c = this; location zabazoo = this; // etc }; the point of can still specialparent->zabazoo still batch process locations operations. location = b = c = zabazoo = this; the quick brown fox jumps on lazy dog.

xml creation using java -

i want iterate on xml given below: <annotation> <properties> <propertyvalue propertyname="field_label">label.modelseriescd</propertyvalue> <propertyvalue propertyname="containertype">conditioncontainer</propertyvalue> </properties> </annotation> i trying these codes: 1) while(currentnode.haschildnodes()){ system.out.println(currentnode.getnextsibling()); currentnode=currentnode.getnextsibling(); } 2) for (int x = 0; x < childnode.getlength(); x++) { node current = childnode.item(x); if (node.element_node == current.getnodetype()) { string cn = current.getnodename(); system.out.print(cn +" = "); str...

ios - Defining a new interface causes "Undefined symbols for architecture x86_64:". Existing interfaces work fine -

i have ios app , using xcode version 6.3.1 (6d1002). have m file in define @interface customobject:nsobject {} @end and try use in viewdidload as customobject* obj = [[customobject alloc]init]; when run this, linkage errors saying undefined symbols architecture x86_64: "_objc_class_$_customobject", referenced from: objc-class-ref in choosealbumviewcontroller.o ld: symbol(s) not found architecture x86_64 i have similar interfaces defined other objects , continue build, link , run fine. new interfaces i'm defining failing these linkage errors. use figure out what's causing this. i'm new ios development if i'm missing information crucial figure out please let me know , i'll add it. few flags build settings might - build active architecture = yes architectures = standard architecture armv7 armv64 valid architectures = arm64 armv7 armv7s here code in define interface , try use it @interface customalbum : nsobject {...

android - How to share texts and translations across mobile apps? -

we support english, german, spanish, italian, , french languages. have an ios, android, , windows phone app, , html/js webapp . 3 mobile apps similar. have same screens , texts. each app done small team , features developed apps in parallel. quite few texts used in webapp. we facing problem of how manage our (english) text strings , translations . right now, have google documents tables show screen drafts , corresponding english texts , translations. coordinate translation efforts email , comments in documents. we looking translation tools (namely transifex). appreciate things translation memory, glossary, , easy integration sw development workflows. these tools not fulfill 2 basic requirements have: sharing same texts (source language , translations) across apps, if source text or translation changes, change propagated apps. grouping texts screens , showing screen drafts while translating give context developer. therefore started thinking whether looking more a (tex...

Wizard link Target not rendering in front - Fluid/Extbase typo3 -

http://screencast.com/t/l3asbi2e - wizard link target not rendering in front front side code title but target not rendering afaik f:link.page viewhelper not interpret typolinks (that have). you should use viewhelper does, example v:link.typolink viewhelper extension vhs . you'd use this: {namespace v=fluidtypo3\vhs\viewhelpers} <v:link.typolink configuration="{parameter: youvariablehere}">linktext</v:link.typolink>